Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Invalid subscript reference
Message
De
30/11/2006 12:58:28
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP
Database:
Visual FoxPro
Divers
Thread ID:
01173721
Message ID:
01173799
Vues:
12
>>>>I think you should seriously consider VFP9. (Look who's talking...)
>>>>
>>>
>>>It's not my decision to make. Anyway, looks like my program doesn't really work as it should for some reason. For w4e it returns w49... and it should not.
>>>
>>>>>You're too late to the game <g> Yes, I do if my mask is too short. I'm going to put some restrictions on the mask and also add try/catch functionality
>>
>>try:
>>
>>CREATE CURSOR crsFiles (FileNames M)
>>lcFile = SYS(2000,[mask here])
>>DO WHILE NOT EMPTY(lcFile)
>>   IF NOT EMPTY(lcFile)
>>      INSERT INTO crsFiles VALUES (m.lcFile)
>>   ENDIF
>>   lcFile = SYS(2000,[mask here],1)
>>ENDDO
>>
>>
>>not tested
>
>I was thinking about something like this, but when I tried myDir + "*g*.*" it returned wrong file...

You can't use [*g*.*] as a mask. You always will get a whole folder. try even in command prompt (old DOS) window:
DIR *g*.*
What you want? A file that have G somewhere in the name?
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform