Hi.
I'm trying to save data from FNCGrid in Web Core. I can write it to a TStringStream, access its size, position, etc., but everytime I access DataString property, I get:
classes.pas:1902
Uncaught RangeError: byte length of Uint16Array should be a multiple of 2
at new Uint16Array (<anonymous>)
at Object.GetDataString (classes.pas:1902:26)
at Object.WebButton1Click
var
st : TStringStream;
begin
st := TStringStream.Create;
grd.SaveToCSVStream(st);
showmessage(st.Size.ToString);
Ok
showmessage(st.Position.ToString);
Ok
showmessage(st.DataString.Length.ToString);
Error
I would use this DataString with a TWebLocalTextFile to save grid content locally, but I can't access DataString.