WINAPI Examples
Example 1:
|
|
|
|
|
| ||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
The WINAPI instruction retrieves the Windows version and places the result in an INTEGER field.
Example 2:
|
|
|
|
|
| ||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
The DIM field is not passed, therefore its place is saved by the extra comma.
Example 3:
|
|
|
|
|
| ||
|
| ||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
The last WINAPI called the JavaScript function named 'PlbApiTest' which exists in the 'plbwebctls.js' that has been automatically downloaded from the PL/B Web Server when the program was started.
![]() |