Delphi ado query sort lookup5/4/2023 ![]() Value is a variant type property, so using the type-specific access properties is a little more efficient. StrName := Cds.FieldByName( 'LastName').AsString Each field can be used to read or modify the current record's data by using its Value property or type-specific properties such as AsDate, AsString, AsInteger, and so on: You can access these values by number (accessing the array directly) or by name (using the FieldByName method). These field components are stored in the dataset's Fields array property. This is done after reading the metadata associated with the table or the query the dataset refers to. Data-aware controls are directly connected to these field objects, which correspond to database fields.īy default, Delphi automatically creates the TField components at run time, each time the program opens a dataset component. ![]() This explains why field components (technically, instances of a class derived from the TField class) play a fundamental role in every Delphi database application. ![]() The record is stored in a buffer, and you can operate on it with some generic methods, but to access the data of the record you need to use the dataset's field objects. I mentioned earlier that a dataset has only one record that is current, or active. ![]()
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |