VBScript Qusetion

08-22-2002, 01:34 PM
I have a VBScript question
i need to add text to listbox from a text box using a command button

cmdAdd (caption = "Add")

how could I Do this?how could the information in lstAll be static(save it to a file/load from a file)?

08-22-2002, 01:53 PM
Is this within VBA, a webpage, or VB? And are you sure it's using VBS?

09-12-2002, 07:53 PM
this is for a web page that I want,every tutorial that I read didnt expalin anything like this to me...
is it possible?

09-12-2002, 08:07 PM
In VB it is:

Sub CmdAdd_Click
lstAll.AddItem txtAdd
End Sub

In VBScript, it depends. If you don't want the page to be retrieved from the server, then you need Javascript which is outside the scope of this forum. If you don't mind returning to the web server, it can be done with basically the same code nested in your HTML code.

Because the Caption property you mentioned only applies to VB, I'll save the response in VBScript unless you request it.

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum