A
Anthony Papillion
So I'm trying to build a path variable that points to a longer path so I
don't have to keep typing out the entire thing. I discovered the
GetSpecialFolder() method and I'm trying to use it like this:
Friend AppDataPath as String =
System.Enviroment.GetFolderPath(Enviroment.GetSpecialFolder.ApplicationData())
& "\myAppName"
My thought is, instead of typing the whole path to the users ApplicationData
folder, I could simply substitute the AppDataPath variable there. However,
the compiler is complaining that I can't convert an integer to a string or
something like that and I can't seem to fix it.
So I displayed the path in a messagbox like this:
MsgBox(AppDataPath)
and I get something like "26\myAppName" instead of any real path.
WTF? What is going on here?
Someone at the MSDN forums told me that I can append my own text to the
returned string but I can't see WHY that would be. Is that true? If it is,
is there a workaround?
Thanks for the help everyone.
Anthony
don't have to keep typing out the entire thing. I discovered the
GetSpecialFolder() method and I'm trying to use it like this:
Friend AppDataPath as String =
System.Enviroment.GetFolderPath(Enviroment.GetSpecialFolder.ApplicationData())
& "\myAppName"
My thought is, instead of typing the whole path to the users ApplicationData
folder, I could simply substitute the AppDataPath variable there. However,
the compiler is complaining that I can't convert an integer to a string or
something like that and I can't seem to fix it.
So I displayed the path in a messagbox like this:
MsgBox(AppDataPath)
and I get something like "26\myAppName" instead of any real path.
WTF? What is going on here?
Someone at the MSDN forums told me that I can append my own text to the
returned string but I can't see WHY that would be. Is that true? If it is,
is there a workaround?
Thanks for the help everyone.
Anthony