What am I doing wrong?
I can not get it to go to the if a_dlg_button = "radio1"
Thanks
Charlie crimmel
dim aa as P
aa = addin.variables()
DIM SHARED search_by as C
DIM SHARED varC_result as C
Dim Shared SSNN as C
Dim shared Caseno as C
Dim SHARED FNAME as C
Dim Shared LName as C
Dim Shared DOB as D
Dim SHARED FLNAME as C
Dim wordct as N
Dim Level as C
Dim SHARED FirstNAME as C
Dim Shared LastName as C
SSNN = ""
Caseno = ""
FNAME = ""
LName = ""
search_by=""
Firstname = ""
Lastname = ""
'*****************
'initialize dob
'added by hubert
dob={}
'*****************
'tbl = table.current()
mode = 1
tbl = table.open("clients")
ok_button_label = "&OK"
cancel_button_label = "&Cancel"
varC_result = ui_modeless_dlg_box("Client Search",<<%dlg%
{region}Please Select Search Type:{endRegion};
{region}
(search_by:First Name!radio1)|
(search_by:Last Name!radio2)|
{endRegion};
{region}
<*15=ok_button_label!OK> <15=cancel_button_label!CANCEL>
{endregion};
%dlg%,<<%code%
if a_dlg_button= "OK"
ui_msg_box("Client Search","Action OK at user request")
'end
if a_dlg_button = "radio1" then
UI_MSG_BOX(Firstname+" - FIND","user Selected Firstname")
ui_modeless_dlg_ctl_goto("Client Search","FIRSTNAME")
a_dlg_button=""
end if
if a_dlg_button = "radio2" then
UI_MSG_BOX(Lastname+" - FIND","User Selected Last Name")
ui_modeless_dlg_ctl_goto("Client Search","LASTNAME")
a_dlg_button=""
end if
end if
if a_dlg_button= "CANCEL"
ui_msg_box("Client Search","Action Cancelled at user request")
ui_modeless_dlg_close("Client Search")
end
end if
%code%)
end
FIRSTNAME:
UI_MSG_BOX(Firstname+" - FIND","This is in the GO for Firstname")
end
Lastname:
UI_MSG_BOX(Lastname+" - FIND","This is in the GO for Lastname")
end
I can not get it to go to the if a_dlg_button = "radio1"
Thanks
Charlie crimmel
dim aa as P
aa = addin.variables()
DIM SHARED search_by as C
DIM SHARED varC_result as C
Dim Shared SSNN as C
Dim shared Caseno as C
Dim SHARED FNAME as C
Dim Shared LName as C
Dim Shared DOB as D
Dim SHARED FLNAME as C
Dim wordct as N
Dim Level as C
Dim SHARED FirstNAME as C
Dim Shared LastName as C
SSNN = ""
Caseno = ""
FNAME = ""
LName = ""
search_by=""
Firstname = ""
Lastname = ""
'*****************
'initialize dob
'added by hubert
dob={}
'*****************
'tbl = table.current()
mode = 1
tbl = table.open("clients")
ok_button_label = "&OK"
cancel_button_label = "&Cancel"
varC_result = ui_modeless_dlg_box("Client Search",<<%dlg%
{region}Please Select Search Type:{endRegion};
{region}
(search_by:First Name!radio1)|
(search_by:Last Name!radio2)|
{endRegion};
{region}
<*15=ok_button_label!OK> <15=cancel_button_label!CANCEL>
{endregion};
%dlg%,<<%code%
if a_dlg_button= "OK"
ui_msg_box("Client Search","Action OK at user request")
'end
if a_dlg_button = "radio1" then
UI_MSG_BOX(Firstname+" - FIND","user Selected Firstname")
ui_modeless_dlg_ctl_goto("Client Search","FIRSTNAME")
a_dlg_button=""
end if
if a_dlg_button = "radio2" then
UI_MSG_BOX(Lastname+" - FIND","User Selected Last Name")
ui_modeless_dlg_ctl_goto("Client Search","LASTNAME")
a_dlg_button=""
end if
end if
if a_dlg_button= "CANCEL"
ui_msg_box("Client Search","Action Cancelled at user request")
ui_modeless_dlg_close("Client Search")
end
end if
%code%)
end
FIRSTNAME:
UI_MSG_BOX(Firstname+" - FIND","This is in the GO for Firstname")
end
Lastname:
UI_MSG_BOX(Lastname+" - FIND","This is in the GO for Lastname")
end
Comment