Change a text section of a a text item to inline code.
[Visual Basic] Function ChangeToCode( _ ByVal p_nStart As Integer, _ ByVal p_nCodeIndex As Integer, _ ByVal p_nCodeLength As Integer, _ ByVal p_nTextIndex As Integer, _ ByVal p_nTextLength As Integer _ ) As Integer [C#] int ChangeToCode( int p_nStart, int p_nCodeIndex, int p_nCodeLength, int p_nTextIndex, int p_nTextLength ); [C++] int ChangeToCode( int p_nStart, int p_nCodeIndex, int p_nCodeLength, int p_nTextIndex, int p_nTextLength ); [JScript] function ChangeToCode( int p_nStart, int p_nCodeIndex, int p_nCodeLength, int p_nTextIndex, int p_nTextLength ): int;
The length difference of the coded text between before and after the insertion.
The code may include a run of text. In that case you must set p_nTextIndex to the starting position of the text, and p_nTextLength to the length of the text. If there is no text in the code p_nTextIndex must be set to -1 and/or p_nTextLength to 0.
IFilterItem Interface | Okapi.Library.Filter Namespace