Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Set default to...
Message
De
13/07/2001 15:51:12
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00528803
Message ID:
00530472
Vues:
16
>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.
Len Speed
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform