Re: How does VFP locate class libraries during runtime?
- From: "Dan Freeman" <spam@xxxxxxxxxxxxx>
- Date: Mon, 2 May 2005 09:20:12 -0700
I always have to look it up. The only two I can always remember is that it
starts with the base classes and ends in the registry. <g>
Dan
Fred Taylor wrote:
> Guess I got that backwards, then. Thanks Dan.
>
>
> "Dan Freeman" <spam@xxxxxxxxxxxxx> wrote in message
> news:%23u8XkCNTFHA.584@xxxxxxxxxxxxxxxxxxxxxxx
>> From the help topic for Createobject():
>>
>> Visual FoxPro searches for the class or OLE object in the following
>> order:
>> 1.. Visual FoxPro base classes
>>
>>
>> 2.. Classes in the current program
>>
>>
>> 3.. Classes in .vcx class libraries opened with SET CLASSLIB
>>
>>
>> 4.. Classes in procedure files opened with SET PROCEDURE
>>
>>
>> 5.. Classes in the Visual FoxPro program execution chain
>>
>>
>> 6.. The OLE registry if SET OLEOBJECT is ON
>>
>>
>>
>> Peter wrote:
>>> Hi Fred,
>>>
>>> The search order I'm referring to is something like this:
>>>
>>> When you issue the DO command with a procedure name, Visual FoxPro
>>> searches for the procedure in the following order:
>>>
>>> 1. The file containing the DO command.
>>> 2. The current database.
>>> 3. Procedure files opened with SET PROCEDURE.
>>> For more information, see SET PROCEDURE Command.
>>> 4. Program files in the execution chain.
>>> Visual FoxPro searches program files in order from the most
>>> recently executed program to the first program executed.
>>> 5. A standalone program file.
>>>
>>> If a matching program file is found, Visual FoxPro executes the
>>> program. Otherwise, Visual FoxPro generates an error message.
>>>
>>> To execute a procedure in a specific file, include the IN clause in
>>> the DO command.
>>>
>>>
>>>
>>> "Fred Taylor" wrote:
>>>
>>>> Sure. When you do SET CLASSLIB TO, you either provide a list of
>>>> .VCX files, or you can append to the list by using the ADDITIVE
>>>> keyword. The order they appear in the list is the order they're
>>>> searched in.
>>>>
>>>> --
>>>> Fred
>>>> Microsoft Visual FoxPro MVP
>>>>
>>>>
>>>> "Peter" <Peter@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
>>>> news:7685DA37-F943-480E-AE58-598C57E071C4@xxxxxxxxxxxxxxxx
>>>>> Hi Fred,
>>>>>
>>>>> Is there a search order for vcx like the search order for
>>>>> procedure?
>>>>>
>>>>> Thanks,
>>>>>
>>>>> Peter
>>>>>
>>>>> "Fred Taylor" wrote:
>>>>>
>>>>>> You can use SET CLASSLIB TO command to control the order. and it
>>>>>> will also
>>>>>> make a difference if the form is external to the .EXE or not. If
>>>>>> it's internal, it use what's in the .EXE, otherwise it will use
>>>>>> the path.
>>>>>>
>>>>>> --
>>>>>> Fred
>>>>>> Microsoft Visual FoxPro MVP
>>>>>>
>>>>>>
>>>>>> "Peter" <Peter@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
>>>>>> news:B51F6790-1283-4852-9D99-8CF3BCBB4F4D@xxxxxxxxxxxxxxxx
>>>>>>> I have a question about how controls locate their class
>>>>>>> libraries during runtime. If I have 2 exes (main.exe and
>>>>>>> module.exe) which use custom.vcx
>>>>>>> but
>>>>>>> the two custom.vcxs are not the same, how does VFP know which
>>>>>>> custom.vcx
>>>>>>> to
>>>>>>> use when running a form which has controls from custom.vcx of
>>>>>>> the module.exe?
>>>>>>>
>>>>>>> 1. Does it matter whether the form is included or excluded in
>>>>>>> the project?
>>>>>>> 2. Can we control how VFP locates the class libraries?
>>>>>>>
>>>>>>>
>>>>>>> Thanks,
.
- Prev by Date: Re: How to export data from the Locals window to a dbf?
- Next by Date: Re: how to scan image from form
- Previous by thread: RE: how to call sql server 2000 stored procedure from foxpro
- Next by thread: Re: how to scan image from form
- Index(es):
Relevant Pages
|