Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Form refrest
Message
De
08/07/1997 23:33:34
Nick Berryman
Computer Automation Technologies
Kennesaw, Georgie, États-Unis
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Divers
Thread ID:
00038782
Message ID:
00039041
Vues:
46
>>>>>>Yes, I have thisform.refresh() in the add method. As i indicated above the add button works fine except when I have just
>>>>>>opened the form and have not yet used prev or next button. I tried copying the code from the prev button into the top of
>>>>>>the add button to no avail.
>>>>>
>>>>>When is the adding code executed? Is it in the Load(), Init(), etc?
>>>>
>>>>this code is executed at the end of the click property of the add button.
>>>
>>>Yes, I now remember you mentioned that you were doing that from the add button. :)
>>>
>>>Are you using any buffering for that alias? When you do the append blank, are you on the current alias?
>>
>>with the form wizard, you shouldn't have to add any code. try removing the code and see if it works correctly then.
>
>This is a bit elementary, but are you SURE you have SELECTed the correct table after you've finished loading your form? Try adding a SELECT MyTable at the beginning of the ADD code (or maybe at the end of the Form.Refresh() code). If there is a lookup table/cursor in the program, your ADD button could be calling the wrong table. This caused a problem in a grid once, and it took forever to find the problem. As with your code, it was only when the form was loaded, but everything was fine as soon as I clicked on TOP, NEXT, etc.
>
>HTH
>Barbara

You are exactly right about that. Although I figured it out before i got your message. I still don't understand why that is the case. I only have the one table open.

Have a great Day!
Nick Berryman
Nick Berryman
Computer Automation Technologies
Kennesaw, Georgia
678-445-9278
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform