Hello,

I have tSTL resource (in fact lot of them, together approximatelly
30.000 strings). I would like to write a function which puts one of this
strings into noneditable field. Of course without copying it, so
SysStringByIndex is out of the question. 

I am currently doing it using SysFormPointerArrayToStrings as from the
PilRC documentation: 

// size of tSTL resource
#define MAX_STRING_TABLE_SIZE 383

mem_handle = SysFormPointerArrayToStrings(table + StrLen((Char *)table) + 3,
                                MAX_STRING_TABLE_SIZE);
str = (Char **)MemHandleLock(mem_handle);
FldSetTextPtr (description, str[number % MAX_STRING_TABLE_SIZE]);

Is is the simplest way? Is there no non-copying version of SysStringByIndex?
I do not need the whole table, only single string.

best regards,

Marcin.

-- 
[ Marcin 'DrYoung' Bieńkowski ** http://valis.rpg.pl/~young/ ]

-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/

Reply via email to