Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

browse fields

Status
Not open for further replies.

foxfire

Programmer
May 18, 2001
38
US
I hope this is a simple question. I use the following code to show a browse window to allow a user to pick a choice:

DEFINE WINDOW wzlocate FROM 1,1 TO 30,20;
SYSTEM GROW CLOSE ZOOM FLOAT FONT "MS Sans Serif",8
MOVE WINDOW wzlocate CENTER
on key label rightmouse keyboard "{Ctrl+END}"
BROWSE FIELDS date ;
WINDOW wzlocate NOEDIT NODELETE ;
NOMENU TITLE 'Choose-Left click, Close-Right click'
on key label rightmouse
RELEASE WINDOW wzlocate

This is simple code from my 2.6 days. Problem is, in visual, when you right click, it selects the record you are on as well as closes my window. In 2.6, the right click just closed the window. With my users use to the 2.6 workings, I wanted so see if I could get visual to work the same way.
Thanks
 
FoxFire

A little adjustment can do the trick. You open the table in question again. For example
USE myTable ORDER myOrder AGAIN IN 0 ALIAS myTable1

Now when you call the browse, use this myTable1. This will not change the record pointer of myTable and will only change that of myTable1. This will be handly to get values also.

:)

ramani :)
(Subramanian.G),FoxAcc, ramani_g@yahoo.com

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top