03-24-2015, 02:36 AM
I would welcome any advice on the following issue :
Function tempf13 calls twice function tempf12, which it is actually a smart dialogue :
Function tempf13
Function tempf12
The second time that tempf12 is called the new value of arg i is not passed correctly in the dialogue. Instead, if using the statement commented out, namely :
everything is OK.
I am wondering what is wrong in the first place.
Thanks in advance.
Function tempf13 calls twice function tempf12, which it is actually a smart dialogue :
Function tempf13
Function tempf12
;\Dialog_Editor
function int'i
str dd=
;BEGIN DIALOG
;0 "" 0x90C80AC8 0x0 0 0 208 66 "Dialog"
;3 Static 0x54000000 0x0 74 18 48 12 "Text"
;1 Button 0x54030001 0x4 86 44 48 14 "OK"
;2 Button 0x54030000 0x4 154 44 48 14 "Cancel"
;END DIALOG
;DIALOG EDITOR: "" 0x2040202 "*" "" "" ""
int- j=i
;j=i
if(!ShowDialog(dd &sub.DlgProc 0)) ret
#sub DlgProc
function# hDlg message wParam lParam
int- j
sel message
,case WM_INITDIALOG
,_s=F"{j}"
,_s.setwintext(id(3 hDlg))
,
,case WM_DESTROY
,case WM_COMMAND goto messages2
ret
;messages2
sel wParam
,case IDOK
,case IDCANCEL
ret 1
The second time that tempf12 is called the new value of arg i is not passed correctly in the dialogue. Instead, if using the statement commented out, namely :
Quote:j=i
everything is OK.
I am wondering what is wrong in the first place.
Thanks in advance.