Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Invalid Subscript Reference
Message
 
To
All
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Title:
Invalid Subscript Reference
Miscellaneous
Thread ID:
00667599
Message ID:
00667599
Views:
86
Hi

I am using the TList6 control from Bennet-tec. It allows a special index to be passed to the ItemTag property. The index is -3 which points to the last node added to the list. However, VFP reports this as an Invalid Subscript Reference.

The code I am using is shown below. It was part of a test to see how quickly a table could be loaded into the treeview control.
With This.navList.Object
   .Redraw=.F.
   .Clear
   scan
      .AddItem(ARMaster.Id1)
      .ItemTag(-3)=ARMaster.ID  && VFP reports the subscript error here
   EndScan
   .ListIndex=0
   .Redraw=.T.
EndWith
Why would VFP report the error when the ItemTag property is part of the ActiveX control and not VFP?

Thanks
Simon
Simon White
dCipher Computing
Reply
Map
View

Click here to load this message in the networking platform