|
-
Feb 26th, 2000, 06:18 AM
#1
Thread Starter
New Member
At the moment I am using this code:
cmdGo.Picture = LoadPicture("$(AppPath)\Go.ico")
And I have the Go.ico file in the same directory. How come I am still getting a cannot find error.
This is probably a really basic question, but any help would be much appreciated.
-
Feb 26th, 2000, 06:48 AM
#2
Junior Member
The corect is
cmdGo.Picture = LoadPicture(App.Path & "\Go.ico")
where app.path is the path of your executable program
-
Feb 26th, 2000, 09:12 AM
#3
Thread Starter
New Member
-
Feb 27th, 2000, 06:07 PM
#4
but what occurs if you're app is istalled at c:\ ???
better you use a other routine: (past it into a module)
Public Function AppPath () as String
dim strBuffer as string
if right(app.path,1) = "\" then
apppath = mid(app.path,1,len(app.path) - 1)
else
apppath = app.path
end if
end function
Edited by taLON on 02-28-2000 at 06:35 AM
-
Feb 28th, 2000, 05:36 AM
#5
Junior Member
Yes you have right.
I forgot it because sometimes the mind goes faster.....
-
Feb 28th, 2000, 11:50 AM
#6
Thread Starter
New Member
Uh, Johnny boy, r u from around these parts?
...
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|