Missing a comma in the Primitive_Text7 example in 1st setValue() before "Motor off". see below. How do we log documentation errors? Just search Primitive_Text7 and you will find it.
main() { dpConnect("motor","System1:ExampleDP_Arg1.:_online.._value");
}
motor(string dp, int mod)
{ string mot;
if (mod== 0)
setValue("PRIMITIVE_TEXT7","text" "Motor off");
/*The primitive text is PRIMITIVE_TEXT7. If the value of the ExampleDP_Arg1 DP == 0, "Motor off" is written into the output field. If the value again is == 1, "Motor chosen" is written to the output field. In case of other values, "Motor running" is written to the output field*/ else if (mod== 1) setValue("PRIMITIVE_TEXT7", "text","Motor chosen"); else setValue("PRIMITIVE_TEXT7", "text","Motor running"); }
Help Typo, missing comma in setValue Example
- leoknipp
- Posts:2928
- Joined: Tue Aug 24, 2010 7:28 pm
Re: Help Typo, missing comma in setValue Example
Thanks for the information. I have forwarded the information to our documentation group.
Best Regards
Leopold Knipp
Senior Support Specialist
Best Regards
Leopold Knipp
Senior Support Specialist