dbTalk Databases Forums  

VFP 6.0 - unmark and edit a browse field

comp.databases.xbase.fox comp.databases.xbase.fox


Discuss VFP 6.0 - unmark and edit a browse field in the comp.databases.xbase.fox forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Bernd
 
Posts: n/a

Default VFP 6.0 - unmark and edit a browse field - 03-21-2005 , 04:23 AM






Hi,
is there a command in order to avoid to unmark a field and place the
cursor behind the last letter in an already filled field.

cus_text = C(20)
cus_no = N(5)
cus_text = 'Beispiel 1'

example: browse table.dbf field cus_text, cus_no,

the cursor marks the complete field cus_text in which i only want to
change the '1' into '2'
now i have to place the cursor behind the '1' manually and change it
into '2'

i hope that there is command, which can place the cursor automatically
behind the '1'

Any suggestions?
Thanks in advance for attention
Bernd

Reply With Quote
  #2  
Old   
Stefan Wuebbe
 
Posts: n/a

Default Re: VFP 6.0 - unmark and edit a browse field - 03-21-2005 , 08:56 AM






Hi Bernd,
If I got your description right, there is no environment setting to do
what you want, AFAIK. Aside from an Editbox control in a grid
on a form being easier to control than a Browse, how about this:
* test.prg
CREATE CURSOR theTable (theField C(10), dummy C(10))
INSERT INTO theTable VALUES ("example 1", "nothing")
KEYBOARD '{END}'
BROWSE NOWAIT

If you want to control more than only the first field right after
the Browse popping up, the :W clause of the Browse command
might help
BROWSE FIELDS theField :W=yourFunction(), dummy


hth
-Stefan



--
Quote:
\_/| ------ ProLib - programmers liberty -----------------
(.. ) Our MVPs and MCPs make the Fox run....
- / See us at www.prolib.de or www.AFPages.de
-----------------------------------------------------------



"Bernd" <bernd (AT) tronsberg (DOT) de> schrieb im Newsbeitrag
news:62d965c.0503210223.31cd0b5 (AT) posting (DOT) google.com...
Quote:
Hi,
is there a command in order to avoid to unmark a field and place the
cursor behind the last letter in an already filled field.

cus_text = C(20)
cus_no = N(5)
cus_text = 'Beispiel 1'

example: browse table.dbf field cus_text, cus_no,

the cursor marks the complete field cus_text in which i only want to
change the '1' into '2'
now i have to place the cursor behind the '1' manually and change it
into '2'

i hope that there is command, which can place the cursor automatically
behind the '1'

Any suggestions?
Thanks in advance for attention
Bernd


Reply With Quote
  #3  
Old   
Bernd
 
Posts: n/a

Default Re: VFP 6.0 - unmark and edit a browse field - 03-22-2005 , 01:42 AM



Thanks Stefan, it works.
This is exactly what I've needed.

Bernd



"Stefan Wuebbe" <stefan.wuebbe (AT) gmx (DOT) de> wrote

Quote:
Hi Bernd,
If I got your description right, there is no environment setting to do
what you want, AFAIK. Aside from an Editbox control in a grid
on a form being easier to control than a Browse, how about this:
* test.prg
CREATE CURSOR theTable (theField C(10), dummy C(10))
INSERT INTO theTable VALUES ("example 1", "nothing")
KEYBOARD '{END}'
BROWSE NOWAIT

If you want to control more than only the first field right after
the Browse popping up, the :W clause of the Browse command
might help
BROWSE FIELDS theField :W=yourFunction(), dummy


hth
-Stefan



--
|\_/| ------ ProLib - programmers liberty -----------------
(.. ) Our MVPs and MCPs make the Fox run....
- / See us at www.prolib.de or www.AFPages.de
-----------------------------------------------------------



"Bernd" <bernd (AT) tronsberg (DOT) de> schrieb im Newsbeitrag
news:62d965c.0503210223.31cd0b5 (AT) posting (DOT) google.com...
Hi,
is there a command in order to avoid to unmark a field and place the
cursor behind the last letter in an already filled field.

cus_text = C(20)
cus_no = N(5)
cus_text = 'Beispiel 1'

example: browse table.dbf field cus_text, cus_no,

the cursor marks the complete field cus_text in which i only want to
change the '1' into '2'
now i have to place the cursor behind the '1' manually and change it
into '2'

i hope that there is command, which can place the cursor automatically
behind the '1'

Any suggestions?
Thanks in advance for attention
Bernd

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.