Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
_CUROBJ in VFP 5.0
Message
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
_CUROBJ in VFP 5.0
Miscellaneous
Thread ID:
00098292
Message ID:
00098292
Views:
75
I'm just starting the translation of a FPW 2.6 app to VFP 5.0. I'm using the method recommended by Micro Endeavors in the Jan. 98 FoxPro Advisor in which the first step is to get all of the code to run under VFP and then start the migration one screen at a time.

In one of my 2.6 screens I have a snippet in the WHEN clause that changes the object focus at the end of the snippet with _CUROBJ so that the WHEN clause won't run over and over again.

In VFP 5.0 the _CUROBJ function does not seem to behave properly. No matter which object is refered to by _CUROBJ the new current object will become the last object befor the object with the WHEN claused was selected. In other words if the object with the WHEN snipped is OBJNUM(5) and I came there from OBJNUM(3) the focus will return to OBJNUM(3) even though I issue _CUROBJ = 1 at the end of the WHEN snippet. The problem is that if I select the object with the WHEN snippet first thing after the window is opened then the new object will continue to be the same object no matter what the _CUROBJ is set to and so the WHEN snippet will run over and over again.

In leting VFP do an automatic conversion I see that they left this code in tact as if they expected it to work.

Any thoughts or 2.6 work arounds for this one.
Ed
Next
Reply
Map
View

Click here to load this message in the networking platform