PtNumericInteger question

Hi, I can´t get the Pt_ARG_NUMERIC_VALUE of a PtNumericInteger:

int *edad;
char tmp[200];

PtGetResource(ABW_int_Edad, Pt_ARG_NUMERIC_VALUE, edad, 0);

sprintf(tmp, “Pt_ARG_NUMERIC_VALUE value: %i”, *edad);

PtSetResource(ABW_lbl_control, Pt_ARG_TEXT_STRING, tmp,0);

any idea?

try this:

int *edad;
char tmp[200];

[color=green]PtSetArg (&args[0], Pt_ARG_NUMERIC_VALUE, &edad, 0);
PtGetResources (ABW_int_Edad, 1, args);

[color=red]/*PtGetResource(ABW_int_Edad, Pt_ARG_NUMERIC_VALUE, &edad, 0); */

sprintf(tmp, “Pt_ARG_NUMERIC_VALUE value: %i”, *edad);

PtSetResource(ABW_lbl_control, Pt_ARG_TEXT_STRING, tmp,0);

Thanks, with the PtSetArg and PtGetResources woks fine.

The problem is not about PtGetResource or PtGetResources,

it should also work using
PtGetResource(ABW_int_Edad, Pt_ARG_NUMERIC_VALUE, &edad, 0);

(afaik PtGetResource is just a macro for the SetArg and GetResources calls)