Tracy, The classlib is compiled in the executing program. Testing is difficult because for testing in the runtime environment the classlib may not exist on the computer. If this classlib is physically present there is no error. Executing the application on another computer results in an error
-----Oorspronkelijk bericht----- Van: [email protected] [mailto:[email protected]] Namens Tracy Pearson Verzonden: 11 March 2009 14:55 Aan: [email protected] Onderwerp: RE: avcxclasses used in a runtime environment I suspect the VCX is compiled into a different EXE than the running app/exe. AVCXClasses may not search into the other EXE. Quick testing showed the results you have when I put it into this scenario. AVCXClasses was successful when the VCX is compiled into the current EXE. HTH, Tracy -----Original Message----- From: Coppens, Georges, FC (Provincialaat) Sent: Wednesday, March 11, 2009 6:23 AM To instantiate a grid I have to test the existence of a class in a classlib. There is no problem in the development environment. But once the classlib is included in an application and the classlib is not a physical file on disk the named vcx is not found. In the form load method: THISFORM.cAppClassLib="app.vcx" SET CLASSLIB TO app.vcx IN acerta.exe ADDITIVE In the 'anychange' method: lcAlias=THISFORM.aAlias(THIS.VALUE) SELECT (lcAlias) lnMax=AVCXCLASSES(laClass,THISFORM.cAppClassLib) The last line generates the error: file not found. What's wrong with this code? Thanks. Georges Coppens [excessive quoting removed by server] _______________________________________________ Post Messages to: [email protected] Subscription Maintenance: http://leafe.com/mailman/listinfo/profox OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech Searchable Archive: http://leafe.com/archives/search/profox This message: http://leafe.com/archives/byMID/profox/[email protected] ** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.

