I am running vfp6 on window 8. I typed in 'application = .f.'. when am executing my program , it brings error message 'ole 02x800......... not registered in the Library'
Well, application is a reserved word, it is an object existing globally.
Start VFP, in the command window do
Code:
? Application
This should display (Object) on the screen.
Choose another name for your variable.
Bye, Olaf.
PS: Application mainly is the same as _VFP, if you set _vfp.caption you set the _screen caption and also Application.Caption will be that caption. So _VFP, _SCREEN and Application are somewhat interconnected objects, you can't use any of these as names for own variables and they are related to VFP being OLE automatable itself, ie o = CREATEOBJECT("VisualFoxpro.Application") works for automating VFP.
The message which I see if I type [tt]Application = .F.[/tt] is "Cannot redefine Application". This makes perfect sense, since Application is a pre-defined object.
I don't know where your "not registered in library" error is coming from - unless that was the standared error message for this situation in VFP 6. But, in any case, if you are trying to use [tt]Application[/tt] as a variable, the solution is to choose a different name for the variable.
Mike
__________________________________
Mike Lewis (Edinburgh, Scotland)
That's useful to know. It indicates that he is doing something more than trying to set a variable named Application to .F. Some ActiveX control is being used perhaps.
Mike
__________________________________
Mike Lewis (Edinburgh, Scotland)
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.