Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Stuck in the mud of VFP with a tricky USE and SELECT
Message
De
24/08/2001 00:40:14
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00548090
Message ID:
00548467
Vues:
11
>>>Just in case nobody noticed so far, you're missing the +".SCX" in the bolded line, so your path_name has a filename without an extension. Therefore the "USE &path_name && IN 0 SHARED" tries to open a file with a default extension of .dbf, which is most probably not there.
>>>
>>>BTW, why did you split the pathnames into three parts? I usually have them in memo fields; nowadays they can be rather long, specially with UNCs. Besides, the "drive" part of an UNC may have substantial length.
>>>
>>>But then it's a different matter, which would deserve a separate thread or a quick poll by Michel: mapped drives or UNCs, pros and cons.
>>
>>I forgot: if your path name contained any spaces, USE &path_name would break. You'd have to Use "&path_name", or to Use (path_name). Preferrably the second, it was always faster.
>
>Dragan,
>
>Yes, I noticed that, so I just deleted this line at all in my response. I don't see a need for a second variable. I also noted not intuitive name for the variable...

Sure - you did it the right way, I just added the "why is this better". We'd make a hell of a training team, eh?

BTW, I've never returned to the case of the editbox which doesn't keep the cursor on its .selstart - simply had to move to do something else. I'm pretty much an one-man team now, "all present and accounted for, but you can count on me as if I was fully manned". That editbox seems to be my least worry at the moment.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform