Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Set default to (cFolderName)
Message
De
03/08/2021 15:06:41
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01682000
Message ID:
01682004
Vues:
64
>I have a code in the application that looks like this:
>
>        cCurrDir = SET("DIRECTORY")
>	TRY 
>		SET DEFAULT TO (cAttachmentDir)
>	CATCH 
>		SET DEFAULT TO (cCurrDir)
>	FINALLY 
>	ENDTRY 	
>
>
>The cAttachmentDir does exist. But this customer, when the above code fires, sees the "desktop" as the folder. I presume that the SET DEFAULT TO (cAttachmentDir) fails and his SET("DIRECTORY") points to the Desktop folder. When I take over his PC, via GoToMeeting, and enter the application with my password, the default is set to the cAttachmentDir.
>
>What could cause the SET DEFAULT TO (cAttachmentDir) fail for this customer and not fail for me? Keep in mind that as far as the access rights to the folder, it should be the same, me or him, since he is logged in the PC (during GoToMeeting session)

Some ideas, no particular order:

- Does your app do anything different when you sign in with your password vs using his password?
- Is he using a desktop icon to start the app, with the "Start in:" property on the Shortcut tab set to the desktop? And maybe you're starting the app in a different way?
- You could add some logging code to get a better idea of what's actually happening
Regards. Al

"Violence is the last refuge of the incompetent." -- Isaac Asimov
"Never let your sense of morals prevent you from doing what is right." -- Isaac Asimov

Neither a despot, nor a doormat, be

Every app wants to be a database app when it grows up
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform