What data types are available in PlanetPress Talk?
PlanetPress Talk provides the following data types:
Data Type |
Example |
Integer |
3 |
Measure or Floating Point |
3,2300987 |
Currency |
5.25 |
String |
Michel or $4,567.09 |
Boolean |
Yes or No |
Color Array |
[100, 100, 0, 0] (for the CMYK color model) |
Array |
[Monday Tuesday Wednesday Thursday Friday] (a seven-element array of type string) [12 18 103 57] (a four-element array of type integer) [True True False False True False False] (a seven-element array of type Boolean) |
Directory |
[c:\images\house.jpg c:\images\apt.jpg] (a directory that contains two pathnames) |
PlanetPress Talk strictly enforces its data types. For example, the show command accepts a string as its argument; an error occurs if you attempt to send it an integer as an argument. You can use any of the conversion operators PlanetPress Talk provides to convert from one type to another. Thus the following show command is correct:
show(inttostr(subreccount()))
See Conversion Operator Functions for a complete list of the operators you can use to convert from one type to another.