Valhalla Legends Forums Archive | Visual Basic Programming | Mismatch!?

AuthorMessageTime
CrAz3D
[code]VB.NET:
Public Function PlugEvent(ByVal TheEvent As String, Optional ByVal Username As String = vbNullString, Optional ByVal Message As String = vbNullString, Optional ByVal Flags As Integer = vbNull, Optional ByVal Ping As Integer = vbNull) As Boolean
Dim d() As String, TheBool() As Boolean
        ReDim TheBool(0)
TheBool(UBound(TheBool)) = PlugY(i).Run(TheEvent, Username, Message, Flags, Ping)[/code]

[code]VB6:Public Function Run(ByVal TheEvent As String, Optional Username As String, Optional Message As String, Optional Flags As Integer, Optional Ping As Integer) As Boolean[/code]

[code]VB.NET:PlugEvent("metalk", "CrAz3D", "hi", 2, 3)[/code]

Everytime that I send the Flags & Ping I recieve a Type Mismatch, any problems visible to y'all?

The Run function exsists in another project.
October 8, 2004, 1:29 AM
St0rm.iD
vbNull being assigned to an integer?
October 8, 2004, 2:04 AM
CrAz3D
That should work, no?
October 8, 2004, 2:36 AM
UserLoser.
[quote author=CrAz3D link=topic=9049.msg83656#msg83656 date=1097203004]
That should work, no?
[/quote]

If it doesn't work, then no
October 8, 2004, 2:48 AM
CrAz3D
My problem is that whatever value I end up using for flags/ping isn't/can't be passed as an integer...only a string, as I've come to realize.

New problem is that the Host form (vb.net project) cannot load a modal form from my vb6 project (the plugin).  .Net is so lovely
October 8, 2004, 3:25 AM
drivehappy
[quote author=CrAz3D link=topic=9049.msg83664#msg83664 date=1097205912]
My problem is that whatever value I end up using for flags/ping isn't/can't be passed as an integer...only a string, as I've come to realize.
[/quote]
Then why are they defined as integers?

[quote]
New problem is that the Host form (vb.net project) cannot load a modal form from my vb6 project (the plugin).  .Net is so lovely[/quote]
What are you trying to do?
October 8, 2004, 7:11 AM

Search