FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour XBROWSE Question
Posts: 1048
Joined: Mon Oct 24, 2005 09:54 AM
XBROWSE Question
Posted: Fri Apr 05, 2019 02:16 PM
I have this code and have the problem that the cursor in cells go to next cell even the function lg_stamm_such(…) returns .F. (lValid)! I will stay on this column if lValid == .F.
Code (fw): Select all Collapse
    /*2*/ADD COLUMN TO XBROWSE oList DATA aEin[oList:nArrayat,LG_ARR_POS_FELDER,LG_FELD_PERSON,LG_ARR_POS_SUCH] SIZE 200 ALIGN CENTER EDITABLE ON EDIT ;
        {|a,x|lValid:=lg_stamm_such(clienttoscreen(oList:hWnd,{oList:aCellCoor( ,oList:mitarbeiter:nPos)[3]+2,oList:aCellCoor( ,oList:mitarbeiter:nPos)[2]}),x,@aPers,@aGer,@aKont,@aZu,1,oList:nArrayat)} HEADER "Mitarbeiter" ;
        WHEN aEin[oList:nArrayat,LG_ARR_POS_MODUS] <> LG_ARR_GERAET .and. aEin[oList:nArrayat,LG_ARR_POS_MARK]
Regards,
Günther
---------------------------------
office@byte-one.com
Posts: 1048
Joined: Mon Oct 24, 2005 09:54 AM
Re: XBROWSE Question
Posted: Sat Apr 06, 2019 08:56 AM
In other words:
Which way i can go, that after editing a cell the focus NOT automatic change to next cell?
Regards,
Günther
---------------------------------
office@byte-one.com
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: XBROWSE Question
Posted: Sat Apr 06, 2019 03:24 PM

When lFastEdit is set to .t. (or use FASTEDIT clause), after finishing the editing of a cell, the cursor goes to the next editable cell.

If lFastEdit is set to .f. (that is the default), after a cell is edited, the cursor stays in the same cell and does not move to any other cell.

bEditValid:
If bEditValid returns .f., the only way for the user to get out of the edit is to press escape. When escape key is pressed, the highlight remains on the same cell.

Note about bEditValid:
This codeblock should confine itself to validate data and return .f. or .t.. This codeblock should not make any screen i/o. In that case, results are unpredictable. That is a limitation we need to keep in mind always.

Regards



G. N. Rao.

Hyderabad, India
Posts: 1048
Joined: Mon Oct 24, 2005 09:54 AM
Re: XBROWSE Question
Posted: Sat Apr 06, 2019 06:13 PM

Thanks!!
Now after clearly, i can the problem release.

Regards,
Günther
---------------------------------
office@byte-one.com

Continue the discussion