Finally I changed the approach to:
1. apply solution only in the runtime environment
2. copy vcx to tempory table: Select * from vcxname into table tmptable
3. use the AVCXCLASSES method to create the array with class names
4. delete the tempory table
5. use the ASCAN method for a lookup of the classname
-----Oorspronkelijk bericht-----
Van: [email protected] [mailto:[email protected]] Namens
Coppens, Georges, FC (Provincialaat)
Verzonden: woensdag 11 maart 2009 11:23
Aan: [email protected]
Onderwerp: avcxclasses used in a runtime environment
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
Dit bericht wordt verzonden vanuit een e-mailadres voor professioneel gebruik.
De verantwoordelijken binnen de organisatie kunnen kennis nemen van alle
berichten verzonden naar dit adres.
Le présent message est envoyé d'une adresse e-mail pour usage professionnel.
Les responsables de l'organisation peuvent prendre connaissance de tous les
messages envoyés à cette adresse.
This message is sent from an e-mail address for professional use only. The
persons in charge of the organisation may take note of all messages sent to
this address.
--- StripMime Report -- processed MIME parts --- multipart/alternative
text/plain (text body -- kept)
text/html
---
[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.