Entering trailing spaces on a collector window (General)
At 29 FEB 2008 06:38:20PM Joshua Saks wrote:
In Arev 3.12, I need to enter data that might have trailing spaces. While still on the field, the trailing spaces are there. When leaving the field, the trailing spaces are lost. Can anyone help me?
At 03 MAR 2008 08:33AM Aaron Kaplan wrote:
You're going to have to whip up a bit of code to handle this.
On a post prompt, check WC_SCRIBE_STATE%. SS.POS from SCRIBE.STATE.CONSTANTS (field 6 ) will contain the position of the cursor when the prompt was exited. You can use this to pad out the contents, which should be in WC_IS%.
This is a best case though, because if the user is not on the last position, you won't know what was there before. However, you might be able to store the previous value and do some comparisons.
If you can't guarantee the cursor position, then you'll need to use the REPLACE.SCRIBE option, which basically entails writing your own scribe. See the Scribe Replace Process for Prompts (TB#80) article in the knowledgebase for more information. 3.12 has a scribe option, so you can put this in direct in paint.
Unfortunately, the article doesn't go indepth on how to use scribe. The scribe documentation might be in the ARev Developers Series, but I don't remember off hand.
I know it was on the UTILITY disk and in UTILITY.PROGS, if you have that. It shipped with ARev 1, but many systems have it in the UTILITY or UTILS volume off REVBOOT.