Hello ,
1-is it possible to use StringArray1 in a StringArray2 ?
and access the data like this : Array[1][2]
2 -Is it possible to name the index of a Array like a tuple of key:value ?
ex : Fruit[banana] = 3, Fruit[apple] = 4
Thank you .
Moderator: Moderator Group
matim wrote:2 -Is it possible to name the index of a Array like a tuple of key:value ?
ex : Fruit[banana] = 3, Fruit[apple] = 4
index = -1
For 1 to Fruit_Keys.Length:
if Fruit_Keys[for.index] = myfruit
{
index = for.index
}
Next
If index >= 0
{
# success! my value is Fruid_values[index]
}
else
{
# Not a fruit!
}
matim wrote:if i wrote label1.text = A[0] , the label shows the letter A[0] not my value <screen id =2>
matim wrote:2 -if i have a variable name B with the value 3 by example.
i have to put this value in my array : <screen id = B>
i expect that WD change the B text with the value 3
i need to see <screen id = 3> in my A array but i got <screen id = B>
matim wrote:in your pseudo code about Fruit , the next should be at the end of code ?
matim wrote:it won't work within a function and argument.
i think because of the variable's scope. ( global or local )
matim wrote:do you miss the index of array in this example ?
Return to Widget Designer V4.7
Users browsing this forum: No registered users and 20 guests