Results 1 to 6 of 6

Thread: VB Script & Listboxes

  1. #1

    Thread Starter
    Member Ch1n's Avatar
    Join Date
    Apr 2005
    Location
    Pompey
    Posts
    42

    VB Script & Listboxes

    Hello ,
    How can i have a listbox on the page and insert data into it using VBScript?


    Thanks
    "He who dares, wins"

  2. #2
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: VB Script & Listboxes

    Client side or server side vbscript?

  3. #3
    PowerPoster techgnome's Avatar
    Join Date
    May 2002
    Posts
    34,687

    Re: VB Script & Listboxes

    It would almost have to be server side.... most browsers don't support VBScript.

    Tg
    * I don't respond to private (PM) requests for help. It's not conducive to the general learning of others.*
    * I also don't respond to friend requests. Save a few bits and don't bother. I'll just end up rejecting anyways.*
    * How to get EFFECTIVE help: The Hitchhiker's Guide to Getting Help at VBF - Removing eels from your hovercraft *
    * How to Use Parameters * Create Disconnected ADO Recordset Clones * Set your VB6 ActiveX Compatibility * Get rid of those pesky VB Line Numbers * I swear I saved my data, where'd it run off to??? *

  4. #4
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: VB Script & Listboxes

    I think you can do

    ListBoxName.AddItem ItemArray(4)

    in a loop of course.

  5. #5
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: VB Script & Listboxes

    For i=0 To UBound(varArray)
    SelectedList.AddItem varArray(i)
    Next

  6. #6
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: VB Script & Listboxes

    Yeah that's what I mean.

Posting Permissions

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



Click Here to Expand Forum to Full Width