Global Variables: Difference between revisions
From MultiCharts
→Example
No edit summary |
Tags: Mobile edit Mobile web edit |
||
Line 18: | Line 18: | ||
AccuracySetNamedInt</syntaxhighlight> | AccuracySetNamedInt</syntaxhighlight> | ||
All global variables use the same principle – it is required to specify the name that is attached to a value to get this value.<br> | All global variables use the same principle – it is required to specify the name that is attached to a value to get this value.<br> | ||
<syntaxhighlight>value1 = AccuracyGetNamedDouble("Double_VariableName"); | The second parameter defines the error code that the function will return.<br> | ||
value2 = AccuracyGetNamedInt("Int_VariableName");</syntaxhighlight> | <syntaxhighlight>value1 = AccuracyGetNamedDouble("Double_VariableName", -1); | ||
value2 = AccuracyGetNamedInt("Int_VariableName", -1);</syntaxhighlight> | |||
In order to remember a value, one needs to assign a name and associate the value with this name:<br> | In order to remember a value, one needs to assign a name and associate the value with this name:<br> | ||
<syntaxhighlight>AccuracySetNamedDouble("Double_VariableName", 0.05); | <syntaxhighlight>AccuracySetNamedDouble("Double_VariableName", 0.05); | ||
AccuracySetNamedInt("Int_VariableName", 50);</syntaxhighlight> | AccuracySetNamedInt("Int_VariableName", 50);</syntaxhighlight> | ||
== Additional info == | == Additional info == | ||
* our discussion forum: | * our discussion forum: |