【发布时间】:2019-09-23 10:17:53
【问题描述】:
当尝试从delphi动态绑定TfrxBarCodeView时出现错误Could not convert variant if type (Array Variant) into type (OleStr)。
var
barcode: TfrxComponent;
value : String;
begin
barcode := frxBarcode.FindObject('BarCode1');
value := '184577787878';
if barcode is TfrxBarCodeView then
TfrxBarCodeView(barcode).BarCode.Text := value;
在 frxBarcode 我有:
【问题讨论】:
-
尝试将
value声明为字符串变量 -
@Fabrizio 我的错,值是字符串变量。
标签: delphi delphi-xe fastreport