Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Redirecting Set fields to output to Text file
Message
De
01/06/1997 01:21:29
Vinod Parwani
United Creations L.L.C.
Ad-Dulayl, Jordanie
 
 
À
31/05/1997 19:43:21
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00034371
Message ID:
00034406
Vues:
32
>1- Assume parent named pr and child ch and relation set and set fields issued.
>select ch
>chfields = set("fields",1) && fields set for child
>select pr
>prfields = set("fields",1) && fields set for parent
>set library to fpath && foxtools.fll if windows
>lnSpaces = 0
>for ixc = 1 to words(prfields)
> lnSpace = lnSpace + fsize(wordnum(prfields, ixc, " ,"))
>endfor
>set fields off && Turn off set fields temporarily
>set alternate to myfile.txt
>set alternate on
>scan
> ? &prfields
> select ch
> if !eof() && Else nothing to print
> ?? &ch
> skip
> endif
> scan while ch.linkexp = pr.linkexp && Whatever your relation is
> ? space(lnSpaces) , &ch
> endscan
> select pr
>endscan
>set alternate to
>set alternate off && No more space but this is ok and works

Thanks for the code, I will try it, but first of all have to study it carefully so that I can understand !!!! Thanks !!
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform