Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Pointer to location in table gets changed mysteriously
Message
De
28/08/2003 15:07:29
 
 
À
28/08/2003 14:24:52
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00824270
Message ID:
00824324
Vues:
15
I actually found one bug - I did not have the relationship property set up correctly for each grid. Now, when I run the debugger, I can see everything looks good after the locate (or seek) - the variables contain the values they should. On the thisform.refresh, all those correct values are displayed on the screen, but at the same time then the values revert back to 1101I, which is the value at the top of the table. However, if I click one more step, the code window displays the DO FORM line and the form itself has displayed 2201I for the parent and 1101I for the child. Is the display procedure the correct place for this code? When I say thisform.refresh doesn't it refresh everything on the form? Would it be better if I got rid of the pages and just put all the grids on the form itself (i.e. are pages complicated and/or buggy?)

>>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 linked
>>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
>>
>>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform