![]() Moving the record pointer affects the Value property of the text box. Changes the user makes to this value are written back to the table. ![]() The value in the table field is displayed in the text box. The spinner reflects and writes numeric values to the underlying field or variable. Note that the control source for an option button (as distinct from an OptionGroup control) cannot be a character field, or Visual FoxPro will report a data type mismatch when the form is run. If the ControlSource of the option button s OptionGroup control (not the option button itself) is a character field, the caption of the option button is stored to the field if the option button is chosen. If the record pointer moves in the table, the value of the option button is updated to reflect the new value in the field. is written to the field, depending on whether the button is chosen. ![]() If the ControlSource is a numeric field, 0 or 1 is written to the field, depending on whether or not the button is chosen. If an item in the list matches the value of the field in the table, the item is selected in the list when the record pointer moves through the table. If the ControlSource is a field in a table, the value is stored in the field at the record pointer. If the ControlSource is a variable, the value the user chooses in the list is stored in the variable. To bind an entire grid to data, set the RecordSource property of the grid. If the ControlSource is a table field, the user is directly editing the field when editing values in the column. If the ControlSource is a field in a table, then NULL values, logical values true (.T.) or false (.F.), or numeric values 0, 1, or 2 in the ControlSource field cause the check box to be selected, cleared, or grayed as the record pointer moves through the table. The value is not written to disk or stored in memory beyond the lifetime of the control.Įffect of a ControlSource Property Setting on Controls Control ![]() If you don t set the ControlSource property of a control, the value that the user enters or chooses in the control is only stored as a property setting. You bind a control to data by setting its ControlSource property, or, in the case of grids, its RecordSource property. When users interact with bound controls, the values that they enter or choose are stored in the data source, which can be a table field, a cursor field, or a variable. You can have two types of controls on your forms: controls that are bound to data and controls that are not. Choosing the Right Control for the Taskįor additional information, see Controls and Objects in the Language Reference.By typing and clicking, and by moving through controls on the forms in your application, users can manipulate their data and accomplish the tasks they want to do. ![]() Controls are the primary medium of user interaction. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |