Information générale
Catégorie:
Codage, syntaxe et commandes
Mark,
I found the problem and thought I'd post it just to finish the thread in case anybody else shoud read the first two parts.
I had all of the facts but I just didn't put the facts togeather. Like I said, VFP was running an SPR which had a READ and, therefor, according to MS the _CUROBJ= code should have worked. What I failed to see, although it was right in front of me, was that the WHEN clause was calling an external prg which had the _CUROBJ= code in it which was, therefor, outside of the READ. I took the _CUROBJ= out of the external prg and inserted it directly into the WHEN clause and, voila, everything worked fine.
Ed
>Ed,
>
>I don't know why M$ left CUROBJ in since it no longer works. You will need to find every occurence of CUROBJ and replace it with the correct call to SetFocus().
>
>For example, if the object you are changing the focus to has the name of txtLastFocus and it is in the same container as the object you are currently on, the issuing This.Parent.txtLastFocus.SetFocus() will set the focus to the object you want. It gets a bit more complicated if the objects are in different containers, but you see the idea.
Précédent
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