about "Invalid variant type conversion"
when i tring to execute codes in fastreport 3, i get the error 'invalid variant type conversion'.
var
s1:string;
ss:string;
begin
s1:='asdfghj';
ss:=copy(s1,2,3);
end;
why? help me!!
var
s1:string;
ss:string;
begin
s1:='asdfghj';
ss:=copy(s1,2,3);
end;
why? help me!!
Comments
where are you writing this code?
top of code page
var
s1:string;
ss:string;
//makes variables global to report objects.
//if code below is written in the empty begin end block at bottom of code page
// variables will be initialized at start of report
begin
s1:='asdfghj';
ss:=copy(s1,2,3);
end.
//btw it works ok no error.