point
| Syntax |
point (value)
|
| Params |
value is the object whose datatype you wish to coerce to pointType.
|
| Action |
Coerces the datatype of value to be a point if possible.
|
| Returns |
The resulting point value
|
| Examples |
point ("0, 23") » 0, 23 // Horizontal position of 0, vertical position of 23
|
| Errors |
If value is an improperly formatted string or a type that cannot be coerced to a point, an error message is generated.
|
| Notes |
This is an advanced Frontier verb of primary interest to implementers and advanced scripters. It is not necessary to understand it to use Frontier effectively for most tasks. This verb is most useful in dealing with Macintosh-specific IAC situations where a point value is required by one of the programs involved in the IAC process. In order for a string value to be recognized as a point, it must be made up of two short numbers separated by a comma. The first value is the horizontal, or X, coordinate value, and the second is the vertical, or Y, coordinate value. Leading blanks are allowed before each number in the string.
|