Example: nca_edit_get_text
In the following example, the nca_edit_get_textfunction reads the text in the Username box and saves it to a variable, val.
int n; char val[10];
nca_edit_set("FNDSCSGN.SIGNON.USERNAME.0", "<Param7>"); nca_obj_type("FNDSCSGN.SIGNON.USERNAME.0",9,0); nca_edit_get_text("FNDSCSGN.SIGNON.USERNAME.0",val); nca_edit_set("FNDSCSGN.SIGNON.PASSWORD.0", "<Param8>"); nca_button_press("FNDSCSGN.SIGNON.CONNECT_BUTTON.0");
n = atoi(lr_eval_string("<Param9>"));
lr_output_message("%d %s" ,n, val);
if (nca_lov_retrieve_items("Responsibilities",1,n)!=E_OK) {
popup_message_press("Error", "OK"); return 0; }