Announcement

Collapse
No announcement yet.

VB Frontend

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • VB Frontend

    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:

    D:\a
    pirate
    song.mp3

    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?

  • #2
    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

    Comment


    • #3
      Easiest way is to use vbQuote...Not sure if you have to declare it first or if it is built it.

      Try:

      DIM ShellVariable AS STRING
      ShellVariable = vbQuote & "C:\program files\blah blah" & vbQuote
      SHELL ShellVariable


      If that results in an error, first DIM vbQuote and assing it the value CHR(34):

      DIM vbQuote

      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."

      Comment


      • #4
        Use this handy dandy little module instead:

        http://www.winamp.com/nsdn/vault/Winamp_VB.zip
        Don't Click

        Comment


        • #5
          problem solved - thanks guys

          Comment


          • #6
            thats a nice looking dognut
            Project - GAME OVER :(

            Comment


            • #7
              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"?

              thanks guys

              Comment


              • #8
                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.
                Don't Click

                Comment

                Working...
                X