Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Problem with display screen
Message
De
08/11/2017 14:46:47
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Visual FoxPro et .NET
Divers
Thread ID:
01655429
Message ID:
01655445
Vues:
60
>>>Hi
>>>
>>>I am testing a program and have entered data onto a screen
>>>
>>>The result of entering the data wull be to cause a browse on one of the files - when I end the browse all the data on the screen has gone
>>>
>>>How can I stop this happening
>>
>>Sounds like you've moved the record pointer or closed the table that the form is based on.
>>
>>Tamar
>
>I haven't closed the table
>
>What exactly do you mean by I have moved the record pointer?

If no data is there, it sounds like the record pointer for that table is at end-of-file (EOF()). Lots of commands will do that. Try preserving the record pointer position before you call your browse and restoring it afterward:

Here's a simplified version. You actually need to check that the stored value is something you can GO to.
nRecno = RECNO()

* Do your browse, though no VFP application should be using BROWSE.

GO m.nRecno
Tamar
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform