Sign up on the Revelation Software website to have access to the most current content, and to be able to ask questions and get answers from the Revelation community

At 10 AUG 2009 12:32:03PM Mat Kelly wrote:

I have an Arev32 window that contains a prompt with an attached post prompt process. This prompt is attached to a specific field, so is populated with data when the window opens. Upon entering this field, hitting Ctrl-X then enter, this field's post-prompt process behaves differently than what I expect per the same Arev31 code.

The post-prompt program does a calculation based on other fields in the window and assigns the value to WC_IS%. This value is expected to be an integer. When the calculated value is determined to be "20" and set to WC_IS%, i.e.

CALCULATEDVALUE=(some formula here)

WC_IS%=CALCULATEDVALUE

Call MSG("The value is ":CALCULATEDVALUE:", WC_IS is ":WC_IS%)

A message popup reads, "The value is 20, WC_IS is 20" but the Ctrl-X'd prompt is shown as blank in the window. When the value is set manually:

CALCULATEDVALUE=(some formula here)

WC_IS%=66

Call MSG("The value is ":CALCULATEDVALUE:", WC_IS is ":WC_IS%)

The popup reads, "The value is 20, WC_IS is 66", as expected, but the field is populated with 66.0

The field's validation pattern is (0,100) and Output Format is MD10

Additionally, if the first example above is instead:

CALCULATEDVALUE=(some formula here)

WC_IS%=CALCULATEDVALUE:" "

Call MSG("The value is ":CALCULATEDVALUE:", WC_IS is ":WC_IS%)

…the value "20 .0" is returned in the field.

How do I populate this field with the intended value of 20.0, as calculated? Are there any specific concerns with using the WC_IS% variable in Arev32?

Thanks!

View this thread on the forum...

  • third_party_content/community/commentary/forums_nonworks/b3ddc1159e23b0a78525760e005ad33b.txt
  • Last modified: 2023/12/28 07:39
  • by 127.0.0.1