[Laszlo-user] "password" a reserved word?
Frisco Del Rosario
frisco at laszlosystems.com
Mon Jun 18 12:34:51 PDT 2007
According to docs/reference/info-reservedwords.html, 'password' isn't
a globally-reserved word, but reserved for LzInputText. The document
notes that 'subclasses cannot use reserved words of their superclass
[es].'
Does that information pertain at all to your problem?
> From: Hairysocks <hairysocks at yahoo.co.uk>
> I have come across a quirk in my application. I have a text
> field named "password" in a window with a button with an event
> handler that uses the value of "password". This works ok, and
> the value is correctly used.
>
> Another window has an event handler that also needs to use the
> value of "password", but it gets a value of "undefined". At
> first I thought the "password" field was incorrectly referenced,
> but I have other text fields that do get correctly picked up, so
> I changed the name of "password" to "pword" and suddenly the
> value could be used.
>
> It seems that "password" is a semi-reserved word that can be
> used in the same window as it is defiend in, but not in other
> windows in the same application.
--
assertEquals(Frisco Del Rosario, OpenLaszlo tester)
More information about the Laszlo-user
mailing list