SysInfo                                                                                                     Function

 

SYSINFO(arg)

 

Description

Return system information.

 

0

Runtime version

1

Number of clock ticks

2

Ticks per second for current device

3

The PortID of the current serial connection. Use with SerialSet("PortID",x)

4

The current FormID

5

Number of bytes currently in the serial receive queue

6

Palm OS ROM Version

7

CoordinateSystem. 72 for LoRes, 144 for HiRes

8

KBytes of unused storage heap. Check this before doing memory hungry operations.

9

KeyDownEvent.chr in the Palm OS documention. This is the character code that caused the event. This could be any of the regular keyboard characters, a soft or hard button on the device or other event. Devices from different manufacturers will have special chr values. For example, PalmOne has special events in the 1280 to 3925 range. Values should be described in files in the SDK from the hardware manufacturer (i.e. PalmChars.h).

10

KeyDownEvent.keyCode in the Palm OS documention. It is used to contain additional information about the chr. For example, the Palm 5-Way button uses this value to tell if the event is up, down, left or right.

11

KeyDownEvent.modifiers in the Palm OS documention. Flags are defined in SysEvent.h. You will need to test the bits of this value to check if a flag is set. For example, 0x0008 being set means the 'commandKeyMask' bit is set and the chr received is a command, not a character.

 

 

Example

If SysInfo(0)<400 then MsgBox "Please install latest version of the Runtime."