I'm sure somebody might have asked you the question.
I'm coming back to idea scripting after three years and almost forgot all the tips and tricks.
Previously i have created many macros with list box but not rememebr facing this issue.
I'm getting internal error for the below example. I have defined the array for list box seperately but still facing issue. I'm using idea 10 version. Do you see something that i'm missing? I have a 3000 line code having this problem. so, just created an example with simple list box.
Dim sridhar() AS string
Begin Dialog NewDialog 50,49,251,150,"NewDialog", .NewDialog ListBox 72,38,85,14, sridhar(), .ListBox1 PushButton 108,82,40,14, "Button", .PushButton1End Dialog
ReDim sridhar(2) sridhar(0) = "1"sridhar(1) = "2"
dim button as stringbutton = Dialog(newdialog)MsgBox button
If button =1 Then
Set db = Client.OpenDatabase("COA-Sheet1.IMD") Set task = db.Extraction task.AddFieldToInc "TB_ACCOUNT_NUMBER" dbName = "EXTRACTION1.IMD" task.AddExtraction dbName, "", "" task.CreateVirtualDatabase = False task.PerformTask 1, db.Count Set task = Nothing Set db = Nothing Client.OpenDatabase (dbName)
Last seen: 8 months 1 week ago
Joined: 07/18/2015 - 13:44