
LEFT AND RIGHT ARROWS TO CHANGE SORT ORDER
Hi Andrew
In this case I'll be using:
Alias(RightKey,CtrlTab)
Alias(LeftKey,CtrlShiftTab)
it works fine:
but I'll be using your example for some other needs.
thanks for your answer
Alfredo.
Hi Alfredo,
I did something similar so try the following.
Define a local variable called CurrentSort (or something else) as a byte.
Set the initial value to 1.
On the browse actions, conditional behavior, instead of having
"CHOICE(?CurrentTab) = " put in "CurrentSort=1" and then the first index.
The "CurrentSort=2" and the 2nd index etc.
On the browse define left and right keys as alert keys. In the alertkey
embed for the browse enter:
IF keycode()=LeftKey AND CurrentSort > 1
CurrentSort = CurrentSort - 1
BRW1.Reset(True)
CYCLE
ELSIF keycode()=RightKey AND CurrentSort < 4 !Or whatever your max is
CurrentSort = CurrentSort + 1
BRW1.Reset(True)
CYCLE
END
> I have a browse table with 4 indexes (tabs).
> Instead of clicking the mouse on the tabs I need to do it with the left
and
> right arrows on the keyboard.
> Do you know how to do it ?