Listed here are some simple methods to repair Invalid Property Array Index error 381.
The rationale and resolution for this error is as follows. An array of part properties can have a decrease restrict of zero and an higher restrict equal to the variety of components within the array minus 1. Alternatively, the decrease restrict could be 1 and the higher restrict is the same as the variety of components within the array.
I am new to programming, particularly Visible Fundamental. I solely use VB6 as a result of I want to make use of it in faculty and I’m utterly slowed down.
I’ve an inventory by which I need to show the title of the radio. Then after I click on on a reputation that ought to put the info in some sort of textual content area, it’s simple for me to know, however I do not even know the complete VB6 syntax, so I’m utterly caught, I requested my trainer however that does not fairly assist me.
That is the road that will probably be highlighted when the Debug button is pressed:
x = radCatList.ItemData (radCatList.ListIndex)
That is the Enitre type code, once more it is quite simple and I hardly know what I am doing. Most of this mission is reduce and paste work:
Specific parameterSubform Private_Load ()Dim r As radioRecDim RadioChan as integerDim x As Integerx = 1radioChan = FreeFileOpen file radioFile For Random As radioChan Len = radioLenGet radioChan, x, rDo not but EOF (radioChan) radCatList.AddItem r.rModel radCatList.ItemData (radCatList.NewIndex) = x x = x 1 Get radioChan, x, ra loopClose RadioChanEnd of subscriptionSub non-public radCatList_Click ()Dim r As radioRecDim RadioChan as integerDim x As IntegerradCatList.Clearx = radCatList.ItemData (radCatList.ListIndex)radioChan = FreeFileOpen file radioFile For Random As radioChan Len = radioLenGet radioChan, x, rchannelTxt = r.rLicenselicenseTxt = r.rLicenserangeTxt = r.rRangestockTxt.Textual content = r.rStockClose RadioChanEnd of subscription
requested November 28, 2012 at 10:10 AM