Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Collection item warning when compiling
Message
From
19/10/2004 10:02:36
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Project manager
Title:
Collection item warning when compiling
Miscellaneous
Thread ID:
00952599
Message ID:
00952599
Views:
46
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
ramil
~~ learning to stand still
Next
Reply
Map
View

Click here to load this message in the networking platform