Hi,
I would like to get the content of a prompt text (that contains a number), store it in an integer variable and print it in another prompt text.
I'm using the "gx_prompt_text_get" function as follows:
GX_PROMPT * p_prompt_1;
GX_CHAR * text1; // Variable in which is stored the value from the prompt text
gx_system_widget_find(ID_PROMPT_1, GX_SEARCH_DEPTH_INFINITE, (GX_WIDGET **) &p_prompt_1);
// p_prompt is the pointer to the source prompt tex
status = gx_prompt_text_get(p_prompt_1, &text1);
update_text((GX_WIDGET *) pWindowDebug, ID_PROMPT_DEST, text_1);
I would store the content of the prompt text with id "ID_PROMPT_1" in the prompt text with id "ID_PROMPT_DEST", and also store its converted value in an integer variable.
Debugging that code, I can't see anything in the "dest" prompt, and the "status" variable gives the error value of 7 (pointer error?).
What am I doing wrong? Am I missing something?
I'm using e2studio 5.1.0.022 and GuiX 5.3.0.1
Thank you,
regards.