Question about pasting a value

Question about pasting a value

Postby driessen » Wed Dec 20, 2017 2:14 pm

Hello,

Suppose I got a TGET-field with picture "99.99.99-999.99".
Suppose I copy a value from another application of website. This value looks like "99999999999".
How can this value be pasted so that the result in my TGET-field looks like "99.99.99-999.99" ?

Example : "68120509102" has to look like "68.12.05-091.02" after being pasted.

Thanks a lot in advance for any help.
Regards,

Michel D.
Genk (Belgium)
_____________________________________________________________________________________________
I use : FiveWin for (x)Harbour v. 24.02 - Harbour 3.2.0 (February 2024) - xHarbour Builder (January 2020) - Bcc77
User avatar
driessen
 
Posts: 1396
Joined: Mon Oct 10, 2005 11:26 am
Location: Genk, Belgium

Re: Question about pasting a value

Postby karinha » Wed Dec 20, 2017 3:02 pm

Maybe, using:


Code: Select all  Expand view

   oGet:cPicture:="@R 99.99.99-999.99"
   oGet:oGet:Picture:="@R 99.99.99-999.99"
   oGet:Refresh()
 


Regards.
João Santos - São Paulo - Brasil - Phone: +55(11)95150-7341
User avatar
karinha
 
Posts: 7190
Joined: Tue Dec 20, 2005 7:36 pm
Location: São Paulo - Brasil


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Otto and 10 guests