For Programmers: Free Programming Magazines  


Home > Archive > PowerBuilder > July 2004 > Capture "PASTE" from right clicked Pop up menu in datawindow









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

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

2004-07-23, 3:57 pm

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
Philip Salgannik

2004-07-24, 3:56 am

Set the limit property on the column?

--
__
"Gurinder" <hi_bonjour@hotmail.com> wrote in message
news:b653f2fc.0407230656.3d1144ff@posting.google.com...
> 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



Gurinder

2004-07-28, 9:07 pm

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


"Philip Salgannik" <philemaxNOSPAM@comcast.net> wrote in message news:<UcmMc.153630$IQ4.84675@attbi_s02>...[color=darkred]
> Set the limit property on the column?
>
> --
> __
> "Gurinder" <hi_bonjour@hotmail.com> wrote in message
> news:b653f2fc.0407230656.3d1144ff@posting.google.com...
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com