Sets the actual data length of a string. The specified length must be within the range of 0 and StrSize().
Kernel.bdh
BinSetlen( in sString : string, in nNewLen : number ) : boolean;
true if the new data length could be set successfully
false otherwise
Parameter | Description |
---|---|
sString | String whose data length is set. |
nNewLen | Data length the string should be set to. |
dcltrans transaction TMain var sString : string; begin sString := "Hello world"; BinSetlen(sString, 5); Print(sString); Print("Strlen = " + string(Strlen(sString))); Print("Binlen = " + string(Binlen(sString))); end TMain;
HelloStrlen = 5Binlen = 5