>Hi!
>Thank you for reply.
>>Hi, neighbor
>>If I understand correctly, you want to get the folder your app is in. That's simple, you use CURDIR(), or even better something like following:
>>
lcCurrentDirectory = SYS(5);
>> + CURDIR()
>
>This will work only if you will start MyFile.App from System Menu Program/Do
>or type in Command Window two commands:
> SET DEFAULT TO (sMyAppLocation)
> DO MyFile.App
>
>But how determine folder (sMyAppLocation) inside my app if I will type next:
> SET DEFAULT TO HOME()
> DO (sMyAppLocation+"MyFile.App")
>???????????
Well, interpreting our examples, I'd try something like following:
LOCAL lcAppPath
lcAppPath = FULLPATH(CURDIR()) + "MyApp.app"
CD HOME()
DO (lcAppPath)
-- OR
LOCAL lcAppPath
lcAppPath = FULLPATH(CURDIR())
CD HOME()
DO (lcAppPath + "MyApp.app")
See you later, aligator
Danijel