I am trying to obtain the string text of a Field. This field was created on
the fly (run-time).
Every time when I try to do that, the system returns garbage.
I am using the code bellow:

    addrFieldP = FrmGetObjectPtr(FrmGetActiveForm(), curControl.fieldID-1 );
    buffer=FldGetTextPtr(addrFieldP);
    newSize=StrLen(buffer)+1;
    MemPtrResize(curForm.fieldData[curControl.fieldID],newSize);
    StrCopy(curForm.fieldData[curControl.fieldID],buffer);


------------------------------------------
J�lio F�bio de O. Chagas
Gerente de Projetos
email: [EMAIL PROTECTED]
+55(11)3055-3159

Grupo Quadrata

http://www.quadrata.com.br




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

Reply via email to