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
>>
>>
>>