Discussion:
How to prevent moving on to the next column in a grid?
(too old to reply)
damezumari
2010-05-12 07:05:32 UTC
Permalink
I use vf9 sp2 and winxp.

I have a grid based on a view. The columns who all have text bloxes
are based on fields with width 1. When I enter a character in a column
it automatically moves to the next column. That is fine for all, but
one column. How do I prevent it from moving on to the next column for
this special case?

I have tried changing the field width to 2 in the table and view and I
have also tried to change the special column's text1.MaxLength to 2.

Regards,

Jan Nordgreen
Jürgen Wondzinski
2010-05-12 07:48:02 UTC
Permalink
Hi Jan,

maybe SET CONFIRM ON will help.
--
wOOdy
Visual FoxPro Evangelist
Microsoft "Most Valuable Professional" 1996 to 2009



"*´¨)
¸.·´¸.·*´¨) ¸.·*¨)
(¸.·´. (¸.·` *
..·`.Visual FoxPro: It's magic !
(¸.·``··*
damezumari
2010-05-18 02:34:15 UTC
Permalink
Post by Jürgen Wondzinski
Hi Jan,
maybe SET CONFIRM ON will help.
--
wOOdy
Visual FoxPro Evangelist
Microsoft "Most Valuable Professional" 1996 to 2009
"*´¨)
¸.·´¸.·*´¨) ¸.·*¨)
(¸.·´. (¸.·` *
..·`.Visual FoxPro: It's magic !
(¸.·``··*
Hi Jürgen,

I used SET CONFIRM OFF in the text box' LostFocus event and SET
CONFIRM ON in the When event.

It worked like a charm!

Thank you!

Regards,

Jan

Al Marino
2010-05-12 11:29:22 UTC
Permalink
try "return .f." in LostFocus

al
Post by damezumari
I use vf9 sp2 and winxp.
I have a grid based on a view. The columns who all have text bloxes
are based on fields with width 1. When I enter a character in a column
it automatically moves to the next column. That is fine for all, but
one column. How do I prevent it from moving on to the next column for
this special case?
I have tried changing the field width to 2 in the table and view and I
have also tried to change the special column's text1.MaxLength to 2.
Regards,
Jan Nordgreen
Continue reading on narkive:
Loading...