List of Contributions

Mr. Ryan Cook

Contact Details

My Content

1 to 20 of 22 total
Posted By Ryan Cook 05-19-2023 06:06
Found In Egroup: MapInfo Pro
\ view thread
Huh - interesting, thanks for the tip! I was just coming back here to say I got it to work by floating the window then docking it again. Strange behaviour! ------------------------------ Ryan Cook ORH LTD ------------------------------
Posted By Ryan Cook 05-19-2023 05:25
Found In Egroup: MapInfo Pro
\ view thread
I have written a program in MapBasic which, at the end of it's process runs a series of checks and calculations the results of which it Prints to the Message Window for the users pleasure. The intention was that this information could, if required, be shared by copying and pasting into an email, or Excel, ...
Posted By Ryan Cook 03-22-2023 09:56
Found In Egroup: MapInfo Pro
\ view thread
I'm such a dummy - I checked every tab thoroughly except that one! All good, thanks again Peter.  ------------------------------ Ryan Cook ORH LTD ------------------------------
Posted By Ryan Cook 03-20-2023 08:46
Found In Egroup: MapInfo Pro
\ view thread
Apologies for the late reply, Peter - I have been on holiday and the reminders of this thread were pushed down the queue in my inbox. Thanks for taking a look at this. The "unsupported character set: UTF-16" error still persists (but I have found a workaround) but the odd comma problem has vanished mysteriously. ...
Posted By Ryan Cook 02-23-2023 10:50
Found In Egroup: MapInfo Pro
\ view thread
I could be going mad, or becoming incompetent in my old age, but it seems ever since the recent update I have been experiencing problems I have never come across before.  The first problem I encountered was where I exported some tables to MIF to share with our client. To check if the exports were ...
Posted By Ryan Cook 01-26-2023 06:13
Found In Egroup: MapInfo Pro
\ view thread
Ha, thanks James - so we are basically quoting the quote marks! That makes sense! ------------------------------ Ryan Cook Knowledge Community Shared Account ------------------------------ ------------------------------------------- Original Message: Sent: 01-26-2023 06:07 From: James Nolet ...
Posted By Ryan Cook 01-26-2023 05:55
Found In Egroup: MapInfo Pro
\ view thread
James - I tried entirely/partially assigning the statement to string variables and it still failed. Note, it works perfectly as intended when left as a normal query statement but I'll whack a note in there to see what is coming out it when Run Command is applied.  Peter - Thanks for the tips - I'm ...
Posted By Ryan Cook 01-25-2023 09:23
Found In Egroup: MapInfo Pro
\ view thread
Hey James, thanks for your help and for tolerating the change to my initial post - I manged to get the OgreTab query to work but the above one still eludes me, and sadly the triple quote doesn't change the outcome. I still receive the same error: Found [=] while searching for [a string constant] ...
Posted By Ryan Cook 01-25-2023 06:43
Found In Egroup: MapInfo Pro
\ view thread
A number of tools I have created help users develop workspace files with maps providing visual information based upon queries. When the workspace is closed and re-opened, these queries have vanished and the important information is lost. Ticking "save queries in workspaces" under preferences makes no ...
Posted By Ryan Cook 12-08-2022 10:25
Found In Egroup: MapInfo Pro
\ view thread
Incidentally I just removed the third delete statement Where ROWID = (nRowIDVoronoi + 1) and it works! ------------------------------ Ryan Cook Knowledge Community Shared Account ------------------------------ ------------------------------------------- Original Message: Sent: 12-08-2022 10:14 ...
Posted By Ryan Cook 12-08-2022 10:15
Found In Egroup: MapInfo Pro
\ view thread
If SelectionInfo(SEL_INFO_NROWS) = 2 Then   Dim nRowIDPolygon, nRowIDVoronoi As Integer,       oPolygon, oPoint1, oPoint2, oLine, oCutter As Object,       aObj As Alias   nRowIDPolygon = inputregionROWID   oPolygon = TargetRegion.obj   aObj = RyanRegion & ".obj"   Fetch First from RyanRegion ...
Posted By Ryan Cook 12-08-2022 10:13
Found In Egroup: MapInfo Pro
\ view thread
One sec... ------------------------------ Ryan Cook Knowledge Community Shared Account ------------------------------ ------------------------------------------- Original Message: Sent: 12-08-2022 10:10 From: Peter Møller Subject: Voronoi with less than 3 points Can you share the code for ...
Posted By Ryan Cook 12-08-2022 09:39
Found In Egroup: MapInfo Pro
\ view thread
So I have been merging your code into mine and I have got it to work...ish. Below is the result when I run my program on some simple test tables: Regions and Nodes: Regions in RED.  Region 1 (left) has 7 points within it, thus passes the 'voronoi test' and is processed normally.  Region 2 (right) ...
Posted By Ryan Cook 12-08-2022 09:14
Found In Egroup: MapInfo Pro
\ view thread
Gotcha - MapInfo is running the same code for both instances and there is a protection there for when there are no extents other than what MapInfo creates itself using a convex hull. It's sunk in now! Seems like an easy fix for MapInfo to make for future versions.  ------------------------------ ...
Posted By Ryan Cook 12-08-2022 06:47
Found In Egroup: MapInfo Pro
\ view thread
Thanks Peter, your revisions are sensible and cut out some of the lumbering around I was doing to achieve the same thing! I will look to incorporate your cutting idea into my code and let you know how it goes.  I think you misunderstand me about the Set Target point. I know that we need to Set Target ...
Posted By Ryan Cook 12-08-2022 05:23
Found In Egroup: MapInfo Pro
\ view thread
Hi Peter, thanks for your answer and code - I will take a look in more detail shortly. Currently my code simply uses an IF statement condition of SelectionInfo(SEL_INFO_NROWS) >=3 to either proceed with the voronoi function or skip it for that region (and thus avoiding MapInfo breaking). I'm marking ...
Posted By Ryan Cook 12-07-2022 05:38
Found In Egroup: MapInfo Pro
\ view thread
Hello. I am confused as to why a region cannot be divided into voronois using less than 3 points. A single point should return a copy of the region, while two points should comfortably divide the region into two. When running the voronoi function as part of a loop within a program that works through ...
Posted By Ryan Cook 10-05-2022 04:32
Found In Egroup: MapInfo Pro
\ view thread
Ha, I knew it would be something simple! I was suffering from a brain block - I tried double quotes, triple quotes, square brackets, apostrophes... I just couldn't figure out how to get Mapinfo to understand that Tabz was a variable!  Thanks Peter, that's the second time you have rescued me. - ...
Posted By Ryan Cook 10-04-2022 09:32
Found In Egroup: MapInfo Pro
\ view thread
Sorry, I just can't figure this one out - it seems such a simple thing but I'm getting nowhere.  I am writing a program that begins by prompting the user to choose a table from those that are open and I have restricted the options by dominant object type (the table should always be point geometry). ...
Posted By Ryan Cook 08-18-2022 10:06
Found In Egroup: MapInfo Pro
\ view thread
Any reason the solution cannot be shared here? Otherwise what is the purpose of a forum if the solution is "email somebody else about it?" ------------------------------ Ryan Cook Knowledge Community Shared Account ------------------------------