Hello,
is there any possibility to show the tag description on the screen?
Thanks!
Tag description
Re: Tag description
Hi Smolenak!
Yes you can, You access it via the Description property.
Create a textfield and try this.
The Description property is not visible in the script editor in iX but if you switch over to Visual Studio you will see it.
Best Regards
Edmund
Yes you can, You access it via the Description property.
Create a textfield and try this.
Code: Select all
void Screen1_Opened(System.Object sender, System.EventArgs e)
{
Text1.Text = Globals.Tags.Tag1.Description;
}
Best Regards
Edmund
Re: Tag description
As I understand, Visual C# must be installed ?
If yes, which version, release..?
regards, Waldemar
If yes, which version, release..?
regards, Waldemar
-
- Posts: 824
- Joined: Tue Mar 13, 2012 9:53 am
Re: Tag description
iX Developer has a C# compiler, and it installs it by default. You do not need to install Microsoft Visual Studio.
Best Regards,
Mark Monroe
Beijer Electronics, Inc. | Applications Engineer
Mark Monroe
Beijer Electronics, Inc. | Applications Engineer
Re: Tag description
Thank You Mark,
how can I make the "Description" option for a tag in the:
Text1.Text = Globals.Tags.Tag1.Description;
visible?
how can I make the "Description" option for a tag in the:
Text1.Text = Globals.Tags.Tag1.Description;
visible?
-
- Posts: 824
- Joined: Tue Mar 13, 2012 9:53 am
Re: Tag description
You code works to do what you want. Maybe you do not have a description for that tag.
Code: Select all
void Button1_Click(System.Object sender, System.EventArgs e)
{
Text1.Text = Globals.Tags.Tag1.Description;
}
Best Regards,
Mark Monroe
Beijer Electronics, Inc. | Applications Engineer
Mark Monroe
Beijer Electronics, Inc. | Applications Engineer
Re: Tag description
I put some description to a tag.
But, when I put dot after the tag's name, no "Description" option is seen. Is it normal? Where all available options can be seen? May be, in Visual C# manual?
But, when I put dot after the tag's name, no "Description" option is seen. Is it normal? Where all available options can be seen? May be, in Visual C# manual?
-
- Posts: 824
- Joined: Tue Mar 13, 2012 9:53 am
Re: Tag description
Only properties that are marked as "visible" can be seen. When you are in your script, you can press F1 and it will bring up the script help which has all of the properties and methods an object has.
Just because the autocomplete doesn't display a properties doesn't mean it is not there.
Just because the autocomplete doesn't display a properties doesn't mean it is not there.
Best Regards,
Mark Monroe
Beijer Electronics, Inc. | Applications Engineer
Mark Monroe
Beijer Electronics, Inc. | Applications Engineer