• Welcome to Valhalla Legends Archive.
 

Mismatch!?

Started by CrAz3D, October 07, 2004, 08:29 PM

Previous topic - Next topic

CrAz3D

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)


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

VB.NET:PlugEvent("metalk", "CrAz3D", "hi", 2, 3)

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.
rebundance - having or being in excess of sheer stupidity
(ré-bun-dance)
Quote from: Spht on June 22, 2004, 07:32 PMSlap.
Quote from: Adron on January 28, 2005, 09:17 AMIn a way, I believe that religion is inherently evil, which includes Christianity. I'd also say Christianity is eviller than Buddhism (has more potential for evil).
Quote from: iago on April 19, 2005, 01:06 PM
CrAz3D's ... is too big vertically, at least, too big with ... iago ...

Banana fanna fo fanna

vbNull being assigned to an integer?

CrAz3D

That should work, no?
rebundance - having or being in excess of sheer stupidity
(ré-bun-dance)
Quote from: Spht on June 22, 2004, 07:32 PMSlap.
Quote from: Adron on January 28, 2005, 09:17 AMIn a way, I believe that religion is inherently evil, which includes Christianity. I'd also say Christianity is eviller than Buddhism (has more potential for evil).
Quote from: iago on April 19, 2005, 01:06 PM
CrAz3D's ... is too big vertically, at least, too big with ... iago ...

UserLoser.


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
rebundance - having or being in excess of sheer stupidity
(ré-bun-dance)
Quote from: Spht on June 22, 2004, 07:32 PMSlap.
Quote from: Adron on January 28, 2005, 09:17 AMIn a way, I believe that religion is inherently evil, which includes Christianity. I'd also say Christianity is eviller than Buddhism (has more potential for evil).
Quote from: iago on April 19, 2005, 01:06 PM
CrAz3D's ... is too big vertically, at least, too big with ... iago ...

drivehappy

Quote from: CrAz3D on October 07, 2004, 10:25 PM
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.
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
What are you trying to do?