Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Best practice for concatenating with null character fields?
Message
From
08/03/2001 11:46:28
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Best practice for concatenating with null character fields?
Miscellaneous
Thread ID:
00483187
Message ID:
00483187
Views:
54
If I was wanting to concatenate two character fields and one of them could potentially be empty, what code can I use for that? I have worked with this:

allt(address1)+IIF(!empty(address2),address2,'')

Is there any simpler code that you can use? That is quite simple itself, but If you have a long concatenation, your code gets quite long.

Thanks.
Next
Reply
Map
View

Click here to load this message in the networking platform