Tom,

 

This takes a little extra programming in the code that takes the keystrokes
and appends the character pressed.  What you have to do with spaces is set a
flag in a variable that tells your code that the next time you get a
non-space character to do SET VAR vtext = (.vtext&'whateverletter') - note
the ampersand instead of the plus.  You also need to reset the flag
variable.

 

If vreturnstring is your text variable, then in the on-key-pressed eep for
the spacebar:

 

SET VAR vspacebar INTEGER = 1

RETURN

 

For other keys:

 

SET VAR vspacebar INTEGER

IF vspacebar = 1 THEN

  SET VAR vreturnstring = (.vreturnstring&[whateverkeywaspressed])

  SET VAR vspacebar = 0

ELSE

  SET VAR vreturnstring = (.vreturnstring+[whateverkeywaspressed])

ENDIF

RETURN

 

Now, the shortcoming of that approach is two spacebar presses in a row will
not be captured . so you might need a variable to indicate the number of
spaces and then concatenate (CHAR(32)) the appropriate number of iterations
instead of using the '&'.

 

Emmitt Dove

Manager, Converting Applications Development

Evergreen Packaging, Inc.

[email protected]

(203) 214-5683 m

(203) 643-8022 o

(203) 643-8086 f

[email protected]

 

From: [email protected] [mailto:[email protected]] On Behalf Of TOM HART
Sent: Wednesday, February 04, 2009 4:35 PM
To: RBASE-L Mailing List
Subject: [RBASE-L] - Re: Touch Screens

 

Yes I have done set var vtext = (.vtext+'whateverletter') and this works,
but how do I add a space like Tom Hart, it seems to truncate the space and
return TomHart.


 

 

  _____  

From: "[email protected]" <[email protected]>
To: RBASE-L Mailing List <[email protected]>
Sent: Wednesday, February 4, 2009 2:59:04 PM
Subject: [RBASE-L] - Re: Touch Screens

I've never done this, but wouldn't you just initialize a variable (such as
vString TEXT = NULL).   Each key on the MDI form would probably run a custom
form action passing in the letter pressed.  That custom form action would
concatenate onto the last vString   (vString + .vLetterPressed).    When
you're done, then your calling form would be able to read the vString
variable.

Karen




Dan,
     I have worked on a keyboard form that runs as MDI, but I'm not sure how
to pass parameters back to the field.  I can make it work if I put the
keyboard on the form itself, but I don't work with MDI much.  Any help would
be appreciated.
Tom





 

Reply via email to