Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Simple String Collection
Message
 
To
14/12/2007 17:42:51
Mike Cole
Yellow Lab Technologies
Stanley, Iowa, United States
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 7 SP1
Miscellaneous
Thread ID:
01276037
Message ID:
01276054
Views:
26
Not sure, but maybe this?
loStringCollection = CreateObject('Collection')
with loStringCollection as Collection
   .Add('String1')
   .Add('String2')
*  ...
   .Add('StringN')
endwith

for each lcString in loStringCollection
   * Do something with the string
endfor
>I have had my head out of VFP for a while, so I am sorry for the simple question.
>
>What is the easiest and quickest way to make a simple collection of strings? Something similar to a .NET StringCollection is what I am looking for. It must be variable length also.
"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