jamiguel
asked on
i have problem how pass i to field(image) to an image?
i have problem how pass i to field(image) to an image?
i have these code:
table1.fieldbyname('foto') .assign(im age1.pictu re.graphic )
i need invert the process
something image1.picture.graphic:=ta ble1.field byname('fo to').value
somebody can help me?
how is the form correct?
i have these code:
table1.fieldbyname('foto')
i need invert the process
something image1.picture.graphic:=ta
somebody can help me?
how is the form correct?
This should do it
Image1.Picture.Assign(Tabl e1.FieldBy Name('foto ').Value);
Image1.Picture.Assign(Tabl
Correction
Image1.Picture.Graphic.Ass ign(Table1 .FieldByNa me('foto') .Value);
but you really dont need to use the graphic property, you can just use the picture property. for example
Table1.FieldByName('foto') .Assign(Im age1.Pictu re);
and vise versus
Image1.Picture.Graphic.Ass
but you really dont need to use the graphic property, you can just use the picture property. for example
Table1.FieldByName('foto')
and vise versus
ASKER
i write these code:
image1.picture.assign(tabl e1.fieldby name('Foto ').value);
and
image1.picture.graphic.ass ign(table1 .fieldbyna me('Foto') .value);
but in both cases mark these error: (at time of run or compile)
"incompatible types 'Tpersistent' and 'Variant' "
image1.picture.assign(tabl
and
image1.picture.graphic.ass
but in both cases mark these error: (at time of run or compile)
"incompatible types 'Tpersistent' and 'Variant' "
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER