To Execute this Example

LANSA

To Execute this Example
Calls to and from Visual BasicThe Things that Make Up this Example

To view the Visual Basic projects you will need to have Visual Basic installed on your PC.

VB calls VL
  • Execute LANSA form S_236FA, select the string produced, right mouse click on it and copy the string to clipboard
  • Locate file SET_236B.exe in the partition execute directory and double click on it. This should bring up the VB form.
  • Paste in the string in the clipboard into the X_RUN Statement field
  • Enter an employee code that you know exists, a new salary and a comment to pass.
  • Press “Call S_236FB” – this starts the Visual LANSA form S_236FB (which receives the passed values)
  • Edit the salary and the comment in form S_236FB
  • Press Update – this updates the Salary in the LANSA database, closes, and passes back the salary and comment to Visual Basic
VL calls VB
  • Execute LANSA form S_236FX
  • Enter a comment to be passed
  • Press “Call vb program” – this starts vb program SET_236X.exe (which receives the passed values)
  • Edit the employee details and the comment
  • Press “Return to VL” – this closes the vb program and passes back the edited values to Visual LANSA