Gentlefolk,
Environment: Linux Mint 18.1,laz 1.6,FPC 3.0.0. RX from lazarus-ccr-svn-5845-components-rx-trunk.zip.
Does anyone have an example of creating fields by program?
I have the following code which crashes on the 'open' with an unknown field type.
vField := tField.Create(Self);
vField.DisplayLabel := 'fredo';
vField.FieldName := 'laced';
vField.SetFieldType(ftString);
RX1.Fields.Add(vField);
RX1.Open;
The 'open' code (procedure TField.SetFieldType(AValue: TFieldType)
in Fields.inc is 'empty',no code at all.
Any help appreciated,Ian.