Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
When Setall('enabled',.t.) doesn't
Message
De
25/03/2003 16:19:43
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Problèmes
Titre:
When Setall('enabled',.t.) doesn't
Divers
Thread ID:
00769937
Message ID:
00769937
Vues:
53
Here's the scenario. I have a form which is called with do form. It contains buttons for edit, add, etc. The form loads with a record displayed. All fields are disabled since this is a view only mode. I click on Edit. The code says (1) display the proper buttons on the tool bar (i.e., turn off the edit and turn on the save/undo buttons) and (2) thisform.setall('enabled',.t.). After this line executes, the fields are still showing as disabled. Using debug, I can watch one of the fields and it switches its enabled value from .f. to .t. when the line executes but the display still shows as disabled and you cannot edit the field. lockscreen is not invoked. I'm totally confused... but it gets better!

I click "undo" and the screen returns to its original state -- which at this point is basically turning the buttons around. Then I click edit again. The code says (1) display the proper buttons... and (2) thisform.setall("enabled",.t.) and THIS TIME, the fields are displayed as enabled and can be edited as needed. The buttons work correctly everytime EXCEPT the first.

So what crazy thing have I done or overlooked here? This is only happening on one of the screens in this system and it began happening only today. Can't find anything in the code I've changed or anything that happens differently between the first time through and the second, etc. times. Any idea what is happening here?! any help greatly appreciated!!!

Thanks,
Vicki
Vicki Combs
Customized software for today AND tomorrow...
Applications and web sites designed, developed and maintained. (MBE)

"Change is inevitable...unless that's changed!
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform