Como crear variable combinada - Page 2 - Forum

Forum Navigation
You need to log in to create posts and topics.

Como crear variable combinada

PreviousPage 2 of 2

That is, this is not an error, but a feature of the cycle in JavaScript.

Now it is clear. Thanks @Gaev!

It just differs from visualneovin and initially confuses.

It seems to me that the loop in VisualNEO Win is more logical than in JavaScript ).

If I need a label for ExitLoop, then it can always be made a special variable.

@Vadim:

It seems to me that the loop in VisualNEO Win is more logical than in JavaScript ).

You may be right, but I have always avoided using "loop counter variables" for my own logic.

If I need a label for ExitLoop, then it can always be made a special variable.

Conversely, in your application, you can just use a special variable ...

SetVar "[currentIteration]" "[i]"

... at the start of the your Loop/EndLoop code block :-))

 

 

 

I agree with you! However, it seems to me that it will be better if the syntax (VisualNEO Win and VisualNEO Web) will be as similar and simple as possible. Two products, but one programming language :)

Necesito pasar los valores pasados en una cadena JSON de una base de datos a las variables conbinadas y no puedo hacerlo con el ejemplo brindado por Luis

Mi pregunta es como seria la sintaxis dentro del Loop?

[DeudaTotal] = 0

Loop 0 [LargoJson] [x]
neoSetVar [num] "[x]"
neoSetVar [testvar(num)] "[Arr(num)('Valor')]"
neoGetVar [myvar] [testvar(num)]
Math "[DeudaTotal]+[myvar]" 0 [DeudaTotal]
endloop

@gustavo1973 yo creo que confundes variables combinadas, arrays y objetos JSON.
Por favor abre otro hilo diferente y tratamos de solucionarlo. Gracias!

@gaev, @vadim I have finaly managed to create new GetCompVar and SetCompVar commands with this syntax:

SetVar [num] "1"
SetVar [num2] 2
SetCompVar [testvar[num][num2]] "Hi! It works"
GetCompVar [myvar] [testvar[num][num2]]
AlertBox "Variable value:" "[myvar]" ""

Next version will add this enhancement.

Regards.

I have finaly managed to create new GetCompVar and SetCompVar commands with this syntax:

Oh, that's great !!! Wonderful!!! Thank you very much!!!

PreviousPage 2 of 2