Board index » delphi » HELP!!: Creating TField component at run-time.
mob...@america.net (Marc P. Oburg)
![]() Delphi Developer |
Thu, 20 Aug 1998 03:00:00 GMT
HELP!!: Creating TField component at run-time.
Help! I am trying to write a .DLL that includes some database
functions. I have 2 functions (units) now that run when associated with a form and i can use the fields editor to create the TField components. But I dont want to show a form, I want this to be just a function. I have been successful in creating the TTable component at run time TC_FieldName := TStringField.Create(nil); This compiles, but then does not access the field in the table TC. TC_FieldName.DataSet := TC; This still compiled, but I still couldnt access the field in TC. TC_FieldName := TStringField.Create(TC); Still compiled, but caused a GPF. Im not even sure that this component needs to be "created" in this Please tell me what Im doing wrong!!! Thanks in advance. |