Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Append blank automatically??
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00023087
Message ID:
00023220
Vues:
23
>>I don't know why my 'Add' form alway give me a extra blank record.
>>I place the append blank command at the init event of the form( I intend to append it manually). I insert a suspend command at the beginning of the init event,so I can trace it by the tracer. I discover that before my append command is executed, a blank record is appended. I don't know why it is done. So it always give me a extra blank record. But I don't want that happens, how can I do?
>>In my form, there are controls include listbox, combobox, textbox, editbox, checkbox, label, optiongroup, page.
>>
>>Thanks
>P.S. This happen when the table is empty( after zap the table).
>But ok when not empty??

If you have programmatically assigned a value to any control on the form that is bound to your table, Fox will add a record. This includes calculated values, (I updated a calculated value in my form.refresh() method when I saw this).

My answer was to check for recc() = 0 before any control update. Put it into my class code.

HTH
Barbara
Barbara Paltiel, Paltiel Inc.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform