Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Set default to (cFolderName)
Message
 
 
To
03/08/2021 15:06:41
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01682000
Message ID:
01682005
Views:
41
>>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

First, thank you for your message.
From the time I posted the message here and now (just a minute ago), I added the error object to the CATCH. Then, I updated their application. I just tried a minute ago with one person. No error and it work for her too. I asked her to ask other people to test in case the problem was a glitch.
As far as your question. I have not looked into the Start In of the desktop shortcut. If it does not work for someone, I will check this property.
Again, thank you.
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Previous
Reply
Map
View

Click here to load this message in the networking platform