I asked this question in another thread but have not yet recieved a reply, so i'm asking it again here.
Ok I have a question
I'm writing my own frontend in VB.
How do I pass quotes in vb?
for example, if i type
shell "C:\program files\winamp\winamp.exe D:\a pirate song.mp3"
then I get a playlist like this:
Yet if I type this,
shell "C:\program files\winamp\winamp.exe "D:\a pirate song.mp3" "
I get an error
how do you get round this?
Im not to sure about this one.
If i remember right you can use double " when you embed them into a string
shell "C:\program files\winamp\winamp.exe ""D:\a pirate song.mp3"" "
I know for sure that this is what you do in SQL when you need to handle a ' then you just use two, like this '' (TWO CHARACTERS).
Hope this fixes your problem
Easiest way is to use vbQuote...Not sure if you have to declare it first or if it is built it.
DIM ShellVariable AS STRING
ShellVariable = vbQuote & "C:\program files\blah blah" & vbQuote
If that results in an error, first DIM vbQuote and assing it the value CHR(34):
vbQuote = Chr$(34)
You can also DIM it as GLOBAL in a module if necessary.
Player: Pentium 166MMX, Amptron 598LMR MB w/onboard Sound, Video, LAN, 10.2 Gig Fujitsu Laptop HD, Arise 865 DC-DC Converter, Lexan Case, Custom Software w/Voice Interface, MS Access Based Playlists
Car: 1986 Mazda RX-7 Turbo (highly modded), 1978 RX-7 Beater (Dead, parting out), 2001 Honda Insight
"If one more body-kitted, cut-spring-lowered, farty-exhausted Civic revs on me at an intersection, I swear I'm going to get out of my car and cram their ridiculous double-decker aluminium wing firmly up their rump."
problem solved - thanks guys
thats a nice looking dognut
ok another problem.
How do I get it to do "always on top"?
you know how a window appears on top all the time no matter what window is in the "front"?
It sounds like you're pretty new to VB. Go to groups.google.com and search for your questions. I guarantee it's been asked many times there.
For example, "vb window always top" gives many examples.
I'm just suggesting this because it will save you a lot of time over asking simple questions here.