Page 1 of 2

Copy and Paste issue with TGET and FWMariaDb *Fixed*

Posted: Mon Apr 21, 2025 2:51 am
by dutch
Dear Antonio,

I use FWH2304 with xHarbour (20221118).

I got the problem with paste from clipboard to TGET, the issue is
Problem
- paste to TGET in oRs:lastname field (MariaDb database) when it has some text in field, it cannot paste any text to.
- paste to TGET in Variable and declare from MariaDb database field, it does not work.
Works fine
- paste to TGET in oRs:lastname field with empty text, it work fine.
- paste to TGET in Variable, it work fine.

Thank you in advance for any suggestion.

Re: Copy and Paste issue with TGET and FWMariaDb

Posted: Mon Apr 21, 2025 8:21 am
by Antonio Linares
Dear Dutch,

This example is working fine here with Harbour and xHarbour, when pasting on the first GET:

modified maria02.prg

Code: Select all | Expand

#include "fivewin.ch"

static aStr := { "localhost,fwh,fivetec1_antonio,1234" }

static oCn

//----------------------------------------------------------------------------//

function Main()

   local oRs, cSql, oDlg

   FWSetLanguage( 1 )
   FW_SetUnicode( .t. )

   if ( oCn := maria_Connect( aStr[ 1 ], .t. ) ) != nil

      TEXT INTO cSql
         SELECT C.ID AS CustID, C.FIRST AS CustName, C.AGE AS AG, C.STATE AS ST, S.NAME AS StateName
         FROM customer C
         LEFT OUTER JOIN states S ON C.STATE = S.CODE
         ORDER BY CUSTID
      ENDTEXT

      oRs   := oCn:RowSet( cSql )

      DEFINE DIALOG oDlg 

      @ 1, 1 GET oRs:CustName OF oDlg 

      @ 3, 1 GET oRs:St OF oDlg 

      ACTIVATE DIALOG oDlg CENTERED

      oCn:Close()

   endif

return nil



Re: Copy and Paste issue with TGET and FWMariaDb

Posted: Tue Apr 22, 2025 12:52 pm
by dutch
Dear Antonio,

It doesn't work with FWH2304 as vdo clip.

https://streamable.com/7q7ppd


Antonio Linares wrote: Mon Apr 21, 2025 8:21 am Dear Dutch,

This example is working fine here with Harbour and xHarbour, when pasting on the first GET:

modified maria02.prg

Code: Select all | Expand

#include "fivewin.ch"

static aStr := { "localhost,fwh,fivetec1_antonio,1234" }

static oCn

//----------------------------------------------------------------------------//

function Main()

   local oRs, cSql, oDlg

   FWSetLanguage( 1 )
   FW_SetUnicode( .t. )

   if ( oCn := maria_Connect( aStr[ 1 ], .t. ) ) != nil

      TEXT INTO cSql
         SELECT C.ID AS CustID, C.FIRST AS CustName, C.AGE AS AG, C.STATE AS ST, S.NAME AS StateName
         FROM customer C
         LEFT OUTER JOIN states S ON C.STATE = S.CODE
         ORDER BY CUSTID
      ENDTEXT

      oRs   := oCn:RowSet( cSql )

      DEFINE DIALOG oDlg 

      @ 1, 1 GET oRs:CustName OF oDlg 

      @ 3, 1 GET oRs:St OF oDlg 

      ACTIVATE DIALOG oDlg CENTERED

      oCn:Close()

   endif

return nil



Re: Copy and Paste issue with TGET and FWMariaDb

Posted: Tue Apr 22, 2025 1:09 pm
by ertan
Hi Dutch,

This problem is fixed in Fivewin 25.01

Can you rebuild the fivewin libraries?

Best regards,

Ertan Hakan ÖZTÜRK
ertan_ozturk@yahoo.com

Re: Copy and Paste issue with TGET and FWMariaDb

Posted: Tue Apr 22, 2025 1:50 pm
by dutch
Dear Ertan,

Where I can fix and rebuild my library version (FWH2304)?

Thanks in advance,
ertan wrote: Tue Apr 22, 2025 1:09 pm Hi Dutch,

This problem is fixed in Fivewin 25.01

Can you rebuild the fivewin libraries?

Best regards,

