Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
I can not read my variables
#1
What am I doing wrong? I would like to use my variables when I press next but I can not get, read or use any variables.


Attached Files
.qml   Main Program7 Gin.qml (Size: 5.55 KB / Downloads: 274)
#2
please insert comments where and what you want to do
#3
At this point all I want to do is get the value when I press case 6. If I can do that I am sure that I can use it.

Example
if(but(id(12 win("Main Dialog" "#32770"))))
out "the button is checked"

This works but my question is why do I not get a (0 or a 1) for checked or not checked after I out
c4Che=, d.e9=, d.c12Che=, d.o3Opt=, d.o4Opt=, d.o5Opt=(null)

,case 6
,out "c4Che=%s, d.e9=%s, d.c12Che=%s, d.o3Opt=%s, d.o4Opt=%s, d.o5Opt=%s" d.e9 d.c12Che d.o3Opt d.o4Opt d.o5Opt
,EnableWindow(id(5 hDlg)1)
,t+1
,if(t = 2)
,,hid(id(5 hDlg))
,,hid(id(6 hDlg))
,,hid(id(2 hDlg))
,,hid(id(3 hDlg))
,,EnableWindow(id(6 hDlg)0)
,DT_Page(hDlg t)

case 5
#4
These variables are populated only when the dialog is closed.

You can populate dialog variables while the dialog is open using function DT_GetControls.
Function Main_Program7_Gin
Trigger F5     Help - how to add the trigger to the macro
Code:
Copy      Help
;messages2
DT_GetControls hDlg &controls ;;populate variables of main dialog
DT_GetControls id(3 hDlg) &d ;;populate variables of first child dialog
sel wParam
,case 6
,out "d.e9=%s, d.c12Che=%s, d.o3Opt=%s, d.o4Opt=%s, d.o5Opt=%s" d.e9 d.c12Che d.o3Opt d.o4Opt d.o5Opt


Forum Jump:


Users browsing this thread: 1 Guest(s)