Bill Barrows
Usenet Archive
- Joined
- Mar 5, 2001
- Messages
- 8
- Reaction score
- 0
I am trying to create a dialogue box with Visual Basic that can pass a value to Visual Lisp. I am having problems opening the dialogue box from vlisp.
1. I created the VB project (wjbUI) with a form (wjbio) and class module (wjbDialogue).
2. Created the dll (make wjbUI.dll)
3. I ran regsrv32.exe on the wjbUI.dll successfully.
3. I used these two commands in Visual lisp:
_$(vl-load-com)
_$ (setq ui (vlax-create-object "wjbUI.wjbDialogue"))
#<VLA-OBJECT _wjbDialogue 001a2f18>
Now I want to open the dialogue box using something like this _$ (vlax-ldata-get "wjbUI" "wjbN")
nil
How do I launch the dialogue box?
Any help appreciated.
Bill Barrows
***
My form (wjbio) has two text boxes and two buttons and has this code
Option Explicit
Public UI As wjbDialogue
Private Sub cmdOK_Click
UI.wjbL = Me.txtwjbL.Text
UI.wjbN = Me.txtwjbN.Text
Unload Me
End Sub
Private Sub cmdCancel_Click
UI.Cancelled = True
Unload Me
End Sub
***
My Class Module (wjbDialogue) has this code
Option Explicit
Public wjbN As Integer
Public wjbL As String
Public Cancelled As Boolean
Public Sub ShowUI
With wjbio
Set .UI = Me
Call .Show(vbModal)
End With
End Sub
Private Sub Class_Initialize
wjbN = 7
wjbL = "testing 123"
End Sub
1. I created the VB project (wjbUI) with a form (wjbio) and class module (wjbDialogue).
2. Created the dll (make wjbUI.dll)
3. I ran regsrv32.exe on the wjbUI.dll successfully.
3. I used these two commands in Visual lisp:
_$(vl-load-com)
_$ (setq ui (vlax-create-object "wjbUI.wjbDialogue"))
#<VLA-OBJECT _wjbDialogue 001a2f18>
Now I want to open the dialogue box using something like this _$ (vlax-ldata-get "wjbUI" "wjbN")
nil
How do I launch the dialogue box?
Any help appreciated.
Bill Barrows
***
My form (wjbio) has two text boxes and two buttons and has this code
Option Explicit
Public UI As wjbDialogue
Private Sub cmdOK_Click
UI.wjbL = Me.txtwjbL.Text
UI.wjbN = Me.txtwjbN.Text
Unload Me
End Sub
Private Sub cmdCancel_Click
UI.Cancelled = True
Unload Me
End Sub
***
My Class Module (wjbDialogue) has this code
Option Explicit
Public wjbN As Integer
Public wjbL As String
Public Cancelled As Boolean
Public Sub ShowUI
With wjbio
Set .UI = Me
Call .Show(vbModal)
End With
End Sub
Private Sub Class_Initialize
wjbN = 7
wjbL = "testing 123"
End Sub