New topic: 

How to test for error in code

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

         Page 1 of 1
   [ 1 post ]                 Previous topic | Next topic          Author  
Message        tseyfarth          Post subject: How to test for error in 
codePosted: Thu Feb 21, 2013 7:50 pm                         
Joined: Sat Dec 04, 2010 9:14 pm
Posts: 826                Hello all,

I want to convert a string to a date.  But I want to test the conversion to be 
sure that if an exception occurred, it can be managed quietly.
If parseDate(Date1, theDate) = False Then
  theDate.SQLDate = Date1
  
  
End If


In the above, what code can be used to check the line theDate.SQLDate = Date1?

Thank you!
Tim   
                             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