This site is no longer active and is available for archival purposes only. Registration and login is disabled.

Trouble to GetItem values with listview, tabcontrol


Trouble to GetItem values with listview, tabcontrol

Postby redshift » Jun 29, 2004 @ 10:19pm

redshift
pm Member
 
Posts: 52
Joined: Jun 9, 2004 @ 9:52pm


Postby kornalius » Jun 30, 2004 @ 1:00am

User avatar
kornalius
pm Member
 
Posts: 1704
Joined: Dec 9, 2003 @ 6:04pm
Location: Montreal, Québec, Canada


Postby redshift » Jun 30, 2004 @ 9:25am

redshift
pm Member
 
Posts: 52
Joined: Jun 9, 2004 @ 9:52pm


Postby kornalius » Jul 1, 2004 @ 7:10pm

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
User avatar
kornalius
pm Member
 
Posts: 1704
Joined: Dec 9, 2003 @ 6:04pm
Location: Montreal, Québec, Canada


Postby redshift » Jul 2, 2004 @ 10:11am

redshift
pm Member
 
Posts: 52
Joined: Jun 9, 2004 @ 9:52pm


Postby kornalius » Jul 2, 2004 @ 5:01pm

User avatar
kornalius
pm Member
 
Posts: 1704
Joined: Dec 9, 2003 @ 6:04pm
Location: Montreal, Québec, Canada


Return to Pocket Programming Language (PPL)


Sort


Forum Description

Discuss this new development tool.

Moderator:

kornalius

Forum permissions

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

cron