Search found 54 matches

by JoséQuintas
Fri Jan 24, 2025 12:44 pm
Forum: FiveWin for Harbour/xHarbour
Topic: xbrowse, dbf and codeblock
Replies: 9
Views: 255

Re: xbrowse, dbf and codeblock

Another thing is a visible bug on xbrowse.


xControl:bSkip := {| n | ( xControl:cAlias )->( DbSkipper( IfNil( n, 1 ) ) ) }


Xbrowse requires to skip NIL records.
When xbrowse requires NIL records, it is needed to change to 1.


METHOD Skip( n ) CLASS TXBrowse

local nStart
local nSkipped ...
by JoséQuintas
Thu Jan 23, 2025 3:32 pm
Forum: FiveWin for Harbour/xHarbour
Topic: xbrowse, dbf and codeblock
Replies: 9
Views: 255

Re: xbrowse, dbf and codeblock

Extra comment:

May be this expains why a external database works, and internal may not.
As example using mysql.

Internal

WITH OBJECT xbrowse
:bGoTop := { || :Rs:MoveFirst() } // may use wrong object, anything:Rs:MoveFirst()
ENDWITH


External

WITH OBJECT xBrowse
:bGoTop := RS:MoveNext ...
by JoséQuintas
Thu Jan 23, 2025 2:42 pm
Forum: FiveWin for Harbour/xHarbour
Topic: xbrowse, dbf and codeblock
Replies: 9
Views: 255

Re: xbrowse, dbf and codeblock

Yes
It is it !
Harbour behaviour using WITH OBJECT !
Check this code:


#include "hbclass.ch"

PROCEDURE Main()

LOCAL a, b, x

SetMode(30,100)
CLS

a := AnyClass():New()
b := AnyClass():New()

WITH OBJECT a
:Value := 10
x := { || :Value } // created here, seems a:Value
ENDWITH
WITH ...
by JoséQuintas
Thu Jan 23, 2025 2:17 pm
Forum: FiveWin for Harbour/xHarbour
Topic: xbrowse, dbf and codeblock
Replies: 9
Views: 255

Re: xbrowse, dbf and codeblock

On a first momment anything is wrong.

