You are not logged in.
Pages: 1
I'm using TSQLTableJSON and convert it to Tclientdataset .
the field size in Tclientdataset is automatically defined by the json column content length ,
The current value length shouldn't be the maxsize of the dataset column.
I'm using SetFieldType to define the column type for the created dataset , how can I control the size also ?
Offline
suppose the longest first_name in the json database was 'ab' ,
after I converted it to Tdataset the column size would be 2 and I wouldn't be able to insert value longer than two characters .
Offline
TSQLTable.SetFieldType() method allows now to specify a column size.
See http://synopse.info/fossil/info/a6f2c6965e
Hope it fits your needs.
Offline
Thanks, you are great .
you forgot to change
ContentSize := -1;
TO
ContentSize := FieldSize;
inside SetFieldType
Offline
Oups...
I did it again!
Offline
Pages: 1