Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

[ Image Removed |../../index.htm#lansa/srvgudba_0715.htm]
You are here:

...

     BOOL fOK;
int  iSession;
char *pstrSurname;
long lFlags;
long lDataLen;
 
fOK = LceGetFieldDataLength(iSession, "SURNAME", &lDataLen);
pstrSurname = malloc(lDataLen + 1);
fOK = LceGetFieldValueX(iSession, "SURNAME", (char far *) pstrSurname, &lFlags);
 

...

     if (lFlags == 1)
{
    realloc(pStrSurname,

...

 21);
    strcpy(pStrSurname,

...

 "Surname Not Provided");

...

     }