Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Help with VB conversion
Message
De
19/04/1998 11:35:14
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
19/04/1998 11:19:59
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00093249
Message ID:
00093252
Vues:
26
>I am implementing an OCX control and only have a VB example.
>
>The VB code is :-
>Private Sub Form_Activate ()
> SplitFrame1.AttachControl ScrollPanel1, 1
>End Sub
>
>Where the object ScrollPanel1 is placed on the startup form
>
>I have created a form with both the above objects and tried the following in the SplitFrame1 object's initial event :-
>
>thisform.SplitFrame1.AttachControl(" ScrollPanel1, 1")
>
>I get an error OLE error code 0x80020005: Type mismatch
>
>Could anyone please help with my misunderstanding
>Thanks
>John Harriss
Type mismatch -> Function requires two parms as in example. ScrollPanel1 (object ?) and 1 (numeric). You have sent only one parm " ScrollPanel1, 1" as char. Apart from this example in VB you could use named arguments but in VFP you need positional arguments :
VB :
...goto what:=tcBookmark where:=...
VFP :
..goto(varWhat,varWhere...) and you should know the exact positions (ie : it could be goto(varWhere,varWhat)).
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