The “Hamilton Two-Step” b Bruce A. Chitiea SafeSectors, Inc. 112 Harvard Ave #272 | Claremont CA 91711-4716 USA (909) 238-9012 m | [email protected] On Oct 12, 2021, 10:08 -0700, Doug Hamilton <[email protected]>, wrote: > Got it: > Rows of data are displayed in an Enhanced DBGrid, the column of interest to > capture to the clipboard is Item Code. > In Variables for the form, I define vItem = Item to automatically capture the > Item Code into a variable regardless of which column I click in theDB Grid. > I locate a Variable Edit for vItem on the form, component ID is cidvItem; it > gets populated with the current row Item Code. > In an On DBGridCellClick EEP, I have: PROPERTY cidvItem COPYTOCLIPBOARD > 'True'. > > I also placed the VariableEdit "behind" the DB grid so user doesn't even see > it or have a chance to muck around with it; also set the variable edit to > Read Only. > > Voila! > > Doug > > On 10/12/2021 11:11 AM, Doug Hamilton wrote: > > Well, I think that puts the cell value into a variable, not the clipboard, > > which is where it ultimately needs to be. > > And that's the first step of what Buddy suggested also. > > Then, per Buddy: "Have an variable edit control for the getproperty varname > > then copy to clipboard." > > > > So at this point it look like a two step process. > > > > A possible alternative to the first step is to define a variable > > expression, vItem = Item, display vItem in a variable edit control > > and then use PROPERTY <Component ID> COPYTOCLIPBOARD 'TRUE' in an on-click > > EEP in the DBgrid. > > > > I placed a variable edit for vItem on the form and it displays the item > > code of the focused row (good) but but the PROPERTY did not copy it to the > > clipboard. > > > > Back to the drawing board. > > Doug > > > > On 10/12/2021 10:33 AM, Bruce Chitiea wrote: > > > If it does what it looks like it does, gonna be needing this myself: > > > > > > GETPROPERTY cid_grid_exampleName CURRENTCELLVALUE 'varname' > > > > > > (R:DOCS) > > > > > > b > > > > > > Bruce A. Chitiea | SafeSectors, Inc. > > > 112 Harvard Ave #272 | Claremont CA 91711-4716 | USA > > > [email protected] | +011 (909) 238-9012 c | +011 (909) 912-8678 f > > > > > > > > > ------ Original Message ------ > > > From: "Doug Hamilton" <[email protected]> > > > To: "R:Base List" <[email protected]> > > > Sent: 10/11/2021 9:43:24 PM > > > Subject: [RBASE-L] - How to copy from a DBGrid cell? > > > > > > > How do I copy a text value from a DBGrid cell to the clipboard? > > > > Equivalent to Ctrl-C so it can be pasted into another window for > > > > mainframe inquiry. > > > > > > > > PROPERTY <Component ID> COPYTOCLIPBOARD 'SELECTED' only works for > > > > Edit, Memo, Image, and Rich Text controls. > > > > > > > > Doug > > > > > > > > -- This email has been checked for viruses by Avast antivirus software. > > > > https://www.avast.com/antivirus > > > > > > > > -- For group guidelines, visit > > > > http://www.rbase.com/support/usersgroup_guidelines.php > > > > --- You received this message because you are subscribed to the Google > > > > Groups "RBASE-L" group. > > > > To unsubscribe from this group and stop receiving emails from it, send > > > > an email to [email protected]. > > > > To view this discussion on the web visit > > > > https://groups.google.com/d/msgid/rbase-l/473b7da7-76f9-b77f-7b49-f9175caaf412%40wi.rr.com. > > > -- > > > For group guidelines, visit > > > http://www.rbase.com/support/usersgroup_guidelines.php > > > --- > > > You received this message because you are subscribed to the Google Groups > > > "RBASE-L" group. > > > To unsubscribe from this group and stop receiving emails from it, send an > > > email to [email protected]. > > > To view this discussion on the web visit > > > https://groups.google.com/d/msgid/rbase-l/em05c8b539-02b3-4861-8092-b391c921397a%40pathfinder. > > > > > > > > This email has been checked for viruses by Avast antivirus software. > > www.avast.com > > > > -- > > For group guidelines, visit > > http://www.rbase.com/support/usersgroup_guidelines.php > > --- > > You received this message because you are subscribed to the Google Groups > > "RBASE-L" group. > > To unsubscribe from this group and stop receiving emails from it, send an > > email to [email protected]. > > To view this discussion on the web visit > > https://groups.google.com/d/msgid/rbase-l/6e3bbafe-90b7-edb0-95ee-3493b4f2695a%40wi.rr.com. > > -- > For group guidelines, visit > http://www.rbase.com/support/usersgroup_guidelines.php > --- > You received this message because you are subscribed to the Google Groups > "RBASE-L" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/rbase-l/df2019f3-0c45-d0fb-b77e-c47c9018b3a8%40wi.rr.com.
-- For group guidelines, visit http://www.rbase.com/support/usersgroup_guidelines.php --- You received this message because you are subscribed to the Google Groups "RBASE-L" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/rbase-l/7a30b326-1178-4542-9138-1b52145e2821%40Spark.

