Search the Community
Showing results for tags 'integer'.
Hi everyone, I am specifically looking to repeat a prompt for new variable integers X number of times. Example: The user will know how many registers they want to edit (ie. 1, 2, 3.. etc.). This will equal the number of new register numbers that need to be prompted for their values. Let's say the user wants to edit 5 registers, and their register numbers are 1, 2, 3, 98 and 99 accordingly. I need a set of commands that will prompt the user 5 times (because the macro already has this value) for a new integer variable equal to the register numbers. Repeat Start (Repeat %EditedRegisters% times) Prompt for first register number... 1 Prompt for second register number... 2 Prompt for third register number... 3 Prompt for fourth register number... 98 Prompt for fifth register number... 99 The number of register numbers changes in each instance, which is why higher in the macro there is a separate prompt that asks how many registers are being edited in total = %EditedRegisters% Does this make sense? Basically I need the macro to understand it needs to prompt X number of times based on %EditedRegisters% for new integer variables which the user will define manually through a prompt. Cheers
Hi, Is there a way to check decimal(.) in a value ? I'm capturing some values from an application and doing some calculation on it. After that i need to check if the final value consist decimal or not. I tried to convert the integer/decimal to string as well but it doesn't retains the value after decimal. Thanks in advance ! Rocki