Problem with OCX method on Progress / MsVB 6.0

be_quick

New Member
Hi people, it's my first message here ...

Now i have a little problem with Progress 91d when im trying to use an OCX made by myself on VisualBasic 6.0.

My OCX is working fine on VB, but with Progress i cant send parameter for a method of my OCX (i dont have any problem with methods without params, but with params ...:mad: ).

Example


On choose event of my PROGRESS object :

chctrlframe:ctrl_CargaMaq:Clean_Grid. /* runing ok */
chctrlframe:ctrl_CargaMaq:teste (""). /* error message */

On Visual Basic Method :

Public Sub teste(cMaquina As String)
MsgBox cMaquina 'send a message box to windows .. easy...
End Sub
Public Sub Clean_Grid()
MsgBox "Working fine here ..."
End Sub


ERROR MESSAGE :

Wrong input/output parameter mode defined for parameter.
Event/method:teste
USER-INTERFACE-TRIGGER C:\windows\blablabla\p56438_testes_ocx.ab (5900)

Anyony can help me on that ?

tnks a lot guys.
 
I think i figured out my problem ... :biggrin:


On Visual Basic i must define what kind of parameter it is ...

Before :

Public Sub teste(cMaquina As String)
MsgBox cMaquina 'send a message box to windows .. easy...
End Sub

After :

Public Sub teste(byVal cMaquina As String)
MsgBox cMaquina 'send a message box to windows .. easy...
End Sub

Here is the TIP!!


tnks anyway ... lol
 
Back
Top