Information générale
Catégorie:
Codage, syntaxe et commandes
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
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement