Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

How can I write the program in such a way that it can access the file with its proper directory name on the PC (e.g. pilotmyusercasl) and no directory name on the Palm handheld?

directory file pc program write
0
Posted

How can I write the program in such a way that it can access the file with its proper directory name on the PC (e.g. pilotmyusercasl) and no directory name on the Palm handheld?

0

The PC has a hard drive that’s organized in directories, and the Palm handheld simply has named databases. CASL supports a string function that returns the Palm handheld user directory (USERPATH). The CASL pcode interpreter (PC and Palm handheld) evaluates the function at runtime. On the PC, the function returns the directory associated with the user whose name is given as a parameter to the function. On the Palm handheld, the USERPATH function always returns a null string (“”), since there are no user directories on the palm handheld. The CASL environment also has a built-in string variable (PLATFORM) that contains string that indicates in which environment a CASL program is running. The PLATFORM variable will contain the string “windows” or “pilot”. For examples of PLATFORM and USERPATH in use in an application, see the Password sample program included with your CASL installation.

Thanksgiving questions

*Sadly, we had to bring back ads too. Hopefully more targeted.