Solved

ASP/VBSCRIPT/ListBox

Posted on 2002-03-07
2
445 Views
Last Modified: 2008-03-04
Hello, I have a listbox with ID="List1" that i need to update from with in a vbscript sub.  any ideas
0
Comment
Question by:MICS
2 Comments
 
LVL 46

Expert Comment

by:fritz_the_blank
ID: 6847524
Can you tell us a little more about what you're trying to do please?

Fritz the Blank
0
 
LVL 3

Accepted Solution

by:
tonydspaniard earned 50 total points
ID: 6847533
if what you are doing is using IE do the following:

' Create an option element
' in JScript
' var optOption = document.createElement("OPTION");
' optOption .text="Apples";
' optOption .value="5";
' document.all.List1.add(optOption );

' in VBScript
Set optOption = document.createElement("OPTION")
optOption.text="Oranges"
optOption.value="10"
document.all.List1.add(optOption)


CYA

0

Featured Post

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Have you ever needed to get an ASP script to wait for a while? I have, just to let something else happen. Or in my case, to allow other stuff to happen while I was murdering my MySQL database with an update. The Original Issue This was written…
I was asked about the differences between classic ASP and ASP.NET, so let me put them down here, for reference: Let's make the introductions... Classic ASP was launched by Microsoft in 1998 and dynamically generate web pages upon user interact…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

856 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question