Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Macro substitution and Picture file
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Macro substitution and Picture file
Divers
Thread ID:
00637840
Message ID:
00637840
Vues:
46
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.
 		*Red phone
		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
				* Phone
				&pictures = (PhoneBMP)
				&heights=14
				&widths=16
			ELSE
				*No phone
				&pictures = (NoPhoneBMP)
				&heights=14
				&widths=16
			ENDIF
		ENDFOR
 	ENDIF
Steve Kramer
Kramer & Kramer Design
"Home of Go Cartoons"
Web Site: www.stephenkramer.com
Would you believe Far Side Lite?
More than 270 original cartoons.
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform