rect
| Syntax |
rect (value)
|
| Params |
value is the object whose datatype you wish to coerce to rectType.
|
| Action |
Coerces the datatype of value to be a rect if possible.
|
| Returns |
The resulting rect value
|
| Examples |
rect ("0, 0, 512, 342") » 0, 0, 512, 342 // top = 0, left = 0, bottom = 512, right =312
|
| Errors |
If value is an improperly formatted string or a type that cannot be coerced to a rect, an error message is generated. Only strings and binary values that are 8 bytes long can be converted.
|
| 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 rect value is required by one of the programs involved in the IAC process. In order for a string value to be recognized as a rect, it must be made up of four short numbers separated by commas. The numbers are interpreted as the top, left, bottom and right coordinates, respectively. Leading blanks are allowed before each number in the string.
|