Well, according to the documentation you can specify a conversion code:
<<A,PROCESS?,(MCU)>>
which should apply the conversion code to the input value, but which appears not to work. I found a few problems with this:
1. The section of code within the engine that performs this iconv, won't work as the compiler optimizes out the result, because
2. The result is never used and goes out of scope, i.e. the iconverted value is never used to replace the original value, which
3. Means that later comparisons only use the original value.
All this, to me, translates into conversion codes within inline prompts being totally useless.
If I remove compiler optimization, the code now works, however not in the manner one would think. If the MCU operation fails for some reason, you are reprompted (similar to if you didn't match a pattern). If the MCU operation succeeds, then you simply continue on, WITHOUT saving the results of the MCU operation. So you are still left with the original input value. Future comparisons for uppercase characters still fail.
I'm not sure what to make of this; it either appears to be a bug as it makes no sense for a conversion to be applied to an input without retaining its results, or it is implemented correctly in that if the input value converts successfully, you go on. But a conversion from lowercase to uppercase DOES succeed, but you still have the original lowercase value to work with because the conversion result was never saved.
With the current setup, there is no way to convert the inline prompt to upper case and retain that conversion. In any case, the code as written won't work because the compiler optimizer always makes the conversion successful.
Just my $.02
Hope this helps. Glenn
At 03:00 PM 8/11/2004, you wrote:
For example:
0001: PA 0002: DISPLAY 0003: * <<A,PROCESS?>> 0004: DISPLAY 0005: IF <<PROCESS?>> = 'Y' THEN GO 10: 0006: GO OUT: 0007: 10 * 0008: DISPLAY YES IT WORKED 0009: OUT: DISPLAY Bottom at line 9
How can I upcase the <<PROCESS?>> ?
This is for UV
George ------- u2-users mailing list [EMAIL PROTECTED] To unsubscribe please visit http://listserver.u2ug.org/
"In the end, it all boils down to a big mess of 1's and 0's..." - unknown
Glenn M. Herbert - Development Engineer, DSEngine / Connectivity Group
[EMAIL PROTECTED], Westboro, Ma. 01581 (508) 599-7281
Ascential Software - Profit from Intelligent Information -------
u2-users mailing list
[EMAIL PROTECTED]
To unsubscribe please visit http://listserver.u2ug.org/
