forum.vdsworld.com Forum Index forum.vdsworld.com
Visit VDSWORLD.com
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Why @CURDIR not work when Shortcut used?

 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help
View previous topic :: View next topic  
Author Message
vtol
Valued Contributor
Valued Contributor


Joined: 05 Feb 2004
Posts: 656
Location: Eastern Indiana

PostPosted: Tue Apr 27, 2004 6:42 am    Post subject: Why @CURDIR not work when Shortcut used? Reply with quote

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 Insane Confused, angry

Thanks, boy am I a lotta trouble Stupid Crying Mr. Green
Back to top
View user's profile Send private message Visit poster's website
Tommy
Admin Team


Joined: 16 Nov 2002
Posts: 746
Location: The Netherlands

PostPosted: Tue Apr 27, 2004 7:15 am    Post subject: Reply with quote

You can use @PATH(%0). %0 contains the file name of the .exe file or .dsc file.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
vtol
Valued Contributor
Valued Contributor


Joined: 05 Feb 2004
Posts: 656
Location: Eastern Indiana

PostPosted: Tue Apr 27, 2004 7:36 am    Post subject: Reply with quote

ahh, forgot about that...I'll give it a whirl in a few minutes, thanks Tommy.

While I have an expert handy Smile 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
View user's profile Send private message Visit poster's website
Tommy
Admin Team


Joined: 16 Nov 2002
Posts: 746
Location: The Netherlands

PostPosted: Tue Apr 27, 2004 4:27 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help All times are GMT
Page 1 of 1

 
Jump to:  
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

Twitter@vdsworld       RSS

Powered by phpBB © 2001, 2005 phpBB Group