I get operator/operand mismatch on the following code -
I declared PhoneBmp and NoPhoneBmp.
PUBLIC PhoneBMP NoPhoneBMP pictures heights widths
PhoneBMP = "c:\mydir\phone.bmp"
NoPhoneBMP = "c:\mydir\nophone.bmp"
I tired parens around the variables instead of an ampersand as in (pictures),(heights),(widths), but did not help.
I wonder what's wrong? This all worked when I had 14 separate groups of commands, but when I condensed the code down to this it longer works. I will keep working on it.
IF !EMPTY(hospital.phonecall) OR ;
!EMPTY(hospital.typecall) OR ;
ALLT(hospital.newstatus)<>"OPEN" OR ;
hospital.phonepic = "Y"
THIS.lblCallNow.Visible = .T.
FOR i = 1 to 14
pictures="THIS.ImgPhone"+(i)+".Picture"
heights="THIS.ImgPhone"+(i)+".Height=14"
widths="THIS.ImgPhone"+(i)+".Width=16"
IF recno()=i
&pictures = (PhoneBMP)
&heights=14
&widths=16
ELSE
&pictures = (NoPhoneBMP)
&heights=14
&widths=16
ENDIF
ENDFOR
ENDIF
Steve Kramer
Kramer & Kramer Design
"Home of Go Cartoons"
Web Site:
www.stephenkramer.comWould you believe Far Side Lite?
More than 270 original cartoons.