New topic: 

Format TextField entry as percent

<http://forums.realsoftware.com/viewtopic.php?t=41063>

         Page 1 of 1
   [ 1 post ]                 Previous topic | Next topic          Author  
Message        torrid          Post subject: Format TextField entry as 
percentPosted: Wed Oct 19, 2011 8:44 am                         
Joined: Sat Jun 04, 2011 8:29 am
Posts: 73                If someone enters 5 into a TextField then on Lostfocus 
I want it to reformat it as 5.0%

I have some code but its not working... 

Also whenuser goes back into field GotFocus should undo and remove % and user 
is editing the 5 again.... if user had entered 5.2 then they are editing 5.2....


me.text= format(val(me.text),"#.#%")

??????      
_________________
Currently using:
Windows XP Pro SP3
Real Studio 2011 Release 3
- have not started compiling on the mac yet  
                             Top            Display posts from previous: All 
posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost 
timeSubject AscendingDescending          Page 1 of 1
   [ 1 post ]      
-- 
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]

Reply via email to