Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Invalid Subscript Reference
Message
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Titre:
Invalid Subscript Reference
Divers
Thread ID:
00667599
Message ID:
00667599
Vues:
85
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
Répondre
Fil
Voir

Click here to load this message in the networking platform