Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Listbox - does not show added records when initially empty
Message
De
01/04/2003 14:23:52
Patrick O'Neil
American Specialty Information Services
Roanoke, Indiana, États-Unis
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Listbox - does not show added records when initially empty
Divers
Thread ID:
00772609
Message ID:
00772609
Vues:
52
hello all -

i'm using VFP 6.0 SP5 and WIN2000.

I have a modal form frm_ATC_Express with a listbox. The listbox
rowsource type is 6-Field and I specified the four desired fieldnames.
Using the form, I add, edit, delete records from the rowsource table.
The form also has a container.

To add a record to the rowsource table, i
1) get a return value from another modal form
2) display the container to get some info  (visible = .t.)
3) hide the container (visible = .f.)
4) APPEND BLANK to rowsource table
5) REPLACE values in the appended blank record
Then i REQUERY the listbox and THISFORM.REFRESH

IF, when i come into the form, the rowsource table has at least
one record, the existing record is displayed in the listbox and
added records are correctly displayed in the listbox

PROBLEM:
IF the rowsource table is empty when i come into the form,
(and of course, no records are displayed in the listbox)
any (one or more) added records are not displayed in the listbox
when i REQUERY and thisform.REFRESH. (but they are
in fact added to the table as i can see by opening and browsing).

It seems to relate to the fact that container is on that form,
because if i delete the container object (and hardcode the info
that would be collected using fields in the container) the
listbox displays added records as it should.

Initially, i had the container cover the listbox when i made the
container visible. I thought that might be related, so i made the form
bigger and put the container lower so it did not overlap anything
at all. But that did not make any difference.

Would appreciate any experience you can share on this problem.

thanks,
patrick
patrick
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform