AppLaunch                                                                                             Function

 

APPLAUNCH(cardNo as integer, pgm as string, cmd as integer, data as string)

 

Description

Returns an integer with result code from the call. CardNo should be 0,  pgm is the name of the program to launch, cmd is a command to be passed to pgm and data is string with data to be passed to pgm. This function launches another app from NS Basic/Palm. Unlike CHAIN, execution continues in NS Basic/Palm after pgm returns.

 

Example

' in an object's code:

PalmPrint "Hello World"  'this calls the PalmPrint routine in a code

...

sub PalmPrint(PrintData as string)

   dim res as integer

   res=AppLaunch(0, "PalmPrint", 32768, PrintData)

end sub

'This sample calls PalmPrint from Steven's Creek (http://www.stevenscreek.com) to print "Hello World" to an IR printer.