This might work:
Assign the memo field a component id such as cZHoursCurr
SET VAR vLength INTEGER, vText TEXT, vMessage TEXT
GETPROPERTY cZHoursCurr TEXTVALUE "vText"
SET VAR vZHoursCurr = (.vText))
RECALC VAR
I don't think you need the REFRESHLIST, but ...
Albert
On 2016-05-10 7:46 PM, tfred wrote:
Is there a good way to count the characters in a text while typing in
DB Memo? Effects> Max Length can limit Text to 500 characters. I need
some way to tell a user they are coming close to their 500 limit.
This code will do that when I first enter a field and all the other
EEP options except On Key Press :
SET VAR vZHousCurr = (SLEN(.vZHousCurrLivNote))
RECALC VARIABLES
PROPERTY vZHousCurr REFRESHLIST 'True'
vZHousCurr gives an integer which the user can see. Putting this code
in On Key Press simply adds characters but does not return a value.
Adding Saverow creates a long delay. Click to another field and
returning gives an immediate correct response since it is an Enter
EEP. I assume On Key Press fires whenever I hit a text key. I use On
Key Press regularly as part the Keyword process in EEPs to search
column data, never used it for text like this. What am I missing?
Tom Frederick
--
You received this message because you are subscribed to the Google
Groups "RBASE-L" group.
To unsubscribe from this group and stop receiving emails from it, send
an email to rbase-l+unsubscr...@googlegroups.com
<mailto:rbase-l+unsubscr...@googlegroups.com>.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups
"RBASE-L" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to rbase-l+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.