Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

i have problem how pass i to field(image) to an image?

Posted on 1998-12-31
5
Medium Priority
?
165 Views
Last Modified: 2010-04-04
i have problem how pass i to field(image) to an image?
i have these code:
table1.fieldbyname('foto').assign(image1.picture.graphic)
i need invert the process
something image1.picture.graphic:=table1.fieldbyname('foto').value
somebody can help me?
how is the form correct?
0
Comment
Question by:jamiguel
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
5 Comments
 

Author Comment

by:jamiguel
ID: 1354009
Edited text of question
0
 
LVL 5

Expert Comment

by:heathprovost
ID: 1354010
This should do it

Image1.Picture.Assign(Table1.FieldByName('foto').Value);
0
 
LVL 5

Expert Comment

by:heathprovost
ID: 1354011
Correction

Image1.Picture.Graphic.Assign(Table1.FieldByName('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(Image1.Picture);
and vise versus
0
 

Author Comment

by:jamiguel
ID: 1354012
i write these code:

image1.picture.assign(table1.fieldbyname('Foto').value);
and
image1.picture.graphic.assign(table1.fieldbyname('Foto').value);

but in both cases mark these error:  (at time of run or compile)
"incompatible types 'Tpersistent' and 'Variant' "

0
 
LVL 5

Accepted Solution

by:
heathprovost earned 0 total points
ID: 1354013
Sorry about that, I wasnt thinking the correct answer is

Image1.Picture.Assign(TBlobField(Table1.FieldByName('Foto')));

This WILL work, I tested.
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
Video by: ITPro.TV
In this episode Don builds upon the troubleshooting techniques by demonstrating how to properly monitor a vSphere deployment to detect problems before they occur. He begins the show using tools found within the vSphere suite as ends the show demonst…
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…
Suggested Courses

636 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question