Jerryth
8 years agoOccasional Contributor
TC Form Listbox not working
I have a TC form with a listbox containing a couple of entries.
This line in a script works correctly adding a new entry at the bottom of the existing entries:
UserForms.AutoTestRandomForm.JewelLB.Items.Add('33');
All of these lines generate the same error:
UserForms.AutoTestRandomForm.JewelLB.Items[1].Text := '99';
ShowMessage(UserForms.AutoTestRandomForm.JewelLB.Items[1].Text);
ShowMessage(UserForms.AutoTestRandomForm.JewelLB.Items[1]);
"Invalid number of parameters of the user form component property."
Suggestions?
<apply palm to forehead>
I know about Items.Items[0] - I was just having a brain fart...
Thanks for getting back in business with a clear concise explanation!