Results 1 to 8 of 8

Thread: VB Frontend

  1. #1
    Newbie
    Join Date
    Sep 2002
    Location
    Brisbane, Queensland, Australia
    Posts
    21

    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. #2
    Variable Bitrate
    Join Date
    Nov 1999
    Location
    Ishoej, Denmark
    Posts
    310
    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

  3. #3
    Retired Admin Aaron Cake's Avatar
    Join Date
    Jan 2000
    Location
    London, Ontario, Canada
    Posts
    2,464
    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."

  4. #4
    FLAC Gutter's Avatar
    Join Date
    Dec 1999
    Location
    Casina, Italy
    Posts
    901
    Use this handy dandy little module instead:

    http://www.winamp.com/nsdn/vault/Winamp_VB.zip

  5. #5
    Newbie
    Join Date
    Sep 2002
    Location
    Brisbane, Queensland, Australia
    Posts
    21
    problem solved - thanks guys

  6. #6
    FLAC
    Join Date
    Apr 2001
    Location
    Here, There, Everywhere
    Posts
    1,436
    thats a nice looking dognut
    Project - GAME OVER :(

  7. #7
    Newbie
    Join Date
    Sep 2002
    Location
    Brisbane, Queensland, Australia
    Posts
    21
    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

  8. #8
    FLAC Gutter's Avatar
    Join Date
    Dec 1999
    Location
    Casina, Italy
    Posts
    901
    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.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •