Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Replace from excel sheet to mytable
Message
De
24/11/2004 09:30:51
 
 
À
24/11/2004 08:08:32
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00964143
Message ID:
00964263
Vues:
8
>>How about:
>>
>>use NAN in 0
>>Select NAN
>>liRecc=RECC()
>>APPEND FROM aar TYPE xls FOR RECN()>liRecc+6
>>
>>
>>>hi,
>>>thank you,
>>>
>>>i try as under but nothing happend
>>>USE nan
>>>liRecc=RECC()
>>>APPEND FROM aar TYPE xls FOR RECN()>liRecc+6
>>>
>>>thanks.
>>>m.qasem
>
>Hi Terry,
>
>Would you agree with me that the for clause does not do what the author meant it to do ?

Hi Gregory

I should imagine that the for clause would hold no sway over the excel cells/rows/cols. As far as I know/knew, scopes only apply to FP tables and, as such, can't "pre-select" from an input source. I was surprised when I first saw
APPEND FROM aar TYPE xls FOR RECN()>liRecc+6
and thought "Oh, I didn't know you could do that". I kept schtum in my (perceived) ignorance.

Well, as it doesn't seem to work, but does without the scope, then i expect you're right.

I would go for the append (ALL) option then delete the excess records. The user will be none the wiser that this less elegant approach is being used.

Terry
- Whoever said that women are the weaker sex never tried to wrest the bedclothes off one in the middle of the night
- Worry is the interest you pay, in advance, for a loan that you may never need to take out.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform