index dbf character numbers

General Help regarding HMG, Compilation, Linking, Samples

Moderator: Rathinagiri

franco
Posts: 921
Joined: Sat Nov 02, 2013 5:42 am
DBs Used: DBF
Location: Canada

Re: index dbf character numbers

Post by franco »

All of these are good ideas, but What I want is to push a character,, go to that character(s) in table... browse approximately 10 in order items
in browse. If I don`t see what I want I add another character, then browse.
All The Best,
Franco
Canada
User avatar
AUGE_OHR
Posts: 2117
Joined: Sun Aug 25, 2019 3:12 pm
DBs Used: DBF, PostgreSQL, MySQL, SQLite
Location: Hamburg, Germany

Re: index dbf character numbers

Post by AUGE_OHR »

franco wrote: Wed Jun 16, 2021 5:14 pm If I don`t see what I want I add another character, then browse.
what is the Problem to "add" a Sign to String :roll:

Code: Select all

LOCAL a := "12"
LOCAL b := "3"
   ? a + b // -> "123"
as i say you have to right align and work on "last sign"

---

but that is not your Problem ... you still "think DOS"
when work with Windows you have to "think Event driven" :!:

GRID does have ONKEY Event where you get sign to SEEK
BROWSE need TEXTBOX where you can type sign and use ONCHANGE Event

Code: Select all

DEFINE GRID  Browse_1
   ONKEY Get_Num("GRID")

DEFINE TEXTBOX Text_1
   ONCHANGE Get_Num("BROWSE")
to get Event the Control must have Focus so when use BROWSE you have to switch to TEXTBOX and back when got Sign
GRID can use ONKEY Event to get Sign so leave Focus on GRID when "fill" TEXTBOX (not need for GRID )
have fun
Jimmy
Post Reply