Link Search Menu Expand Document

StyleEdit.InsertString Method

Explanation Inserts the string at the specified position.
Call format StyleEdit1.InsertString( pos, str [, styleNo ] )
Return value None
Arguments integer pos Specify the position of the inserted character. If the position points to the second byte of a multi-byte character, it is automatically corrected to the next position. If -1 is specified, it will be the current cullet position.
String str The string to insert.
integer styleNo Specify when setting the style at the same time as inserting the character string. The range that can be specified is from 0 to 30.
Exception Func-4 Invalid arguments
Example of use
    StyleEdit1.InsertString(10, "Insert this string", 1);
    
Related item None