Re: How to find the column and row of a basic tableField

2020-04-04 Thread Curry Kenworthy via use-livecode
PS - Here are two word problems to view this type of algorithm in a bigger context beyond just software UI. Not too scary or difficult; our ancestors could solve similar problems, and so can kids in school. Older problem: You are in charge of preparing animal enclosures for a market. The

Re: How to find the column and row of a basic tableField

2020-04-03 Thread Bob Sneidar via use-livecode
Probably has to do with margins. Bob S On Apr 2, 2020, at 11:42 PM, Håkan Liljegren via use-livecode mailto:use-livecode@lists.runrev.com>> wrote: It works for tables with or without date but doesn’t handle tables with variable row heights as that was not the case at the moment. To get it

Re: How to find the column and row of a basic tableField

2020-04-03 Thread Håkan Liljegren via use-livecode
With risk of going slightly off-topic, but also showing yet another code example. I had exactly this problem some time ago and came up with the following solution: getProp clickedRowCol    # calc Row => TODO: Handle row with variable row heights    put the clickV - the top of me - the

Re: How to find the column and row of a basic tableField

2020-04-02 Thread Pi Digital via use-livecode
Thank you. I feel so much Better educated. (Sarcasm intended)!! Sean Cole Pi Digital ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences:

Re: How to find the column and row of a basic tableField

2020-04-02 Thread Curry Kenworthy via use-livecode
Pi: > you make these statement but give no example code to show it. This > is damned infuriating as it keeps us hunting around in the dark. On the contrary, as I've mentioned and as you know, "SEVERAL people immediately provided sample code." You were using sarcasm at the time to walk back

Re: How to find the column and row of a basic tableField

2020-04-02 Thread Pi Digital via use-livecode
Curry This winds me up a treat! Your point number 6: > It has been available as a one-line function call without rolling your own > since at least 2012 with SpreadLib. is totally unreasonable if you are claiming there IS a one line use case but ONLY if we buy into some spreadsheet library.

Re: How to find the column and row of a basic tableField

2020-04-02 Thread Curry Kenworthy via use-livecode
We don't need to confuse people - it DOES cause damage, because readers often trust confident/prolific statements without realizing which ones are flawed, and they act upon bad information. It often falls to consultants and trainers like myself to help individuals fix the resulting problems

Re: How to find the column and row of a basic tableField

2020-04-02 Thread Richmond via use-livecode
Specialising in missing the point as I do, I've posted something here: http://forums.livecode.com/viewtopic.php?f=7=33859 Richmond. On 2.04.20 1:52, Pi Digital via use-livecode wrote: Thanks Bernd. This only works if there is already data in the field. If you put empty into the field it

Re: How to find the column and row of a basic tableField

2020-04-02 Thread Niggemann, Bernd via use-livecode
Sean, The idea for the script I posted was to be independent of the Livecode provided tableField. My use case was that tab-delimited data was provided in a _regular_ field and the user clicks on a cell and the developer wants to know which cell was clicked to take action upon that

Re: How to find the column and row of a basic tableField

2020-04-01 Thread Pi Digital via use-livecode
I made two mistakes there. First: Put cRevTable[“currentxcell”],cRevTable[“currentycell”] into tCellIndex Should be: Put the cRevTable[“currentxcell”] of me , the cRevTable[“currentycell”] of me into tCellIndex And: select nothing Should be: select empty Oops Sean Cole Pi Digital

Re: How to find the column and row of a basic tableField

2020-04-01 Thread Pi Digital via use-livecode
Thanks Bernd. This only works if there is already data in the field. If you put empty into the field it produces no results. In those instances you are forced to get an x,y clickLoc and use the tabstops and textHeight to hard code the result. The revTableLibrary was last modified in 2015