WITH OBJECT xControl
:SetRdd()
:bGoTop := {|| ( :cAlias )->( DbGoTop() ) }
:bGoBottom := {|| ( :cAlias )->( DbGoBottom() ) }
:bSkip := {| n | ( :cAlias )->( DbSkipper( IfNil( n, 1 ) ) ) }
:bBof := {|| ( :cAlias )->( Bof() ) }
:bEof := {|| ( :cAlias ...
by JoséQuintas
Thu Jan 23, 2025 12:28 pm
Forum: FiveWin for Harbour/xHarbour
Topic: xbrowse, dbf and codeblock
Replies: 9
Views: 255

Re: xbrowse, dbf and codeblock


XBrowse automatically generates all navigation codeblocks internally and correctly for all known datasources like arrays, hashes, dbf, ado-recordsets and all other known classes.
Please do not write our own navigation codeblocks.


Yes, for a standard navigation.
What to do when I need a not ...
by JoséQuintas
Thu Jan 23, 2025 1:49 am
Forum: FiveWin for Harbour/xHarbour
Topic: xbrowse, dbf and codeblock
Replies: 9
Views: 255

xbrowse, dbf and codeblock

https://i.postimg.cc/rwfBf0pC/xbrowse.png

Using DBF.
When define a codeblock for skip, xbrowse update fail.


@ 70, 10 XBROWSE xControl ;
DATASOURCE Alias() ;
SIZE nDlgWidth - 24, nDlgHeight - 100 PIXEL ;
OF xDlg ;
ON DBLCLICK ( (nRow), (nCol), (nFlags), FWBrowseENTER( xDlg, xControl ...
by JoséQuintas
Mon Jan 13, 2025 10:19 pm
Forum: FiveWin for Harbour/xHarbour
Topic: SAY with FLAT border
Replies: 1
Views: 362

SAY with FLAT border

Found on TSay manual l3D

Code: Select all | Expand

   @ 10, nCol SAY xLabel VAR cFilter OF xDlg PIXEL ;
      SIZE 500, nRowSize FONT oFont COLOR CLR_BLACK, CLR_WHITE TRANSPARENT BORDER
   xLabel:l3D := .F.
How to do a FLAT BORDER ?
by JoséQuintas
Wed Jan 08, 2025 3:13 pm
Forum: FiveWin for Harbour/xHarbour
Topic: xbrowse, bkeydown and number
Replies: 2
Views: 417

xbrowse, bkeydown and number


:bKeyDown := { | nKey | FWBrowseKey( xDlg, xControl, nKey, ... ) }



CASE IsRange( nKey, 32, 127 )
cFilter += Upper( Chr( nKey ) )


If type letters ok
if type numbers from normal keyboard ok
if type numbers from numeric keyboard not
Is it expected ?

Note:
1 from normal keyboard returns ...
by JoséQuintas
Wed Jan 08, 2025 3:13 pm
Forum: FiveWin for Harbour/xHarbour
Topic: xbrowse, bkeydown and number
Replies: 1
Views: 168

xbrowse, bkeydown and number

Code: Select all | Expand

      :bKeyDown := { | nKey | FWBrowseKey( xDlg, xControl, nKey, ... ) }

Code: Select all | Expand

   CASE IsRange( nKey, 32, 127 ) 
      cFilter += Upper( Chr( nKey ) )
If type letters ok
if type numbers from normal keyboard ok
if type numbers from numeric keyboard not
What to do about this?
by JoséQuintas
Mon Dec 30, 2024 2:10 pm
Forum: FiveWin for Harbour/xHarbour
Topic: Browse of my ADO Class
Replies: 59
Views: 9820

Re: Browse of my ADO Class

Thanks.

A good option would be an interface like Navigator (Edge/Chrome/Text Editor) with the dialogs.
Not sure if this can be done with folderex, inserting any dialog as part of folderex.
by JoséQuintas
Mon Dec 30, 2024 1:52 pm
Forum: FiveWin for Harbour/xHarbour
Topic: Lost connection to MySQL server during query
Replies: 40
Views: 16852

Re: Lost connection to MySQL server during query

I have this error on some situations:

1) On machine with ODBC 3.51
Same query ok on ODBC 5.3 returns that message on ODBC 3.51

2) When update from MySQL 5.6 TO 5.7
I was using INNER JOIN between INT and VARCHAR ( 1 and 0000001 ), this was ok on 5.6.
From 5.7 this is a problem, that requires ...
by JoséQuintas
Fri Dec 27, 2024 5:07 pm
Forum: FiveWin for Harbour/xHarbour
Topic: Browse of my ADO Class
Replies: 59
Views: 9820

Re: Browse of my ADO Class

ALL OF THIS POST TOGETHER

Remembering that I use GTWVG as primary library.
This is ONE OF my browse calls, change one column for FIVEWIN:

METHOD GridSelection( nType ) CLASS JPCADASTROClass

LOCAL oTBrowse, cnSQL := ADOLocal()

hb_Default( @nType, 0 )

WITH OBJECT cnSQL
:cSQL := "SELECT ...
by JoséQuintas
Mon Dec 23, 2024 1:02 am
Forum: FiveWin for Harbour/xHarbour
Topic: Browse of my ADO Class
Replies: 59
Views: 9820

Re: Browse of my ADO Class

I can't discuss this with you. When you have a powerful DEMO in FIVEWIN,

Do you understand that this is a FIVEWIN module ?


#include "fivewin.ch"

PROCEDURE Test_MBrowse

USE dbproduct
BROWSE()
CLOSE DATABASES

RETURN


check fivewin\samples\browse.prg

It is a sample, a simple sample.
Use ...
by JoséQuintas
Sun Dec 22, 2024 9:26 pm
Forum: FiveWin for Harbour/xHarbour
Topic: Browse of my ADO Class
Replies: 59
Views: 9820

Re: Browse of my ADO Class

GTWVG?? What is that? I have no idea how to compile this thing. It doesn't even make sense to me, knowing how to program in PURE FIVEWIN, why would I mix something prehistoric with something as modern and powerful as FIVEWIN? I'm sorry, I don't use CONSOLE MODE under any circumstances.

GTWVG uses ...
by JoséQuintas
Sat Dec 21, 2024 8:52 pm
Forum: FiveWin for Harbour/xHarbour
Topic: Browse of my ADO Class
Replies: 59
Views: 9820

Re: Browse of my ADO Class

3 new calls:


PROCEDURE Main()

Set( _SET_CODEPAGE, "PTISO" )
SET EXCLUSIVE OFF
fw_SetTruePixel( .T. )
RunModuleAsThread( { || test_Module() } )
RunModuleAsThread( { || test_Module() } )
RunModuleAsThread( { || Test_MBrowse() }, .F. )
RunModuleAsThread( { || Test_MBrowse() }, .F ...