> 0,1,0)) where attach_count value it's fetching from the database.
When the window opens and when the attach_count > 0 then the
attachment icon is visble when it's put by side of the button, when
it's put on the button the icon is not visible. I have tried for the
property 'Bring to Front' but it did n't help. Then I have coded in
the window like:
IF dw_comment.getitemnumber(1,'attach_count') = 0 THEN
dw_comment.object.p_attachment.visible = 0
ELSE
dw_comment.object.p_attachment.visible = 1
END IF
where p_attachment is the icon name.
But it did not help as still the icon remains invisible even if the
attach count value is 1.
Please reply for the above.
Thanks,
Pallav
Are you changing the icon to display a change in the buttonclicked! event
functionality. If so better to change the picture on the button dynamically
through If( attach_count = 0, "[default picture]", "[icon filename]"
HTH
S B Gogia
"Pallav" <palla...@gmail.com> wrote in message
news:35bf8217-b670-4a42...@n7g2000yqb.googlegroups.com...