Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Collection_Access
Message
 
To
23/07/2003 16:43:46
Matthias Will
BiCON Systemtechnik GmbH
Karlsruhe, Germany
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00812934
Message ID:
00812965
Views:
12
Not sure if I understood correctly, but here is an idea.

Define your own Collection class based on collection and write your access code in there, for example:
local loCollection

loCollection = createobject('MyCollection')

loCollection.Add('A')
loCollection.Add('B')
loCollection.Add('C')
loCollection.Add('D')

? loCollection.GetItemByIndex(2)


define class MyCollection as Collection

	function GetItemByIndex(tnIndex)
		* Parameter Verification + Access Method here
		return this.Item(tnIndex)
	endfunc
enddefine
HTH
"The five senses obstruct or deform the apprehension of reality."
Jorge L. Borges?

"Premature optimization is the root of all evil in programming."
Donald Knuth, repeating C. A. R. Hoare

"To die for a religion is easier than to live it absolutely"
Jorge L. Borges
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform