Trouble writing to internal tag - Cannot implicitly convert

Discussion of application development using iX Developer, including but not limited to getting started, using the functions tab, properties, objects and installation.
Post Reply
Transistor
Posts: 25
Joined: Sat Jul 04, 2015 6:13 am

Trouble writing to internal tag - Cannot implicitly convert

Post by Transistor »

Here's my internal tag definition:
error-tag-definition.png
error-tag-definition.png (4.75 KiB) Viewed 11101 times
Here's how it's used in code and the error I receive:
tag-error-list.png
tag-error-list.png (29.43 KiB) Viewed 11101 times
What am I doing wrong?

Transistor
Posts: 25
Joined: Sat Jul 04, 2015 6:13 am

Re: Trouble writing to internal tag - Cannot implicitly [sol

Post by Transistor »

I had a brainwave. Type a '.' and see what the editor shows up:

Code: Select all

Globals.Tags.bValidRecipeSelection.SetTag(); // Controls visibility of "next" button.
There's a ResetTag method as well.

This works.

AMitchneck
Posts: 137
Joined: Mon Jun 11, 2012 2:10 pm

Re: Trouble writing to internal tag - Cannot implicitly conv

Post by AMitchneck »

You need to set the value property:

Code: Select all

Globals.Tags.bValidRecipeSelection.Value = false;
Adam M.
Controls Engineer
FlexEnergy

Transistor
Posts: 25
Joined: Sat Jul 04, 2015 6:13 am

Re: Trouble writing to internal tag - Cannot implicitly conv

Post by Transistor »

OK. Thanks for your reply.

Post Reply