I'm trying to put a variable in an xdialog, and can't seem to figure out how. I have looked at the help documents, but I didn't find any topics covering it, or examples showing how to do it.
I'm trying to get indpt_tbl.Desc to show up in the dialog. When I use ui_msg_box, it works fine.
Here's what I've tried so far:
This code results in the "+ indpt_tbl.Desc +" showing up in the message instead of the character string that should be there.
Then I tried:
This results in "dlg_body" being shown instead of any portion of the string.
I'd just do it with ui_msg_box, but I need the for buttons. I'm sure this is pretty simple, but it's just kicking my butt today.
Thanks for the help.
Tony
I'm trying to get indpt_tbl.Desc to show up in the dialog. When I use ui_msg_box, it works fine.
Here's what I've tried so far:
Code:
update_stock_result =ui_dlg_box("Info", <<%dlg% "Update inventory by pulling '" + indpt_tbl.Desc + "' from stock?"; {lf}; <Yes!ind_yes> <No!ind_no> {initial_focus} <*Yes To All!ind_yes_all> <No To All!ind_no_all> %dlg%,<<%code% SELECT'Set up dialog info for updating stock. CASE a_dlg_button = "ind_yes" stock_YES_Button = .t. CASE a_dlg_button = "ind_no" stock_NO_Button = .t. CASE a_dlg_button = "ind_yes_all" stock_All_Button = .t. CASE a_dlg_button = "ind_no_all" stock_None_Button = .t. END SELECT %code%)
Then I tried:
Code:
dlg_body = "Update inventory by pulling '" + indpt_tbl.Desc + "' from stock?" update_stock_result =ui_dlg_box("Info", <<%dlg% dlg_body; {lf}; <Yes!ind_yes> <No!ind_no> {initial_focus} <*Yes To All!ind_yes_all> <No To All!ind_no_all> %dlg%,<<%code% SELECT'Set up dialog info for updating stock. CASE a_dlg_button = "ind_yes" stock_YES_Button = .t. CASE a_dlg_button = "ind_no" stock_NO_Button = .t. CASE a_dlg_button = "ind_yes_all" stock_All_Button = .t. CASE a_dlg_button = "ind_no_all" stock_None_Button = .t. END SELECT %code%)
I'd just do it with ui_msg_box, but I need the for buttons. I'm sure this is pretty simple, but it's just kicking my butt today.
Thanks for the help.
Tony
Comment