Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Simple String Collection
Message
From
14/12/2007 18:49:02
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:
01276058
Views:
22
Error: Class definition COLLECTION is not found.

>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.
Very fitting: http://xkcd.com/386/
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform