Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Invoking FoxPro DLL function from formula fields
Message
From
12/10/2005 10:37:34
 
 
To
08/10/2005 09:14:39
General information
Forum:
Visual FoxPro
Category:
Crystal Reports
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01057322
Message ID:
01058305
Views:
13
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
>>
>>
>>
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform