Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

stringA + stringB ... when one is null

Status
Not open for further replies.

Fursten

Programmer
Dec 27, 2000
403
PT
Hi,

I have a formula that concatenates strings like this:

stringA + ' ' + stringB

The problem is that, if one of the string as the null value I will not obtain the value of the other that is not null.

For instance, if StringA = null and StringB = 'Test'

I would like to have:stringA + ' ' + stringB = 'test'

Any ideias?

Thank you,

Sergio Oliveira
 
A possible work around is to create a formaula that will cause a null field to be a blank string.

If isnull({stringA}) then "" else {stringA} Mike

 
My previous post was incomplete. Sorry.
PREVIOUS POST ... then concatenate the formula(s) that you create.
Mike

 
if isnull({StringA}) then {StringB} else
if isnull({StringB}) then {StringA} else
{StringA}+" "+(StringB} Software Support for Sage Mas90, Macola, Crystal Reports, Goldmine and MS Office
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top