Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
_Access and _Assign and Control Arrays
Message
From
21/09/1999 07:56:35
 
 
To
20/09/1999 16:45:20
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00266899
Message ID:
00267015
Views:
20
First of all, control arrays are not supported in VFP. If I understand correctly, you want to return the Nth word in the text depending on the parameter.

Ex.: Text = "A long string goes here"
Words[3].Value would return "string"

You could do that not by using an Access() method, because you can't pass a parameter to an Access() method, but by creating a method that will return the Nth word from the string.

HTH
>I want to have a Control Array with an _Access and _Assign. I am working on a edit box that I want a WordCount and a Words Control. I have a WordCount_Access that will return the number of Words. But I can't get the Words[xx].Value to work because I would have to be done with an _Access Method. Since I won't know how many Words there will be I can't to Words[xx].Value_Access. I need something like the Words.Value_Access that will take an Index Parameter. Does any one have any suggestions on how to get this to work.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform