Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
CmdToolActionButtonSave on Form
Message
De
13/08/2005 21:49:04
 
 
À
13/08/2005 18:45:06
Information générale
Forum:
Visual FoxPro
Catégorie:
CodeMine
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Divers
Thread ID:
01040729
Message ID:
01040749
Vues:
11
Yes lRefreshInForm is true. I just noticed something else. Even the Save button on the toolbar is not enabled when I change a value in the Grid????? Does the buffermodeoverride make a difference? I use 5 for table optimistic. Is there something on the form I should be setting? I just let Codemine create me another form and added a table to the data environment and added a grid and set the record source and column's controlsource and added the same button and it does the same thing. Also, the toolbar save button does not work either. I make sure the initialselectalias is set to the table. I'm lost at what could be going on. The navigation buttons work on the toolbar. I put those commands in the refresh of the button and it goes thru a bazillion lines of code and I was unable to find out where the enable of the button was being set false or not being set true. Sorry.



>Hi Terry,
>
>This is a longshot but first, check that the lRefreshInForm property on the button is set True - this is the default so it should be.
>
>If you have set the cWorkArea property of the button to the correct workarea, then it should be OK. As it is obviously not, then I would suggest that in the Refresh event code on the button, you should do as follows :-
>
>
>SET STEP ON
>RETURN DODEFAULT()
>
>
>Then, run the form and step through the refresh code logic and see why the button's lEnabled property is being set False.
>
>HTH
>
>-=Gary
>
>
>
>
>>I created a form with a table in the data environment and I have a grid where I allow data entry. All of that works fine with the toolbar. I decided I needed to put a button on the form that would allow me to click and save the data when I choose to instead of moving to the toolbar. I dropped a cmdtoolactionbuttonsave on the form. It is never enabled even when I change data or put new data in. What am I missing? TIA. I did try setting cworkarea to the table to no avail.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform