Copy and Paste issue with TGET and FWMariaDb *Fixed*

User avatar
dutch
Posts: 1584
Joined: Fri Oct 07, 2005 5:56 pm
Location: Thailand
Has thanked: 4 times
Been thanked: 4 times

Copy and Paste issue with TGET and FWMariaDb *Fixed*

Post 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.
Last edited by dutch on Fri Apr 25, 2025 8:26 am, edited 1 time in total.
Regards,
Dutch

FWH 2304 / xHarbour Simplex 1.2.3 / BCC73 / Pelles C / UEStudio
FWPPC 10.02 / Harbour for PPC (FTDN)
ADS V.9 / MySql / MariaDB
R&R 12 Infinity / Crystal Report XI R2
(Thailand)
User avatar
Antonio Linares
Site Admin
Posts: 42837
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Has thanked: 170 times
Been thanked: 123 times
Contact:

Re: Copy and Paste issue with TGET and FWMariaDb

Post 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


regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
dutch
Posts: 1584
Joined: Fri Oct 07, 2005 5:56 pm
Location: Thailand
Has thanked: 4 times
Been thanked: 4 times

Re: Copy and Paste issue with TGET and FWMariaDb

Post 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


Regards,
Dutch

FWH 2304 / xHarbour Simplex 1.2.3 / BCC73 / Pelles C / UEStudio
FWPPC 10.02 / Harbour for PPC (FTDN)
ADS V.9 / MySql / MariaDB
R&R 12 Infinity / Crystal Report XI R2
(Thailand)
User avatar
ertan
Posts: 36
Joined: Wed Jul 26, 2023 12:08 pm
Location: Istanbul, Turkiye
Been thanked: 2 times

Re: Copy and Paste issue with TGET and FWMariaDb

Post 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
User avatar
dutch
Posts: 1584
Joined: Fri Oct 07, 2005 5:56 pm
Location: Thailand
Has thanked: 4 times
Been thanked: 4 times

Re: Copy and Paste issue with TGET and FWMariaDb

Post 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
Regards,
Dutch

FWH 2304 / xHarbour Simplex 1.2.3 / BCC73 / Pelles C / UEStudio
FWPPC 10.02 / Harbour for PPC (FTDN)
ADS V.9 / MySql / MariaDB
R&R 12 Infinity / Crystal Report XI R2
(Thailand)
User avatar
ertan
Posts: 36
Joined: Wed Jul 26, 2023 12:08 pm
Location: Istanbul, Turkiye
Been thanked: 2 times

Re: Copy and Paste issue with TGET and FWMariaDb

Post 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
User avatar
dutch
Posts: 1584
Joined: Fri Oct 07, 2005 5:56 pm
Location: Thailand
Has thanked: 4 times
Been thanked: 4 times

Re: Copy and Paste issue with TGET and FWMariaDb

Post 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
Regards,
Dutch

FWH 2304 / xHarbour Simplex 1.2.3 / BCC73 / Pelles C / UEStudio
FWPPC 10.02 / Harbour for PPC (FTDN)
ADS V.9 / MySql / MariaDB
R&R 12 Infinity / Crystal Report XI R2
(Thailand)
User avatar
ertan
Posts: 36
Joined: Wed Jul 26, 2023 12:08 pm
Location: Istanbul, Turkiye
Been thanked: 2 times

Re: Copy and Paste issue with TGET and FWMariaDb

Post 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
User avatar
dutch
Posts: 1584
Joined: Fri Oct 07, 2005 5:56 pm
Location: Thailand
Has thanked: 4 times
Been thanked: 4 times

Re: Copy and Paste issue with TGET and FWMariaDb

Post 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
Regards,
Dutch

FWH 2304 / xHarbour Simplex 1.2.3 / BCC73 / Pelles C / UEStudio
FWPPC 10.02 / Harbour for PPC (FTDN)
ADS V.9 / MySql / MariaDB
R&R 12 Infinity / Crystal Report XI R2
(Thailand)
User avatar
ertan
Posts: 36
Joined: Wed Jul 26, 2023 12:08 pm
Location: Istanbul, Turkiye
Been thanked: 2 times

Re: Copy and Paste issue with TGET and FWMariaDb

Post by ertan »

Hi again Dutch,

Can you send me an e-mail for testing?

Best regards,
Ertan Hakan ÖZTÜRK
ertan_ozturk@yahoo.com
User avatar
dutch
Posts: 1584
Joined: Fri Oct 07, 2005 5:56 pm
Location: Thailand
Has thanked: 4 times
Been thanked: 4 times

Re: Copy and Paste issue with TGET and FWMariaDb

Post 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
Regards,
Dutch

FWH 2304 / xHarbour Simplex 1.2.3 / BCC73 / Pelles C / UEStudio
FWPPC 10.02 / Harbour for PPC (FTDN)
ADS V.9 / MySql / MariaDB
R&R 12 Infinity / Crystal Report XI R2
(Thailand)
User avatar
ertan
Posts: 36
Joined: Wed Jul 26, 2023 12:08 pm
Location: Istanbul, Turkiye
Been thanked: 2 times

Re: Copy and Paste issue with TGET and FWMariaDb

Post by ertan »

Dear Dutch,

I sent your email.

Best regards,
Ertan Hakan ÖZTÜRK

ertan_ozturk@yahoo.com
User avatar
dutch
Posts: 1584
Joined: Fri Oct 07, 2005 5:56 pm
Location: Thailand
Has thanked: 4 times
Been thanked: 4 times

Re: Copy and Paste issue with TGET and FWMariaDb

Post 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
Regards,
Dutch

FWH 2304 / xHarbour Simplex 1.2.3 / BCC73 / Pelles C / UEStudio
FWPPC 10.02 / Harbour for PPC (FTDN)
ADS V.9 / MySql / MariaDB
R&R 12 Infinity / Crystal Report XI R2
(Thailand)
User avatar
dutch
Posts: 1584
Joined: Fri Oct 07, 2005 5:56 pm
Location: Thailand
Has thanked: 4 times
Been thanked: 4 times

Re: Copy and Paste issue with TGET and FWMariaDb

Post by dutch »

Dear Ertan,

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

Thanks in advance,
Regards,
Dutch

FWH 2304 / xHarbour Simplex 1.2.3 / BCC73 / Pelles C / UEStudio
FWPPC 10.02 / Harbour for PPC (FTDN)
ADS V.9 / MySql / MariaDB
R&R 12 Infinity / Crystal Report XI R2
(Thailand)
User avatar
ertan
Posts: 36
Joined: Wed Jul 26, 2023 12:08 pm
Location: Istanbul, Turkiye
Been thanked: 2 times

Re: Copy and Paste issue with TGET and FWMariaDb

Post by ertan »

Dear Dutch,

I try reproduce your error and analysis this with xHarbour

Best regards,

Ertan Hakan ÖZTÜRK
ertan_ozturk@yahoo.com
Post Reply