Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Problem with Parameters in COM
Message
De
13/08/2005 04:54:35
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Versions des environnements
Visual FoxPro:
VFP 8 SP1
Database:
Visual FoxPro
Divers
Thread ID:
01040581
Message ID:
01040672
Vues:
15
>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
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform