Help Typo, missing comma in setValue Example

Discussions about product bugs & problems!
Note: This is no replacement for the Official ETM Support!
2 posts • Page 1 of 1
dano3829
Posts:5
Joined: Wed Feb 13, 2019 9:29 pm

Help Typo, missing comma in setValue Example

Post by dano3829 »

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"); }

leoknipp
Posts:2928
Joined: Tue Aug 24, 2010 7:28 pm

Re: Help Typo, missing comma in setValue Example

Post by leoknipp »

Thanks for the information. I have forwarded the information to our documentation group.

Best Regards
Leopold Knipp
Senior Support Specialist

2 posts • Page 1 of 1