Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Address fields
Message
From
30/08/2000 18:00:59
 
 
To
30/08/2000 16:20:54
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
Miscellaneous
Thread ID:
00410998
Message ID:
00411075
Views:
13
>I have a table with address fields (split into 5 fields)
>I have a formula that looks something like this:
>
>IIF(addr_1=space(30),"",addr_1+", ")+IIF(addr_2=space(30),"",addr_2+", ")...
>
>which I have found to work on other occasions. However in this instance it seems to be failing, it is only displaying first lines of adresses, and in some instances, only the first few characters. Can anyone shed light on why this might be happening and suggest a way to stop it?
>
>Ta
>Sha

Use EMPTY() and ALLTRIM()
IIF(EMPTY(addr_1),"",ALLTRIM(addr_1)+", ")+...
Insanity: Doing the same thing over and over and expecting different results.
Previous
Reply
Map
View

Click here to load this message in the networking platform