| View previous topic :: View next topic |
| Author |
Message |
vtol Valued Contributor


Joined: 05 Feb 2004 Posts: 656 Location: Eastern Indiana
|
Posted: Tue Apr 27, 2004 6:42 am Post subject: Why @CURDIR not work when Shortcut used? |
|
|
Hi all
Why does @CURDIR make the Desktop the Current directory when you run your program with a Destop Shortcut?
Is there a way to get the current folder of the EXE and not the shorcut.LNK's location(desktop) ???
Some reason @CURDIR() thinks the shortcut is the program
Thanks, boy am I a lotta trouble  |
|
| Back to top |
|
 |
Tommy Admin Team
Joined: 16 Nov 2002 Posts: 746 Location: The Netherlands
|
Posted: Tue Apr 27, 2004 7:15 am Post subject: |
|
|
| You can use @PATH(%0). %0 contains the file name of the .exe file or .dsc file. |
|
| Back to top |
|
 |
vtol Valued Contributor


Joined: 05 Feb 2004 Posts: 656 Location: Eastern Indiana
|
Posted: Tue Apr 27, 2004 7:36 am Post subject: |
|
|
ahh, forgot about that...I'll give it a whirl in a few minutes, thanks Tommy.
While I have an expert handy I'm also having trouble remembering how to delete the listing in a COMBO dialog.
I tried:
list clear, 1
dialog clear,box1
dialog set,box1,
All only clear the 1st spot on COMBO box, not big list under combo control name, do I have to use 'dialog remove,box1' and then re-ADD it? |
|
| Back to top |
|
 |
Tommy Admin Team
Joined: 16 Nov 2002 Posts: 746 Location: The Netherlands
|
Posted: Tue Apr 27, 2004 4:27 pm Post subject: |
|
|
List clear will work fine, but do not use "list clear,1" but rather use "list clear,box":
| Code: | DIALOG CREATE,Combo box example,-1,0,240,75
DIALOG ADD,COMBO,box1,8,8,224,21
DIALOG ADD,BUTTON,bClear,40,8,224,24,Clear combo box listing
DIALOG SHOW
list loadtext,box1
"Item 1
"Item 2
"Item 3
:evloop
wait event
goto @event()
:bClearbutton
list clear,box1
goto evloop
:close |
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You can attach files in this forum You can download files in this forum
|
|