Just run externally from your .vbs editor (or NotePad saved as .vbs ) .....
Is it any easy trick (with a single command if possible) that deletes all the content (all items) loaded in the form?
In other words, I am looking to reset the form so I load new (lb1.Items.Add) staff.....
Code: Select all
Dim SDB : Set SDB = CreateObject("SongsDB.SDBApplication")
SDB.ShutdownAfterDisconnect = False
Set Form = SDB.UI.NewForm
Form.Common.SetRect 100, 100, 400, 400
Form.Caption = "Delete All"
Set lb1 = SDB.UI.NewListBox(Form)
lb1.Common.Left = 10
lb1.Common.Top = 10
lb1.Common.Height = 300
lb1.Common.Width = 300
For i = 0 To 10
lb1.Items.Add "Delete All " & i
Next
Form.ShowModal
' ? Command to Delete All items from lb1.Items.Delete ?
Thanks in advance.