Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Invoking FoxPro DLL function from formula fields
Message
From
08/10/2005 09:14:39
 
 
To
07/10/2005 18:51:48
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:
01057435
Views:
13
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
>
>
>
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform