Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Invalid subscript reference
Message
From
30/11/2006 15:56:41
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01173721
Message ID:
01173869
Views:
8
>>>>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?
>>>
>>>Yes, but not in the extension part. Anyway, I think I can always call this program with extension, so this problem becomes mute. But I was a bit surprised to see this behavior.
>>
>>get all jpeg files and after that use $ operator.
>
>Are you saying that this is invalid?
>
>
>IF ADIR(laFiles, m.HomeImg + "*" + m.lcCheck + "*." + m.tcExt) >=1


No, this is valid, but if you have
m.tcExt = [*]
You will get all the files that have m.lcCheck in their names AND extension.
But if you have this:
IF ADIR(laFiles, m.HomeImg + "*G*.J*") >=1

You will get all the files that will have [G] in their names and their extension begins with [J]
If you have this:
IF ADIR(laFiles, m.HomeImg + "*G*.*J*") >=1

You will get all the files that will have [G] in their names and their extension have [J] somewhere.
(again all of these cases are not properly tested).
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform