Page 1 of 1

Trouble to GetItem values with listview, tabcontrol

PostPosted: Jun 29, 2004 @ 10:19pm
by redshift

PostPosted: Jun 30, 2004 @ 1:00am
by kornalius

PostPosted: Jun 30, 2004 @ 9:25am
by redshift

PostPosted: 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

PostPosted: Jul 2, 2004 @ 10:11am
by redshift

PostPosted: Jul 2, 2004 @ 5:01pm
by kornalius