Dyslexicbloke
Member
Hi folks,
I have a couple of array tags which I am attempting to build a schedule application with.
I have two spaciffic problems.
1.
Using the system variable 'i' to modify each elliments label ( Label: ="strScheduleDef"+AsText(i+1), works just fine giving a label of strScheduleDef1 for strScheduleDef[0]
but I cant use the label to get an index or asign values ......
strScheduleDef1:="New String Value";
Asks to create a new TAG when it is compiled.
GetTagIndex("strScheduleDef1") returns -1 (IE it fails)
GetTagIndex("strScheduleDef") returns a valid index but isnt actually a qualified TAG as the elliment ordinal is missing.
The upshot, I cant use:-
SetStringTag(GetTagIndex("TagLabel")","New String Value")
If the TAG involved is an array.
2.
The second issue is with code in the onWrite property.
As I understand it from the manual 'i' should be equal to the particular elliments ordinal, as it is above in the label assignment.
In practice I just get a huge int value that I cant make any sense of.
I am probably just being silly but I would apriciate someone pointing ou exactly how silly!!
Thanks folks ... looking forward to being educated
Al
I have a couple of array tags which I am attempting to build a schedule application with.
I have two spaciffic problems.
1.
Using the system variable 'i' to modify each elliments label ( Label: ="strScheduleDef"+AsText(i+1), works just fine giving a label of strScheduleDef1 for strScheduleDef[0]
but I cant use the label to get an index or asign values ......
strScheduleDef1:="New String Value";
Asks to create a new TAG when it is compiled.
GetTagIndex("strScheduleDef1") returns -1 (IE it fails)
GetTagIndex("strScheduleDef") returns a valid index but isnt actually a qualified TAG as the elliment ordinal is missing.
The upshot, I cant use:-
SetStringTag(GetTagIndex("TagLabel")","New String Value")
If the TAG involved is an array.
2.
The second issue is with code in the onWrite property.
As I understand it from the manual 'i' should be equal to the particular elliments ordinal, as it is above in the label assignment.
In practice I just get a huge int value that I cant make any sense of.
I am probably just being silly but I would apriciate someone pointing ou exactly how silly!!
Thanks folks ... looking forward to being educated
Al