Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Command Buttons and enabling fields
Message
De
08/03/2002 10:32:08
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
08/03/2002 10:19:44
Dennis Hupe
Boot, Hoof'n Paw Prints
Bloomville, New York, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00630191
Message ID:
00630211
Vues:
24
>Would appreciate someone to point me where I could get information on creating command buttons. I am still a newbie at VFP and doing well copying routines from other projects but now trying to create my own form.
>
>I have created a simple form with fields from a table and want to edit existing records and add new records. I have noticed that a sample form I have seen will not allow any field to be modified unless the edit button or add button is pressed. I realize that individual fields have the enable function but how does one get all the fields enabled or disabled based on a command button?

-Drop few textbox controls on form and set their enabled to .f.
-Drop a commandbutton control from controls toolbar on form
-Dblclick to newly dropped button
-Now you're in click event code window
-Write your code. ie :
thisform.SetAll('Enabled',.t.,'Textbox')
thisform.text1.Setfocus()
-Run to test.

Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform