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

ADDPROPERTY METHOD NOT VALID IN COMPILED EXE 1

Status
Not open for further replies.

HENDRIKB

Programmer
Oct 1, 2005
10
DE
Hello Community,

In my application i make use of the "addproperty"-method. Everything worked well, but now that i compiled the application (win 32 executable), i get Error 1001 which reads "Feature is not available", but only if i start the exe outside the foxpro-developer-environment...
Strange, hu?

Is that a bug in the foxpro-runtime ?
Is there a work-around ?

thanks

Hendrik
 
mgagnon,

i've checked that.
I have no "SET STEP ON" in the code.

Any other suggestions?

thanks

Hendrik
 

Featurte not available is normally something you are using that works in Dev mode, does not work in runtime mode. It is hard to say, do you have an ON ERROR routine that would tell in more detail the error and the line number?


Mike Gagnon

If you want to get the best response to a question, please check out FAQ184-2483 first.
ReFox XI (www.mcrgsoftware.com)
 
I know it's this line:

this.opg.Buttons(m.lnx).AddProperty( "savecolor" , RGB(m.liRed,m.liGreen,m.liBlue), 1)

in which i save the backcolor of an optiongroup button, to restore it later.
When I press ignore, the programm continues and then later (in the refresh of these Buttons) i'm getting the Error that there is no property "savecolor".




 

Any chance the "1" is causing the problem? Have you tried without it? It seems to refer to the visibility, but not in the help, only in intellisense.


Mike Gagnon

If you want to get the best response to a question, please check out FAQ184-2483 first.
ReFox XI (www.mcrgsoftware.com)
 
Thanks mgagnon,
you've got it!

After omitting nVisibility it finally works.

thank you!!

Hendrik
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top