Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Collection item warning when compiling
Message
De
19/10/2004 10:06:50
Lutz Scheffler (En ligne)
Lutz Scheffler Software Ingenieurbüro
Dresden, Allemagne
 
 
À
19/10/2004 10:02:36
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de projet
Divers
Thread ID:
00952599
Message ID:
00952604
Vues:
8
This message has been marked as the solution to the initial question of the thread.
Ramil,

yes it causes an compiler error.

Work around:
>oThisItem = oItems.item(1)
Agnes
>Hi all,
>I can run the code below without problems. However, when I create a project and add that single program in, the compiler generates a warning when building an exe, maybe because it thinks oItems is a function. Is there a way to turn this on or off, like EXTERNAL ARRAY or something.
>
>local oItems as Collection
>oItems = createobject('clsItems')
>oItem  = createobject('clsItem')
>oItems.Add(oItem)
>
>local oThisItem as clsItem
>oThisItem = oItems(1)  && causes a warning in the compiler!
>? oThisItem.custProp
>
>*--------------------------------------------------
>define class clsItems as collection
>enddefine
>
>*--------------------------------------------------
>define class clsItem as custom
>	custprop = "Hello"
>enddefine
>
Words are given to man to enable him to conceal his true feelings.
Charles Maurice de Talleyrand-Périgord

Weeks of programming can save you hours of planning.

Off

There is no place like [::1]
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform