Learn about errors

Post a reply

Smilies
:D :) :( :o :-? 8) :lol: :x :P :oops: :cry: :evil: :roll: :wink:

BBCode is ON
[img] is ON
[flash] is OFF
[url] is ON
Smilies are ON

Topic review
   

Expand view Topic review: Learn about errors

Re: Learn about errors

by crap_inhuman » Thu Jun 24, 2021 6:03 am

You didn't set the variable 'FrmMain' in your script

Learn about errors

by Caramon10001 » Wed Jun 23, 2021 10:59 pm

I'm having trouble with this, why does it keep giving me an error

Code: Select all

Public Sub AddLst()
Dim i As Integer
Dim TxtTmp() As String
FrmMain.LstAdd.ListIndex = 0
Arr = Split(FrmMain.LstAdd.Text, "|")
FrmMain.LstFile.AddItem TxtTmp(0)
FrmMain.LstLink.AddItem TxtTmp(1)
For i = 1 To FrmMain.LstAdd.ListCount - 1
FrmMain.LstAdd.ListIndex = FrmMain.LstAdd.ListIndex + 1
Arr = Split(FrmMain.LstAdd.Text, "|")
FrmMain.LstFile.AddItem TxtTmp(0)
FrmMain.LstLink.AddItem TxtTmp(1)
Next i
End Sub

Top