I am trying to place a text in the field of my cadaster form, the field
code,
for instance I want the customer to already have a code when she will enter
to register,
but when I use the following code she gives the following mistake:
bit of code:
case frmOpenEvent:
frmP = FrmGetActiveForm();
index = DmNumRecords(dbCl);
fieldP = GetObjectPtr(CadastroCodigoField);
fieldH =(MemHandle) FldGetTextHandle(fieldP);
temp = (char *) fieldH;
StrCopy(temp,StrIToA(codigo,index));
MemHandleUnlock(fieldH);
FldSetTextHandle(fieldP, (MemHandle)fieldH);
FrmDrawForm(frmP);
DBteste (1.0) just wrote to memory location 0x00045AA8, which is in the
storage heap.
In order to protect the integrity of the user's data, such direct access is
not allowed.
Instead, applications should use special Palm OS functions for this purpose.
What do have to do to get that??
did I already try a lot of codes but did none work, does anybody can me to
give a light?
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/support/forums/