Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

datawindow: Picture problems!

Status
Not open for further replies.

Edders

MIS
Sep 20, 2004
9
GB
Hey all,

I have a problem.....

I have an External DW which i manually insert data to: e.g. dw_1.setitem(.....) etc

On ecah row i also have a picture. It can either be a tick or a cross ( whether that specific part was successful or not) i also have a script when picking out what to add to the DW it chooses what picture to display!

but when it runs i try to change the dw pictures fielname but it changes all of them:
dw_1.object.p_1.filename = "..."

i have also tried having 3 pictures and setting them to be invisible or visible but with exactly trhe same out come: it displays the lastone for all of them.

Is there a way to reference each rows picture so i can change each picture and not them all!

Cheers

Ed
 
Here is a computed expression script I use to display an arrow like image to show the user the currently selected row.

Bitmap(If(CurrentRow() = GetRow(),"next.bmp",""))

You could use a similar one to display either your "+" or "-" bitmaps based on the value in another column on the dw. Something like:

Bitmap(If(columnsuccessful[0] = 'Y',"cross.bmp","tick.bmp"))

A computed expression column diretly on the datawindow is by far the easiest way to do what you are trying to do.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top