Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How can i PRINT a ARRAY in vpf5 or 6
Message
De
20/03/1999 15:24:16
 
 
À
18/03/1999 16:02:49
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00199447
Message ID:
00200181
Vues:
11
>i just try the command and it's not exactly what i want because i have a lot of informations like this array (ARRAYER) :
>
>ARRAYER Pub A
> ( 1) C "KLJ"
> ( 2) C "KsdfsdfLJ"
> ( 3) C "Ks sdfdfsdfLJ"
>
> and i just want to print the content of the array without bracket :
>because it's like i want to print a ascii file.
>

If this is a one dimensional array, and all the elements of the array are of the same type, you could do something like:

CREATE CURSOR TempFile (cFld C(254))
APPEND FROM ARRAY ARRAYER
LIST TO PRINT FIELDS ALLTRIM(cFld)
USE

You could send this straight to an ASCII file by instead saying:

LIST FIELDS ALLTRIM(cFld) TO FILE some file to create

If you're going to use the file for input to something else, you'll want to delete the first two lines of the text file created in this fashion (the first line is blank; the second contains the name of the expression above the column.

>thanks again
>franck
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform