How To Use Live Binding To Bind Blob Field To TImage Control - Stack Overflow
How To Use Live Binding To Bind Blob Field To TImage Control - Stack Overflow
I am using Delphi XE2 to write a VCL win32 application. Delphi XE2 support live binding. I load sample
Biolife.xml into a TClientDataSet instance.
I able to bind a TEdit control to dataset's string field: Species Name:
edited
May 14 '12 at 8:05
By using our site, you acknowledge that you have read and understand our Cookie Policy, Privacy Policy, and our
Terms of Service.
1 Answer order by votes
Take a look into the BindLinkVCLProject demo project. There is shown also a binding for the
7 image, so my guess is you need to do it this way (the Self in SourceExpression represents a blob
field):
Category Links
SourceMemberName = 'Graphic'
ControlComponent = Image1
SourceComponent = BindScopeDB1
ParseExpressions = <
item
ControlExpression = 'Picture'
SourceExpression = 'Self'
end>
FormatExpressions = <
item
ControlExpression = 'Picture'
SourceExpression = 'Self'
end>
ClearExpressions = <
item
ControlExpression = 'Picture'
SourceExpression = 'nil'
end>
end
TLama answered
69k ● 15 ● 178 ● 331 May 14 '12 at 8:18
edited
May 14 '12 at 8:23
Your Answer
Body
By using our site, you acknowledge that you have read and understand our Cookie Policy, Privacy Policy, and our
Terms of Service.
Add picture
Log in
OR
Name
By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy
meta chat tour help blog privacy policy legal contact us full site
2020 Stack Exchange, Inc. user contributions under cc by-sa 4.0
By using our site, you acknowledge that you have read and understand our Cookie Policy, Privacy Policy, and our
Terms of Service.