472,119 Members | 1,814 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,119 software developers and data experts.

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 5617
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
reply views Thread by leo001 | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.