Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
_Access and _Assign and Control Arrays
Message
De
21/09/1999 07:56:35
 
 
À
20/09/1999 16:45:20
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00266899
Message ID:
00267015
Vues:
18
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.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform