|
-
Dec 4th, 2000, 03:28 AM
#1
Thread Starter
Member
I have a tiny Newbie problem.
How do i make the following line application path sensitive?
'Read MOTD file
rtbMotd.LoadFile "C:\Program Files\SCP\motd.rtf", rtfRTF
Is it something like
'Read MOTD file
rtbMotd.LoadFile "app + path" , "motd.rtf", rtfRTF
I am guessing at that, and my book doesnt have it in it. So am at a bit of a loss.
Any help is appreciated.
M.
-
Dec 4th, 2000, 03:48 AM
#2
Fanatic Member
If the rtf file you are referring to is in the folder where you have installed your application, the code is:
Code:
'Read MOTD file
rtbMotd.LoadFile App.Path & "\motd.rtf", rtfRTF
Cheers,
W.
When your car breaks down,
close all windows and retry 
=> please rate all users posts! <=
-
Dec 4th, 2000, 04:17 AM
#3
Thread Starter
Member
Thankyou for that.
worked a treat.
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
|