beautypg.com

Clickmsgreadvar – Wavetronix Click 500 (programmable controller) (CLK-500) - Developer Guide User Manual

Page 170

background image

APPENDIX

• CLICK 500 DEVELOPER GUIDE

169

ClickMsgReadVar

Function will read the value of a particular variable out of a Click message string.

˽

LIBRARY – click500message.LIB

˽

SYNTAX –

void ClickMsgReadVar(char* varName, void* varValue);

˽

PARAMETER1 – The name of the variable from the Click message string

˽

PARAMETER2 – A pointer to the location where the variable value will be stored

˽

RETURN VALUE – SUCCESS == 0/ERROR == 1

˽

EXAMPLE –

ClickMsgReadVar(“VarName”, &tempVar);

˽

SEE ALSO – ClickMsgWrite