Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Invoking FoxPro DLL function from formula fields
Message
De
12/10/2005 10:37:34
 
 
À
08/10/2005 09:14:39
Information générale
Forum:
Visual FoxPro
Catégorie:
Crystal Reports
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Divers
Thread ID:
01057322
Message ID:
01058305
Vues:
26
Craig,

Thank you very much for your help. It's working now.


>As I said in my original post in this thread, you must specify the return value of the methods and the data types of the parameters. Without doing that, Crystal will not see anything. I also suggest you use Session class instead of custom. Rewrite your code like this...
>
>DEFINE CLASS Transtr_sql AS SESSION OLEPUBLIC
>
>FUNCTION Translate_sql(icString AS String) AS String
>
>	LOCAL lcString
>
>	lcString = icString + TIME()
>	
>	RETURN lcString
>
>ENDPROC
>
>ENDDEFINE
>
>
>
>>Well, something is missing.
>>
>>Maybe I have to 'tell' Crystal where to find my dll or which functions to include ? or I am not creating my DLL properly ?
>>
>>Aditional functions only lists:
>>2000 (u2l2000)
>>dts (u2ldts)
>>exch (u2lexch)
>>finra (u2lfinra)
>>2000 (u252000)
>>dts (u25dts)
>>samp1 (u25samp1)
>>
>>Sorry to insist.
>>Thanks.
>>
>>My fox code is only a test function:
>>
>>Project CRUFLTranstr_sql
>>
>>
>>CRUFLTranstr_sql.prg  contains:
>>
>>DEFINE CLASS Transtr_sql AS CUSTOM OLEPUBLIC
>>
>>FUNCTION Translate_sql
>>LPARAMETERS icString
>>
>>	LOCAL lcString
>>
>>	lcString = icString + TIME()
>>	
>>	RETURN lcString
>>
>>ENDPROC
>>
>>ENDDEFINE
>>
>>
>>
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform