Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Collections default method
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00789877
Message ID:
00789949
Vues:
21
Hi Cris,

It looks like a bug in the Project Manager to me. It's harmless but annoying.

>I was hoping to use the default method (.item) with the collection class,
>but I have had troubles when building project that have code using this method.
>
>
>local oCol as Collection
>oCol= createobject("Collection")
>oCol.add("Apple")
>oCol.add("Banana")
>?oCol(1)
>
>
>If you put that code in a prg in a project and try rebuild that project you get an error "Unable to find unknown OCOL", referring to the fact there is no oCol procedure or prg available.
>There are atleast two workarounds I can think of, the first is an EXTERNAL ARRAY command, and the second is to just not use the default method and actually type .item(1), which is not a big problem, but the product is not working as I would expect it to.
>
>Is there another way to get this working?
>
>Thanks
--sb--
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform