
Posted:
Jul 1, 2004 @ 7:10pm
by kornalius
The values you get in pszText is a string (widechar) pointer and not the actual string. To convert the pointer to a string do the following:
^lv.pszText$ --> This will put a widechar string on the stack.
char(^lv.pszText$) --> Convert the widechar string to a regular string.
ShowMessage(char(^lv.pszText$));
PPL uses the same method to store strings in arrays. It only stores the pointer of the string.
DIM(A$, 100);
A$[1] = "STRING";
ShowMessage(A$[1]); --> Will show string pointer value.
ShowMessage(^A$[1]); --> Display "STRING"
Regards,
Kornalius