>Hi there,
>
>once I have written a com-server with vfp6 which was used by a vb-app and which worked fine. But when I recompiled the component with VFP8 it
>does not work anymore:
>
>The component has a method which starts like this:
>
>
>procedure do_nopen
>lparameters cDatabase
>if ! file(cDatabase)
> return .F.
>Else
> open Database (cDatabase)
>Endif
>
>
>It is used in VB like this
>
>
>Dim ot as galserve.gdserve
>Dim lRet as boolean
>set ot = new galserve.gdserve
>lret = ot.do_nopen("D:\KASSE\DATA\GALIDATA.DBC")
>
>
>But now, compiled in VFP8 this crushes because the parameter cDatabase
>is no longer a string like in VFP6 but has a logical value.
>By the way, when I test the server with VFP it works.
>Can anybody tell me what is happening there?
>
>Thanks in advance
>
>Thomas
Try changing it to:
>
procedure do_nopen(cDatabase as string) as logical
if ! file(cDatabase)
return .F.
Else
open Database (cDatabase)
Endif
Cetin