Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Phantom adds blank records (VFP3)
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00061098
Message ID:
00061308
Vues:
37
>>I have a series of forms based on a class. The init method does some stuff based on form properties set at design time, there is no additional code.
>>
>>My forms are called in a fairly old fashioned way with the following:
>>
>>DO WHILE m.gctask != 'QUIT'
>> &gctask
>>ENDDO
>>
>>m.gctask will be something like "do form property"
>>
>>In most instances this works fine but in one, and I can't see anything different, a record is added to a table. I've debugged the life out of the forms and the record appears to be added after &gctask and before the init code is run. I haven't saved anything in the dataenvironment (haven't quite got to grips with that yet). Nowhere is there an explicit request to add the record. I've even added valid code to a field to generate an error when the record is added but that has provide no clues as to what is adding the record.
>>
>>I am sure my problem is one that more experienced fox programmers will recognise and would really appreciate your help.
>>
>>Thanks - Sarah King
>>propertysoft@xtra.co.nz
>
>what is gcTask equal to when this happens? Also look all the form methods. Double click on the form to open a code snippet, then click on the methods combobox and look for any method that is in bold. Check the code in those methods.
>
>also look at the code in your data environment methods.
Thanks Mark, I tried this earlier. I think maybe it was linked to a list box, they are the only things I've worked
with and and the problem spontaneously disappeared. I suspect it was VFP was trying to make up for a bug
which my "on error" routine didn't catch.

Sarah
Sarah King
pcpropertymanager.com
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform