Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Array to file
Message
From
21/05/2002 12:59:14
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
21/05/2002 12:55:50
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00659476
Message ID:
00659479
Views:
20
>Hi All,
>Is there a way to take an array and shoehorn it into a text file? I was just curious.
>Thanks,

There is no built-in command to do this. You can write a UDF to do it. Several approaches are possible; for instance, SET ALTERNATE TO (file), SET CONSOLE OFF, and loop through the array - outputting the contents with "?" commands.

Or build a character variable in memory, and save with StrToFile().

HTH, Hilmar.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Previous
Reply
Map
View

Click here to load this message in the networking platform