Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Clearing The Buffer
Message
De
19/11/1999 15:59:27
Jimmy Ditta
Twin City Electronics
Monroe, Louisiane, États-Unis
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00293090
Message ID:
00293296
Vues:
17
Didn't I see an article in the Thread's KB about setting up a combo to where the user can add choices to the combo? Does anyone know the number?


>No Problem,
>
>The .controlsource property is what you use to BIND a control to a field in a table.
>
>Say you have MyTable with a field called OddFood (and put it in the forms DE). You drop a textbox on a form and set it's controlsource to MyTable.OddFood. Now when the form inits the textbox will display the value of MyTable.OddFood, if you change what's in the textbox it will change the data in the table.
>
>You also need to know about the .refresh method. This tells vfp to refresh the value in the control to match what is in the table. If you progamatticaly change MyField.OddFood to 'Haggis' then you need MyTextbox.refresh to have the textbox show the updated value.
>
>hth
>
>>Roi,
>>
>>Sometimes the most painfully easy things go overlooked. That's exactly what I was looking for. Thanks. (However, I thought the controlsource was the property of the object that says where to SAVE something. I guess there's more to it than that) Nevertheless, it worked. My thanks to everyone.
>>
>>JD
>>
>>
>>>PMFJI, Just bind the text box to the field that contains the po number.
>>>
>>>Assuming the default value of the PO# field is GetNextKey('MyTable') or something, when you APPEND BLANK the new record will contain the po number.
>>>
>>>In your text box change the .controlsource property to point at the table.field that holds the po number.
>>>
>>>-or-
>>>
>>>Do it by hand with: thisform.MyTextbox.value = GetNextKey('MyTable')
>>>
>>>>I'm with you on that part. I guess what i'm asking is how to show the appended record's ID in a text box on the form. When this form is used, I will be on the phone with my customers and will need to give them this number. I'm fairly new to foxpro programming and don't know if i can accomplish this with a simple statement or if I need to create some kind of modified form to pull from.
>>>>
>>>>
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform