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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

changing bar prompt at runtime

Status
Not open for further replies.

MitchUK

Programmer
Jan 17, 2001
22
GB
I'm trying to assign a variable to this command

DEFINE BAR 1 OF form PROMPT "olabel(164)"

variable being olabel(164)

Tried
olabel(164)
=olabel(164)

But every time I try it turns it into text, can this be pointed to a variable and what is the syntax (foxpro help is, as usual no help)
Have knowledge, lack patience.
MitchBsc@yahoo.co.uk
 
also try eval(olabel(164)) or just (olabel(164)) David W. Grewe
Dave@internationalbid.com
ICQ VFP ActiveList #46145644
 
Ok here's the answer.

Whenever I tried to change the code in "MyMenu.mpr" it wouldn't handle the variable, if I tried using the menu designer, same result ALWAYS CHANGES IT TO TEXT.

SO, putting this in the Menu Designer works a treat

"+olabel(164)+"

This looks in the code as
" "+olabel(164)+"" and places the correct text in the menu at runtime.

Thx for your pointers, but a weekend without thinking about a problem usually sorts it out!!! Have knowledge, lack patience.
MitchBsc@yahoo.co.uk
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top