Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Set default to...
Message
 
À
13/07/2001 15:51:12
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00528803
Message ID:
00533580
Vues:
20
>>Len,
>>
>>>Not so much a solution as a workaround - if macros don't work then don't use them.
>>
>>I'm sorry, but it is not a workaround. If you or Andrew understood what macro substitution meant in VFP and how spaces in a file path affect things it would be more obvious to you what the error is.
>>
>>set default to C:\Program Files\Windows Media Player && fails
>>set default to "C:\Program Files\Windows Media Player" && works
>>
>>lcpath = "C:\Program Files\Windows Media Player"
>>
>>set default to &lcPath && fails
>>set default to (lcPath) && works beautifully because name substitution is the best way to handle this
>>
>>?curdir()
>>
>>lcPath = ["C:\Program Files\Windows Media Player"]
>>
>>set default to &lcPath && works because of the "
>>
>>?curdir()
>>
>>>but her theory behind the original problem is as dubious as Andrews.
>>
>>Her theory is much more sound than the random babblings that have been pondered elsewhere in this thread
>
>So why doesn't SET DEFAULT TO SYS(5) work - no question about name expressions or macro substitution. She didn't answer the entire problem. SYS(5) doesn't return spaces (AFAIK), so her theory is only partly right.

Probably because set default to expects a name, and name substitution was not used.

Try

set default to (sys(5)) should work fine.
Cy Welch
Senior Programmer/Analyst
MetSYS Inc
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform