>Hi, Peter
>
>I'm sorry to interfeer, but I want to ask you to explain this a little. I'm not sure it will work - the icon can have Working Directory set to something else. So, doubleclicking it will launch the exe in the directory set by the icon. In that case, CURDIR() will point God knows where.
>
>What about gcStartupDir = Sys(5) + JustPath(Sys(16))?
>
>Thank you.
>
>>
>>BTW, put this somewhere on top of your main program::
private gcStartupDir
>>gcStartupDir = sys(5) + curdir()
Grigore,
THANK YOU for correcting me! I've looked up how I handle this in my applications. Here's the code:
if atc( justpath( sys( 16, 0 ) ) + ';', set( 'path' ) + ';' ) = 0
if empty( set( 'path' ) )
set path to justpath( sys( 16, 0 ) )
else
set path to set( 'path' ) + ';' + justpath( sys( 16, 0 ) )
endif
endif
Groet,
Peter de Valença
Constructive frustration is the breeding ground of genius.
If there’s no willingness to moderate for the sake of good debate, then I have no willingness to debate at all.
Let's develop superb standards that will end the holy wars.
"There are three types of people: Alphas and Betas", said the beta decisively.
If you find this message rude or offensive or stupid, please take a step away from the keyboard and try to think calmly about an eventual a possible alternative explanation of my message.