Ertan Hakan ÖZTÜRK
ertan_ozturk@yahoo.com

Re: Copy and Paste issue with TGET and FWMariaDb

Posted: Tue Apr 22, 2025 2:00 pm
by ertan
Hi again Dutch,

I will check and test again before share details with Mr.Antonio Linares
The problem is in the files source\api\clpbrd.c and fwunicode.c

Best regards,

Ertan Hakan ÖZTÜRK,
ertan_ozturk@yahoo.com

Re: Copy and Paste issue with TGET and FWMariaDb

Posted: Tue Apr 22, 2025 2:07 pm
by dutch
Hi Ertan,

I found clpbrd.c, I compare with my old FW version 1901. The different is paste image only. But I cannot find fwunicode.c in anywhere.
Image
How to fix and rebuild?
ertan wrote: Tue Apr 22, 2025 2:00 pm Hi again Dutch,

I will check and test again before share details with Mr.Antonio Linares
The problem is in the files source\api\clpbrd.c and fwunicode.c

Best regards,

Ertan Hakan ÖZTÜRK,
ertan_ozturk@yahoo.com

Re: Copy and Paste issue with TGET and FWMariaDb

Posted: Tue Apr 22, 2025 2:19 pm
by ertan
Hi Dutch,

My DB Engine is MariaDB and I use always BCC with Harbour.
I need to check your problem in [x]Harbour
I need a litle time, Don't worry. Please...

unicode.c changed to fwunicode.c in fivewin 25.01

Best regards,
Ertan Hakan ÖZTÜRK,
ertan_ozturk@yahoo.com

Re: Copy and Paste issue with TGET and FWMariaDb

Posted: Tue Apr 22, 2025 2:32 pm
by dutch
Dear Ertan,

Thank you so much for your kind help. I use MariaDB too.
unicode.c changed to fwunicode.c in fivewin 25.01
I got it, thanks in advance,
ertan wrote: Tue Apr 22, 2025 2:19 pm Hi Dutch,

My DB Engine is MariaDB and I use always BCC with Harbour.
I need to check your problem in [x]Harbour
I need a litle time, Don't worry. Please...

unicode.c changed to fwunicode.c in fivewin 25.01

Best regards,
Ertan Hakan ÖZTÜRK,
ertan_ozturk@yahoo.com

Re: Copy and Paste issue with TGET and FWMariaDb

Posted: Tue Apr 22, 2025 8:24 pm
by ertan
Hi again Dutch,

Can you send me an e-mail for testing?

Best regards,
Ertan Hakan ÖZTÜRK
ertan_ozturk@yahoo.com

Re: Copy and Paste issue with TGET and FWMariaDb

Posted: Wed Apr 23, 2025 2:31 am
by dutch
Dear Ertan,

my email : dutchez4@gmail.com

Thank you,
ertan wrote: Tue Apr 22, 2025 8:24 pm Hi again Dutch,

Can you send me an e-mail for testing?

Best regards,
Ertan Hakan ÖZTÜRK
ertan_ozturk@yahoo.com

Re: Copy and Paste issue with TGET and FWMariaDb

Posted: Wed Apr 23, 2025 4:24 am
by ertan
Dear Dutch,

I sent your email.

Best regards,
Ertan Hakan ÖZTÜRK

ertan_ozturk@yahoo.com

Re: Copy and Paste issue with TGET and FWMariaDb

Posted: Wed Apr 23, 2025 8:16 am
by dutch
Dear All,

How to rebuild c file to library?

thanks in advance,
ertan wrote: Wed Apr 23, 2025 4:24 am Dear Dutch,

I sent your email.

Best regards,
Ertan Hakan ÖZTÜRK

ertan_ozturk@yahoo.com

Re: Copy and Paste issue with TGET and FWMariaDb

Posted: Wed Apr 23, 2025 9:19 am
by dutch
Dear Ertan,

I compile and rebuild to FIVEHC.LIB but the issue does not solve, still the same.

Thanks in advance,

Re: Copy and Paste issue with TGET and FWMariaDb

Posted: Wed Apr 23, 2025 10:02 am
by ertan
Dear Dutch,

I try reproduce your error and analysis this with xHarbour

Best regards,

Ertan Hakan ÖZTÜRK
ertan_ozturk@yahoo.com