6 59 2 C Examples

LANSA Open Guide

6.59.2 C Examples

C Example 1

BOOL fOK;

int  iSession;

 

fOK = LceSetFieldValueU(iSession, "TOWN", "宮代町");

 

C Example 2

BOOL fOK;

int  iSession;

 

fOK = LceSetFieldValueU(iSession, "TOWN", NULL);

 

C Example 3

strcpy(strField, "TOWN");

if !LceSetFieldValueU(iSession, strField, "Henty")

{

         /* return error */

}

 

Note: You are not assigning strField = "12345". You are assigning the field "EMPNO", which happens to be stored in the variable strField, to the value of "12345".