Windows Vista Forums

Create tables with vbscript.

  1. #1


    Yasmin Guest

    Create tables with vbscript.

    I am new to vbscript (asp coding), I come from a php world and am learning lots.
    I need to create a table of Labesl/Radio Buttons dynamically from a db table.

    The data would look like this:

    RecNo fruit_text1(nvarchar) fruit_choice2(bit) fruit_text2(nvarchar) fruit_choice2(bit)
    1 apple 0 orange 1
    2 grapes 1 melon 0



    and so on.

    What I need to do is to display the table data with the TEXTx as the Label and ChoiceX as the Radio button value.

    I think I should also say that the data is in pairs. By this I mean RecNo1 data is displayed in the same TR as a pair, so that when a user clicks on Apple, Orange is deselected etc.

    I've tried to convert some PHP code, but am just not well versed enuff in vbscript for asp pages.

    Thanks.



      My System SpecsSystem Spec

  2. #2


    Hz Guest

    Re: Create tables with vbscript.

    Weird naming. If you're only storing fruit data, why do you need to name
    every column fruit_? And RecNo? There are no records in a database, only
    rows. It isn't a sequential text file:-)

    For your question, try this link. It's a great site that helped me a lot:
    http://classicasp.aspfaq.com/general...-from-asp.html

    --
    ..::[ Hz ]::.

      My System SpecsSystem Spec

  3. #3


    Joe Fawcett Guest

    Re: Create tables with vbscript.


    "Yasmin" <yasmin@xxxxxx> wrote in message
    news:u8A1aBLqJHA.5880@xxxxxx

    > I am new to vbscript (asp coding), I come from a php world and am learning
    > lots.
    > I need to create a table of Labesl/Radio Buttons dynamically from a db
    > table.
    >
    > The data would look like this:
    >
    > RecNo fruit_text1(nvarchar) fruit_choice2(bit) fruit_text2(nvarchar)
    > fruit_choice2(bit)
    > 1 apple 0 orange
    > 1
    > 2 grapes 1 melon
    > 0
    >
    > and so on.
    >
    > What I need to do is to display the table data with the TEXTx as the Label
    > and ChoiceX as the Radio button value.
    >
    > I think I should also say that the data is in pairs. By this I mean RecNo1
    > data is displayed in the same TR as a pair, so that when a user clicks on
    > Apple, Orange is deselected etc.
    >
    > I've tried to convert some PHP code, but am just not well versed enuff in
    > vbscript for asp pages.
    >
    > Thanks.
    >
    >
    So where are you at the moment?
    Have you read the table (using adodb)?
    Have you iterated through the rows?
    Have you created the required markup?

    What I'm really asking is which part of this are you stuck on?

    --

    Joe Fawcett (MVP - XML)
    http://joe.fawcett.name


      My System SpecsSystem Spec

  4. #4


    Yasmin Guest

    [Resolved]Re: Create tables with vbscript.

    Found a solution.

    "Yasmin" <yasmin@xxxxxx> wrote in message news:u8A1aBLqJHA.5880@xxxxxx
    I am new to vbscript (asp coding), I come from a php world and am learning lots.
    I need to create a table of Labesl/Radio Buttons dynamically from a db table.

    The data would look like this:

    RecNo fruit_text1(nvarchar) fruit_choice2(bit) fruit_text2(nvarchar) fruit_choice2(bit)
    1 apple 0 orange 1
    2 grapes 1 melon 0

    and so on.

    What I need to do is to display the table data with the TEXTx as the Label and ChoiceX as the Radio button value.

    I think I should also say that the data is in pairs. By this I mean RecNo1 data is displayed in the same TR as a pair, so that when a user clicks on Apple, Orange is deselected etc.

    I've tried to convert some PHP code, but am just not well versed enuff in vbscript for asp pages.

    Thanks.



      My System SpecsSystem Spec

Create tables with vbscript.

Similar Threads
Thread Thread Starter Forum Replies Last Post
how to create a tunnel vpn with vbscript? bubuforever VB Script 2 10 Sep 2009
Create vbscript to empty secure temp folder when exiting Outlook. PaulyBalls VB Script 0 10 Dec 2008
vbscript AD and who create account hehehehe VB Script 3 02 Oct 2008
how to create checkbox using vbscript ramji VB Script 1 07 Sep 2008
vbscript to create file Valerio Vista General 3 07 Feb 2007