I have written many VB and ExtraBasic macros, and yes I tend to see memory leak problems. The only thing I do is to make programs that do end at sometime. It is a bad idea to write a macro that will always run non-stop.
I have gotten the ActiveX controls to work and they work well but I tend to just ref the Session1 using
getobject("C:\PROGRAMFILES\SESSIONS\SESSION1.EDP). The controls need Extra Object 2.1 installed and that is a pain.
Here is a demo on how to use the Dialog boxes in ExtraBasic. You are going to want to use the built in Dailog editor for this stuff. It is pretty nice.
'This ExtraBasic code and will not work in MS-VB
Dim mSelect(3) as string
mSelect(0) = "One"
mSelect(1) = "Two"
mSelect(2) = "Three"
mSelect(3) = "Four"
Begin Dialog dlgForm 3, 23, 175, 74, "Dialog Caption"
TextBox 5, 11, 105, 13, .AppNum
DropListBox 3, 36, 105, 98, mSelect(), .ArrayIndex
OkButton 123, 15, 50, 14
CancelButton 123, 35, 50, 14
Text 3, 24, 35, 10, "Label"
End Dialog
Dim MyDialog as dlgForm
Dim strSelected as string
Dim intSelected as Integer
Dim TextBoxValue as string
Dialog MyDialog 'shows Dialog form
intSelected = MyDialog.ArrayIndex
strSelected = mSelect(MyDialog.ArrayIndex)
My Email address is "Camel2021@cinci.rr.com". Write me if you do not understand me. (I am sorry that I am not the greatest at writing)