Hi everybody!
I need a little help!
I've a BigText variable that contains the value of a BLOB field.
I need to bring the first 1024 characters and put them into the first element of an array.
I tried with the COPYSTR Function but I knew that it won't work because BigText doesn't support classic text function.
RecordVar.BlobField.createinstream(VarInstream);
BigTextVar.read(VarInstream);
VarArray[1] := CopySTR(BigTextVar,0,1024);
So I'm wondering if there's another way...
Answers
GETSUBTEXT
Use this function to retrieve part of a BigText variable.
[RetLength] := BigText.GETSUBTEXT(Variable, Position [,Length])
Soren
http://gotcal.com
I'd already tried with this function but i didn't understand how to avoid the error that it shows: "You can't open an empty BLOB"
It works as expected... More or Less...
and i put TXTarray[1] as SourceExpr a textbox in the report. with this method it prints only ' * '
It works as expected... More or Less...
Thanks all!
It works as expected... More or Less...
Would you like to consider posting how you solved it?
in this way i put all the blob in an array. in each element there's 1024 characters of the blob. the array has got 10 elements so user can write 10240 characters. if you need for more characters you can set dimensions of the array to a larger number.
I hope that this topic could be usefull.
regards!
It works as expected... More or Less...
you have made my day.
ánima Consulting
http://animaconsulting.co.uk