-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Hi,
some time ago it had stroken me that any page style enclosed in single quotes was apparently ignored; now I've realised that if I write something like <?page id='something' ...?> desktop.getPages() yields [['something']] and desktop.getPage( "something" ) yields null; in other words, single quotes are parsed as belonging to the attribute text.
Can anybody confirm this?
With kind regards
César Varona
Avec plaisir:
<?page id='main' ?> <window title="My First Window" border="normal" width="200px"> <zscript> String s1 = desktop.getPages().toString(); p1 = desktop.getPageIfAny( "main" ); p2 = desktop.getPageIfAny( "'main'" ); String s2 = "p1: --" + p1 + "--, p2: --" + p2 + "--"; </zscript> <label value="${s1}" /> <label value="${s2}" /> </window>
With kind regards
César Varona
well... i think this is a bug, coz we parse the attribute of <?page ourself
i post a bug in sourceforge.net
https://sourceforge.net/tracker2/?func=detail&aid=2587158&group_id=152762&atid=785191
you can follow this to get the solution :)
thanks.
Asked: 2009-02-05 10:34:28 +0800
Seen: 166 times
Last updated: Feb 11 '09