Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Data Bases > Xbase Fox > Re: VFP 9 SP 1:...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 12 of 14 Topic 763 of 857
Post > Topic >>

Re: VFP 9 SP 1: Odd Run-time Error

by Cy Welch <cywelch@[EMAIL PROTECTED] > May 3, 2007 at 06:05 PM

Looking at the help it does say that the third parameter can be set to 1 
at runtime, however it also says that any properties created at runtime 
are public.  I quote "The AddProperty( ) method makes it possible for 
you to add a property to an object at run time. The new property is 
added as a PUBLIC property." from the VFP9 help file.  I apologize for 
mistaking that you were trying to add a method to the object.  I'm not 
sure what I was thinking.

Cy Welch
Senior Programmer
MetSYS Inc
http://www.metsysinc.com


Gene Wirchenko wrote:
> Jack Jackson <jacknospam@[EMAIL PROTECTED]
> wrote:
> 
>> On Thu, 03 May 2007 10:12:43 -0700, Gene Wirchenko <genew@[EMAIL PROTECTED]
>
>> wrote:
>>
>>>     The following line runs fine under a development system.  Under
>>> the run-time, it throws error 1001 (Feature is not available.):
>>>     browses.addproperty("filter1",chrtran(this.wfctlist," ",""),1)
>>>
>>>     browses is an object of type basiccustom which is a subclass of
>>> custom.  basiccustom simply adds a method called .dorelease() which is
>>> equivalent to most cl***** .release().
>>>
>>>     this.wfctlist is an input field four characters long.
>>>
>>>     browses.filter1 does not already exist (though this should not
>>> matter).
>>>
>>>     The docs for .addproperty do not have anything about limitations
>>> under the run-time (except for the fourth optional parameter which I
>>> am not using).
>>>
>>>     What am I missing here?
>> The do***entation lies, or it's a bug.
>>
>> When the third parameter is present you get that error when not in the
>> development environment.
> 
>      It is the fourth parameter that the do***entation says is not for
> the run-time.  Why you can not set the exposure of the property during
> run-time is weird.  I suspect an off-by-one error in VFP.
> 
> Sincerely,
> 
> Gene Wirchenko
> 
> Computerese Irregular Verb Conjugation:
>      I have preferences.
>      You have biases.
>      He/She has prejudices.
 




 14 Posts in Topic:
VFP 9 SP 1: Odd Run-time Error
Gene Wirchenko <genew@  2007-05-03 10:12:43 
Re: VFP 9 SP 1: Odd Run-time Error
"Paul Pedersen"  2007-05-03 10:37:52 
Re: VFP 9 SP 1: Odd Run-time Error
"Dan Freeman" &  2007-05-03 11:43:26 
Re: VFP 9 SP 1: Odd Run-time Error
Gene Wirchenko <genew@  2007-05-03 12:31:20 
Re: VFP 9 SP 1: Odd Run-time Error
Rush Strong <rpstrong@  2007-05-03 20:12:23 
Re: VFP 9 SP 1: Odd Run-time Error
Gene Wirchenko <genew@  2007-05-03 12:21:33 
Re: VFP 9 SP 1: Odd Run-time Error
"Christof Wollenhaup  2007-05-03 22:22:24 
Re: VFP 9 SP 1: Odd Run-time Error: SOLVED
Gene Wirchenko <genew@  2007-05-03 15:47:18 
Re: VFP 9 SP 1: Odd Run-time Error
"Paul Pedersen"  2007-05-03 12:44:13 
Re: VFP 9 SP 1: Odd Run-time Error
Jack Jackson <jacknosp  2007-05-03 15:51:33 
Re: VFP 9 SP 1: Odd Run-time Error
Gene Wirchenko <genew@  2007-05-03 17:24:07 
Re: VFP 9 SP 1: Odd Run-time Error
Cy Welch <cywelch@[EMA  2007-05-03 18:05:19 
Re: VFP 9 SP 1: Odd Run-time Error
Gene Wirchenko <genew@  2007-05-03 22:02:35 
Re: VFP 9 SP 1: Odd Run-time Error
Cy Welch <cywelch@[EMA  2007-05-03 17:55:32 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Wed Aug 20 8:00:57 CDT 2008.