Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Copy five fields to one
Message
From
02/03/2000 19:16:59
 
 
To
02/03/2000 17:55:41
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00340892
Message ID:
00340960
Views:
26
>>vfp 3.0
>>
>>hello all,
>>
>>ok here goes, I am trying to copy 5 fields into one large field
>>
>>i have tried using copy to array and then replace the one field with
>>the array, but no luck.
>>
>>i seem to get the first field and that's it, any info from other remaing 4 fields is history.
>>
>>any thoughts???
>>
>>thanks and have a good day.
>>
>>becky
>
>Try REPLACE ALL field1 WITH allt(field2)+allt(field3)+allt(field4)+allt(field5)+allt(field6) because your probably doing it correctly, but that one field is not wide enough to hold the other fields contents plus the blank spaces they may have.

You can simplify this using the - operator:

REPLACE ALL Field1 WITH LTRIM(field2-field3-field4-field5-field6)
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform