New topic: 

help with val  RS 2012v2.1

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

         Page 1 of 1
   [ 3 posts ]                 Previous topic | Next topic          Author  
Message        jetpr          Post subject: help with val  RS 2012v2.1Posted: 
Sat Jan 26, 2013 8:50 pm                                 
Joined: Wed Sep 20, 2006 5:12 pm
Posts: 579
Location: Puerto Rico                Dim myStr as String
Dim money as Currency

myStr="11,262.45"

money=val(myStr)

it return in money (11.0000)
way
     
_________________
Thanks for any contribution  and  God blesses all (I start Using RS in 
10/12/2010)
 Mac Mini with Snow Leopard v10.6.8 and Real Studio 2012r1 Pro And Windows 7 
RS2012r1 Personal  and  Linux RS2012r1 Personal Register user 
   my Hobbies R/C Turbines Jets Models  
                             Top                charonn0          Post subject: 
Re: help with val  RS 2012v2.1Posted: Sat Jan 26, 2013 9:00 pm                  
               
Joined: Mon Apr 02, 2007 2:08 am
Posts: 1095
Location: San Francisco, CA, USA                Use CDbl instead of Val:
Dim myStr as String
Dim money as Currency

myStr="11,262.45"

money=CDbl(myStr)
      
_________________
Boredom Software  
                             Top                jetpr          Post subject: 
Re: help with val  RS 2012v2.1Posted: Sat Jan 26, 2013 9:10 pm                  
               
Joined: Wed Sep 20, 2006 5:12 pm
Posts: 579
Location: Puerto Rico                ok
thanks      
_________________
Thanks for any contribution  and  God blesses all (I start Using RS in 
10/12/2010)
 Mac Mini with Snow Leopard v10.6.8 and Real Studio 2012r1 Pro And Windows 7 
RS2012r1 Personal  and  Linux RS2012r1 Personal Register user 
   my Hobbies R/C Turbines Jets Models  
                             Top             Display posts from previous: All 
posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost 
timeSubject AscendingDescending          Page 1 of 1
   [ 3 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

rbforumnotifier@monkeybreadsoftware.de

Reply via email to