Error getting tags :
error 404Error getting tags :
error 404 last | revDocs | RunRev
Welcome Guest (Log in)
Product Edition
Version
last
Basics
Expander triangle
Type
Keyword
Syntax
Introduced
1.0
Environment
Desktop, Web and Server
Platform Support
MacOS,Mac OS X,Windows,Linux
Security
None required
Summary
Specifies the last member of a set of objects or the last chunk of a string.
Examples

put the ID of last card into stoppingPoint
put the last line of it after field "Answers"

Additional Comments
Expander triangle

The last keyword can be used to specify any object whose number property is equal to the number of objects of that type. It can also be used to designate the last chunk in a chunk expression.

The last control is the topmost control on a card. The last button is the topmost button, and similarly for other types of controls.

The word the is optional when using the last keyword.

A reference to the last of a string, with no chunk type specified, yields the entire string.

User Comments
Expander triangle
User thumbnail
Malte Brill
StarStarStarStarStar
Apr 30, 2009
Interesting:
This does not work:
set the textStyle of word 1 of the last line of fld "myField" to "bold"
though
set the textstyle of word 1 of line -1 of fld "myField" to "bold"
does.
User thumbnail
Craig Newman (dunbarx)
StarStarStarStarStar
Sep 16, 2009
The "last" keyword is not stable when referring to groups. So if one creates several groups, referencing the "last" group may not return the group actual ly created last. Using the "templateGroup" is a workaround, since when creating a new group one can, for example, set the name of the templateGroup to something unique, and be able to find the last group by name. Also, trapping the "newGroup" message with an appropriate script can be used to find the last group.
This is not an issue with other objects,