RhinoTrac
LassoSoft Ticket Tracking System
NOTE: If you are using Lasso Server 9.3 please Log your ticket directly via the LUX admin as this will give us more information about your issue.
Ticket #7580: re-target operator may cause problems without semicolon
- Reported by:
- Eric Knibbe
- Date:
- 04 Sep, 2013
- Priority:
- minor
- Component:
- Lasso 9
- Version:
- 9.2
- Keywords:
- Platform:
Consider the following code:
local(words = array(' first item ','second item'))
#words->first->trim&;
with item in #words
do {^
#item + "<br>"
^}
As-is, it runs fine. However, if you remove the semicolon after the ampersand, the query expression will error out with "The local variable "item" has not been defined". This doesn't occur if the re-target operation happens to be inside a set of parens, such as when setting a variable.
I've seen that the guide's examples include the semicolon, but it seems strange that it's required in these cases.
Please log in to your LassoSoft account to comment