Learn about errors

This forum is for questions / discussions regarding development of addons / tweaks for MediaMonkey.

Moderators: Gurus, Addon Administrators

Caramon10001

Learn about errors

Post by Caramon10001 »

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
crap_inhuman
Posts: 883
Joined: Sat Jan 26, 2013 6:00 am
Location: Friedberg / Hessen / Germany
Contact:

Re: Learn about errors

Post by crap_inhuman »

You didn't set the variable 'FrmMain' in your script
Metal up your ass !
-----------------------------------------------
I added my first 2 videos on youtube. The language is german.

Discogs Autorisierung: https://www.youtube.com/watch?v=oryxKKtnEnc
Discogs Tagger Bedienung: https://www.youtube.com/watch?v=85Wk-5rd-W0
Post Reply