469,081 Members | 1,808 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,081 developers. It's quick & easy.

MSH Flexgrid Control, Copying Contents to Clipboard.

I'm trying to select, with the mouse, a cell within a flexgrid that I've
created, and copying the contents of that cell to the clipboard. I've tried
using the Mousecol and Mouserow properties to return the cell col and row
index, but It doesn't seem to RETURN the cell ID but needs an argument
identifying, seemingly the col and row repectively. Here's the test routine
I set up just to see how the mousecol property worked but it genterates the
"Argument not optional" error. How do you return the row and col index
after a mouseclick?

Private Sub gridmain_Click()
Rem frm_crysalis.gridmain.Col = 7
Rem frm_crysalis.gridmain.Row = 1
Text1 = Str$(frm_crysalis.gridmain.MouseCol)

Text2 = Str$(frm_crysalis.gridmain.MouseRow)
frm_crysalis.gridmain.Col = 1
frm_crysalis.gridmain.Row = 1

frm_crysalis.gridmain.Text = Text1
frm_crysalis.gridmain.Col = 1
frm_crysalis.gridmain.Row = 2
frm_crysalis.gridmain.Text = Text2
frm_crysalis.gridmain.Text = frm_crysalis.gridmain.Col
End Sub
Jul 17 '05 #1
1 5493
Never mind. I was trying to make it too difficult. It shouldn't be

frm_crysalis.gridmain.MouseCol

but

frm_crysalis.gridmain.Col

Dumb of me. Thanks anyway. -Carl

"Carl" <do****@enter.net> wrote in message
news:6C*************@monger.newsread.com...
I'm trying to select, with the mouse, a cell within a flexgrid that I've created, and copying the contents of that cell to the clipboard. I've tried using the Mousecol and Mouserow properties to return the cell col and row
index, but It doesn't seem to RETURN the cell ID but needs an argument
identifying, seemingly the col and row repectively. Here's the test routine I set up just to see how the mousecol property worked but it genterates the "Argument not optional" error. How do you return the row and col index
after a mouseclick?

Private Sub gridmain_Click()
Rem frm_crysalis.gridmain.Col = 7
Rem frm_crysalis.gridmain.Row = 1
Text1 = Str$(frm_crysalis.gridmain.MouseCol)

Text2 = Str$(frm_crysalis.gridmain.MouseRow)
frm_crysalis.gridmain.Col = 1
frm_crysalis.gridmain.Row = 1

frm_crysalis.gridmain.Text = Text1
frm_crysalis.gridmain.Col = 1
frm_crysalis.gridmain.Row = 2
frm_crysalis.gridmain.Text = Text2
frm_crysalis.gridmain.Text = frm_crysalis.gridmain.Col
End Sub

Jul 17 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

8 posts views Thread by John Smith | last post: by
4 posts views Thread by Jason Sobell | last post: by
7 posts views Thread by VoTiger | last post: by
19 posts views Thread by Jeff | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.