-
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.
-
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.
-
Thankyou for that.
worked a treat.