New topic: 

Similar function in RB

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

         Page 1 of 1
   [ 2 posts ]                 Previous topic | Next topic          Author  
Message        vbshar          Post subject: Similar function in RBPosted: Wed 
Oct 24, 2012 3:04 pm                         
Joined: Fri Aug 21, 2009 9:41 am
Posts: 16                Hello
I work in VB6 for years and I have this function that converts null fields to 
empty string ("").

how can I make a similar in RB?

Function nNull(Xnul) As String
  On Error Resume Next
  If IsNull(Xnul) Or IsEmpty(Xnul) Then
  nNull = ""
  Else
  nNull = CStr(Xnul)
  End If
End Function
   
                             Top                ktekinay          Post subject: 
Re: Similar function in RBPosted: Wed Oct 24, 2012 4:30 pm                      
           
Joined: Mon Feb 05, 2007 5:21 pm
Posts: 212
Location: New York, NY                I'm not an export on VB. What type is the 
variable XNul? Is it an object or Variant? Where might you use something like 
this?      
_________________
Kem Tekinay
MacTechnologies Consulting
http://www.mactechnologies.com/

Need to develop, test, and refine regular expressions? Try RegExRX.
  
                             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]

Reply via email to