6.1.1 Examples
In general, two simple examples of how the function might be used are provided. The first example is based on the Visual Basic Quick Start Skills application which is supplied with LANSA Open. A portion of this program is printed inĀ Quick Start for Visual Basic Programmers in this guide. The second example may be a C example or a generic example of how you might use the function.
In the Visual Basic examples, it is assumed that- a session is set and open as shown in the LceOpenSession function's example.
- iSession is a global integer variable containing the open session number.
- iRet is an integer used to get the Lce Function return codes.
- sBuff is a string buffer used to temporarily store data retrieved with LANSA Open functions. Before using its value, call sTrim to remove padding spaces and to detect the end of the string.