DAQFactory provides a powerful scripting language called sequences which allows you to create more advanced applications. As part of this, DAQFactory also provides variable and function access to most all the properties of the components you use on your pages.
A new component is given a default name based on its type, prefixed by an underscore. Since DAQFactory won't let you give your components a name that starts with an underscore, this will keep all unnamed components at the top of the list in the workspace.
In order to access the properties of a particular component on one of your pages, you must give the component a name. You can do so four different ways:
1) find the component in the Workspace under the appropriate Page, right click and select Rename. You can then edit the component's name right in the Workspace.
2) select the component and enter the component name in the edit box at the top of the Properties control bar.
3) select the component and enter the component name in the edit box at the top of the Event/Function control bar.
4) select the component, then right click on the component and select Component Name... This will then display a window where you can specify the component's name.
As always, the name must start with a letter and contain only letters, numbers, or the underscore. If you put a number at the end of the component name, and then Duplicate the component, the name will auto-increment. In other words, if you have a component named Edit1 and you duplicate the component, the new component will be named Edit2. If your name doesn't end in a number, the new component will have the same name as the old one.
Once you have specified the component name, you can access its properties and functions using the following format:
Component.name.variable
So, if you had a simple Text component and you wanted to be able to change the text displayed dynamically, you could name the component MyTextComponent and then set the text using:
Component.MyTextComponent.Text = "new text"
When setting a variable, all components with the same name will be set to this value. That is, provided the specified variable exists for all the components. When retrieving variables or calling functions, only the first component with the given name is used.
If you use the same component name for multiple components and those components are on multiple pages, you can specify the components on a single page by simply prefixing with Page. and the page name and a period:
Page.Page_1.Component.MyTextComponent.Text = "new text"
This will set all the components named MyTextComponent on Page_1. If you have MyTextComponent on other pages, it will not affect them.
Inside a component's Event, you can reference its own variables and functions without the Component.Name.
At the end of each component's section in this help is a list of variables and functions available for that component. Most are self explanatory and match the properties available. For those that are less obvious an explanation is provided as well.