Welcome Guest ( Login | Register )



All times are UTC - 7 hours [ DST ]



Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: Trouble writing to internal tag - Cannot implicitly convert
PostPosted: Wed Oct 28, 2015 1:19 pm 

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

Offline
Here's my internal tag definition:

Attachment:
error-tag-definition.png
error-tag-definition.png [ 4.75 KiB | Viewed 3392 times ]


Here's how it's used in code and the error I receive:

Attachment:
tag-error-list.png
tag-error-list.png [ 29.43 KiB | Viewed 3392 times ]


What am I doing wrong?


 Profile  
 
 Post subject: Re: Trouble writing to internal tag - Cannot implicitly [sol
PostPosted: Wed Oct 28, 2015 2:13 pm 

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

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

Code:
Globals.Tags.bValidRecipeSelection.SetTag(); // Controls visibility of "next" button.


There's a ResetTag method as well.

This works.


 Profile  
 
 Post subject: Re: Trouble writing to internal tag - Cannot implicitly conv
PostPosted: Thu Oct 29, 2015 10:42 am 

Joined: Mon Jun 11, 2012 2:10 pm
Posts: 89

Offline
You need to set the value property:

Code:
Globals.Tags.bValidRecipeSelection.Value = false;

_________________
Adam M.
Controls Engineer
FlexEnergy


 Profile  
 
 Post subject: Re: Trouble writing to internal tag - Cannot implicitly conv
PostPosted: Thu Oct 29, 2015 12:38 pm 

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

Offline
OK. Thanks for your reply.


 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC - 7 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: