on 2006 May 12 11:21 AM
Hi,
I wanted to check a particular value for the correctness of computation. I tried to use CHEGUI for that. I declared a variable of type P and did the calculation. Then I used CHEGUI to compare the values. The problem is that, The output looks something like : 5,00,000.00. It has to be like that (separated by commas). But the script failed as the expected value which I passed doesn't have any commas. How can I solve this issue.
Thanks and Regards,
Help others by sharing your knowledge.
AnswerRequest clarification before answering.
Hello Jubish,
I would use the following procedure:
1. Use a GETGUI instead of the CHEGUI command. The GETGUI command will only read the value from the screen during runtime and do no check at all.
2. Define a parameter of type P which will later-on hold the real value during runtime (read via GETGUI).
3. Supply this parameter to the GETGUI command in the node "Value".
4. During runtime the real value will be read from the screen and put into the parameter supplied in 3. While putting the value into this parameter eCATT does the conversion into type P automatically, so the parameter should afterwards hold the value in the correct format.
5. Define another parameter of type P which holds the value to check against.
6. Compare the values of the two parameters in a CHEVAR command.
This should do the trick. If not, please come back to me and I will take a closer look at the problem.
Best regards,
Markus
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.