New topic: What's wrong with my mask?
<http://forums.realsoftware.com/viewtopic.php?t=47858> Page 1 of 1 [ 2 posts ] Previous topic | Next topic Author Message jjfcpa Post subject: What's wrong with my mask?Posted: Sun May 12, 2013 6:07 pm Joined: Tue Apr 17, 2007 9:19 pm Posts: 433 I am using a configuration file to store a mask to a field that is then used to set the mask for the textfield. The mask is 9999-999 and when I store the mask to the textfield, it bombs the app every time. I've determined that it doesn't like the hyphen in the mask and yet the LR says that any literal character can be used in the mask. Update: If I store the mask 9999-999 as the property of the textfield it works fine, but if I do it like this: textfield.mask = rs.field("MASK").stringvalue it barfs every time. Top kermit Post subject: Re: What's wrong with my mask?Posted: Mon May 13, 2013 12:24 am Joined: Mon May 30, 2011 12:56 am Posts: 685 PURE guess... The hyphen may not be 'the' hyphen character. Pretty sure there are two. So: what encoding does the stringvalue get you? and does textfield.mask = "9999-999" work using a literal? Top Display posts from previous: All posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost timeSubject AscendingDescending Page 1 of 1 [ 2 posts ] -- Over 1500 classes with 29000 functions in one REALbasic plug-in collection. The Monkeybread Software Realbasic Plugin v9.3. http://www.monkeybreadsoftware.de/realbasic/plugins.shtml [email protected]
