Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: dcNiko Vujke
  Where is dcNiko Vujke?
 Belgrade
 Serbia
 dcNiko Vujke
 To: Mustapha Bihmouten
  Where is Mustapha Bihmouten?
 Casablanca
 Morocco
 Mustapha Bihmouten
 Tags
Subject: RE: Error message 1001
Thread ID: 288726 Message ID: 288815 # Views: 38 # Ratings: 0
Version: Visual FoxPro 9 SP2 Category: Errors & Debugging
Date: Friday, December 24, 2010 11:31:45 AM         
   


> > Hi fox(f)i(gh)ters,
> >
> > I have one problem. When I run my fox exe file I get error message 1001 "Feature is not available. Foxcode table is not found, is not correct version or is incompatible." This happens in line of code :
> >
> >
_screen.AddProperty('pConn',lnConnNum,1)
> > 

> > Anyone has idea why is this happening.
> >
> > Regards,
> > Nikola.
>
> Hello dcNiko (Nikola)
>
> first you must remember that there is 2 "AddProperty" term :
>
> 1. AddProperty() method :
Object.AddProperty(cPropertyName [, eNewValue])
- you see attached to an object
>
> 2. AddProperty() function :
AddProperty( oObjectName, cPropertyName, [, eNewValue ])
- to use in code
>
> in your case you can use :
>
> 1. using _Screen object :
_Screen.AddProperty( "pConn", 1)

> 2. in the code :
AddProperty( _Screen, "pConn", 1)

>
> Notes : the two syntax create Public property and return .T. if the property is created without error
>
> Regards
> Mustapha Bihmouten

Hi Mustapha,

I used AddProperty method:

Object.AddProperty(cPropertyName [, eNewValue [, nVisibility [, cDescription]]])

in code :

_screen.AddProperty('pConn',lnConnNum,1)

where cPropertyName='pConn' and eNewValue=lnConnNum=(some number) and nVisibility=1 (Public visibility)

Regards,
Nikola.

ENTIRE THREAD

Error message 1001 Posted by dcNiko Vujke @ 12/23/2010 1:28:33 PM
RE: Error message 1001 Posted by Ugur YILMAZ @ 12/23/2010 3:16:08 PM
RE: Error message 1001 Posted by dcNiko Vujke @ 12/24/2010 11:14:51 AM
RE: Error message 1001 Posted by Mustapha Bihmouten @ 12/23/2010 3:23:14 PM
RE: Error message 1001 Posted by dcNiko Vujke @ 12/24/2010 11:31:45 AM
RE: Error message 1001 Posted by dcNiko Vujke @ 2/9/2011 9:48:52 AM
RE: Error message 1001 Posted by Cetin Basoz @ 2/9/2011 9:56:17 AM
RE: Error message 1001 Posted by Martin Krivka @ 2/9/2011 10:11:12 AM
RE: Error message 1001 Posted by dcNiko Vujke @ 2/9/2011 3:34:05 PM
RE: Error message 1001 Posted by Martin Krivka @ 2/10/2011 8:14:38 AM
RE: Error message 1001 Posted by dcNiko Vujke @ 2/10/2011 12:11:30 PM
RE: Error message 1001 Posted by Martin Krivka @ 2/9/2011 10:02:41 AM