Something like:
If A > "" then C = C+A If B > "" then C = C+B Is this what you are trying to recreate? Bob From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of elriba75 Sent: Monday, September 29, 2008 5:06 PM To: [EMAIL PROTECTED] Subject: [nsbasic-ce] How to do the following string manipulation? Hi, Given a variable, for example FieldA, I need to do the following: if the variable is NOT empty, I want to return a string, but if it is empty, return nothing: Something like: If FieldA Then return "FieldA = " & FieldA Else return "" End If I have a bunch of these variables, and I want to build a string such as: "FieldA = " & FieldA & "," & "FieldB = " & FieldB But only including those which have values. Any ideas on how to do this? Best regards, Edgard --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "nsb-ce" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/nsb-ce?hl=en -~----------~----~----~----~------~----~------~--~---
