Capture "PASTE" from right clicked Pop up menu in datawindow

Capture "PASTE" from right clicked Pop up menu in datawindow

Post by hi_bonjou » Sat, 24 Jul 2004 23:56:14

Hi,
I am trying to validate a text in a datawindow column after the user
pastes from the clipboard using 'PASTE' from the popup right click
menu. I can handle cntrl+V.. no problem.

The reason I want to do is that my column is 800 bytes long. We want
to alert the user if he paste a string which is more than 800 bytes.

Thanks,
Gurinderjit

 
 
 

Capture "PASTE" from right clicked Pop up menu in datawindow

Post by Philip Sal » Sun, 25 Jul 2004 14:12:20

Set the limit property on the column?

--
__

 
 
 

Capture "PASTE" from right clicked Pop up menu in datawindow

Post by hi_bonjou » Wed, 28 Jul 2004 01:16:10

Thanks Philip,

Actually the I had limmit property set to the col size ( by default)
But that doesn't warn the user if he cuts a text greater than the col
size that the EXTRA text will not be saved in database.
Anyways, I put limit = 0 And captured the dw validation in itemerror
even and after warning the user reset the text to the col size.

This works fine.

Thanks,
Gurinder