Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Pointer to location in table gets changed mysteriously
Message
From
28/08/2003 14:24:52
 
 
To
28/08/2003 13:12:33
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00824270
Message ID:
00824303
Views:
16
>I'm having a heck of a time with the pointer in a table changing on me mysteriously.
>I collect the ID number I want to go to in one form and store it in gcPolid. Then I use the line:
> DO FORM editpolnew WITH gcpolid
>procedure init declares the parameter gcpolid, and procedure gotfocus has the following code:
>SELECT t_policies
>LOCATE FOR t_policies.polid = gcpolid
>IF NOT FOUND()
> thisform.lblStatus.caption = "Policy ID "+ gcPolid +" Not Found"
> thisform.refresh()
>ELSE
> thisform.lblStatus.caption = ""
> thisform.refresh()
>ENDIF
>SELECT t_name
>LOCATE FOR t_name.polid = gcpolid
>SELECT t_auth
>LOCATE FOR t_auth.polid = gcpolid
>SELECT t_rank
>LOCATE FOR t_rank.polid = gcpolid
>SELECT t_review
>LOCATE FOR t_review.polid = gcpolid
>
>This form has three pages on it, and the different pages have various grids that access the child tables (they are set up in the data environment, with the keys linked up)
>When I use the debugger, I can see that at points t_policies.polid equals gcpolid, which is where I just told it to point, but then further down it changes to the top of the list. What's going on?

Anne,

Do you have a this.Refresh() in the Activate of each Page ? If not, try with that
Gregory
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform