Input foobar "Enter Value -> "
Joe Chasan
joe at magnatechonline.com
Thu Mar 21 07:39:44 PDT 2013
On Thu, Mar 21, 2013 at 09:46:53AM -0400, GCC Consulting wrote:
> Question:
>
> Can one prefill a value in an input statement with a default value?
thats what "input popup" is for.
that being said, i ran into an undocumented limit of 77 characters in
input popup so i had to solve this with regular input command once before.
do it with pushkey.
in the below example, dummy variable 'em' holds a default email address:
pushkey mid(em,"2","999") { repeat("[LTAB]","60") & "[INSC]" & mid(em,"1","1") & "[CLFT]"
input em "Enter email address: "
the mess with LTAB/INSC/CLFT was so that I could both put the cursor in the
beginning of the field at input and handle a default value that was the
maximum length of the field. Thanks to ken on this one as i mistakenly
thought a simple [HOME] key would do the trick but it isn't respected by
input command.
--
-Joe Chasan- Magnatech Business Systems, Inc.
joe - at - magnatechonline -dot- com Hicksville, NY - USA
http://www.MagnatechOnline.com Tel.(516) 931-4444/Fax.(516) 931-1264
More information about the Filepro-list
mailing list