Help with mathematical script please - Forum

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

Help with mathematical script please

Hi guys

I want help with mathematical script please. I have TextEntry1, TextEntry2, TextEntry3 and a "Calculate" button.

If i entered the number "1001" into TextEntry1 and the number "2000" into TextEntry2, and i click the "Calculate" button, the result must be "1000" in TextEntry3.

How do i count from whatever number i insert into TextEntry1 to TextEntry2?

Thank You

 

@impactband4u

Short Answer:

Math "[TextEntry2] - [TextEntry1] + 1" "0" "[TextEntry3]"

Assumption:

[TextEntry1] and [TextEntry2] are restricted to being decimal numbers i.e. ...

  • 0 to 9
  • no signs
  • no decimals
  • [TextEntry2] greater than [TextEntry1]

Let me know if assumptions are not correct.

luishp has reacted to this post.
luishp

@gaev

Thank you gaev, the + 1 did it. May brain was being tired after working long hours on script and for some reason i couldn't worked it out : )

Greetings

Take a look this link for a very complex calculations....

 

https://archive.visualneo.com/viewtopic.php?p=11189333&hilit=neoucalc#p11189333

 

My hyperdevaluated cent,