{"id":3782,"date":"2025-04-21T09:40:03","date_gmt":"2025-04-21T09:40:03","guid":{"rendered":"https:\/\/webprojects.cloud\/wordpress\/splatco\/?post_type=spl_knowledgebase&#038;p=3782"},"modified":"2025-06-10T05:58:57","modified_gmt":"2025-06-10T05:58:57","slug":"setcursorryrow-cxcol-hash-function","status":"publish","type":"spl_knowledgebase","link":"https:\/\/webprojects.cloud\/wordpress\/splatco\/knowledgebase\/deprecated\/hmi-android-windows\/setcursorryrow-cxcol-hash-function\/","title":{"rendered":"# SetCursor(r|y:Row, c|x:Col) hash function"},"content":{"rendered":"\n<p>Valid for use with hash command:&nbsp;<code><a href=\"https:\/\/webprojects.cloud\/wordpress\/splatco\/knowledgebase\/deprecated\/hmi-android-windows\/\">HMI<\/a> <\/code>Arguments may be specified as&nbsp;<a href=\"https:\/\/webprojects.cloud\/wordpress\/splatco\/namevalue-pairs-in-hash-functions\/\">Name:Value Pairs<\/a><\/p>\n\n\n\n<p>Implemented on the following platforms: HMi430, Android, Windows<\/p>\n\n\n\n<p>Sets the cursor for any subsequent&nbsp;<code>Text<\/code>&nbsp;to the specified row and column. Row and column are in multiples of the default character size. They both start at 0, so the top lefthand corner of the screen is (0, 0)<\/p>\n\n\n\n<p>In addition to being simple numbers, the row\/column coordinates may also be specified in relative or proportional terms. The following table illustrates the possibilities.<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><th>Format (example)<\/th><th>As a row specifier<\/th><th>As a column specifier<\/th><\/tr><tr><td><code>5<\/code><\/td><td>Row number 5 from the top, counting from 0. This can be a fractional number such as 5.5<\/td><td>Column number 5 from the left, counting from 0<\/td><\/tr><tr><td><code>-5<\/code><\/td><td>Row 5 from the bottom, counting from 0. This can be a fractional number such as -5.25<\/td><td>Column 5 from the right, counting from 0<\/td><\/tr><tr><td><code>0<\/code><\/td><td>The top character row<\/td><td>The left-most character column<\/td><\/tr><tr><td><code>-0<\/code><\/td><td>The bottom character row<\/td><td>The right-most character column<\/td><\/tr><tr><td><code>0.25<\/code><\/td><td>One quarter of (0.25 times) the screen height from the top. Fractional number between -1 and +1 are interpreted as a fraction of the screen.<\/td><td>One quarter of the screen width from the left.<\/td><\/tr><tr><td><code>-0.25<\/code><\/td><td>One quarter of the screen height from the bottom.<\/td><td>One quarter of the screen width from the right.<\/td><\/tr><tr><td><code>C<\/code><\/td><td>The top-bottom centre of the screen.<\/td><td>The left-right centre of the screen.<\/td><\/tr><tr><td><code>C+5<\/code><\/td><td>Five character rows down from the centre<\/td><td>Five character widths right from the centre.<\/td><\/tr><tr><td><code>C-5<\/code><\/td><td>Five character rows up from the centre<\/td><td>Five character width left from the centre.<\/td><\/tr><tr><td><code>C+.25<\/code><\/td><td>One quarter character row down from the centre. After a &#8220;C&#8221; all numbers are interpreted as multiples of the character pitch.<\/td><td>One quarter character width right from the centre.<\/td><\/tr><tr><td><code>C-3.25<\/code><\/td><td>Three and a quarter character rows up from the centre. After a &#8220;C&#8221; all numbers are interpreted as multiples of the character pitch.<\/td><td>Three and a quarter character widths left from the centre.<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>Example:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"># <a href=\"https:\/\/webprojects.cloud\/wordpress\/splatco\/knowledgebase\/glossary-of-terms\/#o5243\">HMI<\/a> Cursor(r:0, c:-3) Print(f(fCounter,4,0))<\/pre>\n\n\n\n<p>Display&nbsp;<code>fCounter<\/code>&nbsp;in the top righthand corner in a field 4 characters wide, with no decimal places . Remember,&nbsp;<code>-0<\/code>&nbsp;gives the far right character position,&nbsp;<code>-1<\/code>&nbsp;the second character in (space for 2 characters), etc.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Valid for use with hash command:&nbsp;HMI Arguments may be specified as&nbsp;Name:Value Pairs Implemented on the following platforms: HMi430, Android, Windows Sets the cursor for any&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":3768,"menu_order":17,"template":"","class_list":["post-3782","spl_knowledgebase","type-spl_knowledgebase","status-publish","hentry"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v25.6 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title># SetCursor(r|y:Row, c|x:Col) hash function - SPLat Controls<\/title>\n<meta name=\"robots\" content=\"noindex, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"# SetCursor(r|y:Row, c|x:Col) hash function - SPLat Controls\" \/>\n<meta property=\"og:description\" content=\"Valid for use with hash command:&nbsp;HMI Arguments may be specified as&nbsp;Name:Value Pairs Implemented on the following platforms: HMi430, Android, Windows Sets the cursor for any...\" \/>\n<meta property=\"og:url\" content=\"https:\/\/webprojects.cloud\/wordpress\/splatco\/knowledgebase\/deprecated\/hmi-android-windows\/setcursorryrow-cxcol-hash-function\/\" \/>\n<meta property=\"og:site_name\" content=\"SPLat Controls\" \/>\n<meta property=\"article:modified_time\" content=\"2025-06-10T05:58:57+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/webprojects.cloud\/wordpress\/splatco\/knowledgebase\/deprecated\/hmi-android-windows\/setcursorryrow-cxcol-hash-function\/\",\"url\":\"https:\/\/webprojects.cloud\/wordpress\/splatco\/knowledgebase\/deprecated\/hmi-android-windows\/setcursorryrow-cxcol-hash-function\/\",\"name\":\"# SetCursor(r|y:Row, c|x:Col) hash function - SPLat Controls\",\"isPartOf\":{\"@id\":\"https:\/\/webprojects.cloud\/wordpress\/splatco\/#website\"},\"datePublished\":\"2025-04-21T09:40:03+00:00\",\"dateModified\":\"2025-06-10T05:58:57+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/webprojects.cloud\/wordpress\/splatco\/knowledgebase\/deprecated\/hmi-android-windows\/setcursorryrow-cxcol-hash-function\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/webprojects.cloud\/wordpress\/splatco\/knowledgebase\/deprecated\/hmi-android-windows\/setcursorryrow-cxcol-hash-function\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/webprojects.cloud\/wordpress\/splatco\/knowledgebase\/deprecated\/hmi-android-windows\/setcursorryrow-cxcol-hash-function\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/webprojects.cloud\/wordpress\/splatco\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Deprecated\",\"item\":\"https:\/\/webprojects.cloud\/wordpress\/splatco\/knowledgebase\/deprecated\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"# HMI Android &#038; Windows\",\"item\":\"https:\/\/webprojects.cloud\/wordpress\/splatco\/knowledgebase\/deprecated\/hmi-android-windows\/\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"# SetCursor(r|y:Row, c|x:Col) hash function\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/webprojects.cloud\/wordpress\/splatco\/#website\",\"url\":\"https:\/\/webprojects.cloud\/wordpress\/splatco\/\",\"name\":\"SPLat Controls\",\"description\":\"OEM Embedded Machine Controllers\",\"publisher\":{\"@id\":\"https:\/\/webprojects.cloud\/wordpress\/splatco\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/webprojects.cloud\/wordpress\/splatco\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/webprojects.cloud\/wordpress\/splatco\/#organization\",\"name\":\"SPLat Controls\",\"url\":\"https:\/\/webprojects.cloud\/wordpress\/splatco\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webprojects.cloud\/wordpress\/splatco\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/webprojects.cloud\/wordpress\/splatco\/wp-content\/uploads\/2024\/10\/logo.svg\",\"contentUrl\":\"https:\/\/webprojects.cloud\/wordpress\/splatco\/wp-content\/uploads\/2024\/10\/logo.svg\",\"caption\":\"SPLat Controls\"},\"image\":{\"@id\":\"https:\/\/webprojects.cloud\/wordpress\/splatco\/#\/schema\/logo\/image\/\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"# SetCursor(r|y:Row, c|x:Col) hash function - SPLat Controls","robots":{"index":"noindex","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"og_locale":"en_US","og_type":"article","og_title":"# SetCursor(r|y:Row, c|x:Col) hash function - SPLat Controls","og_description":"Valid for use with hash command:&nbsp;HMI Arguments may be specified as&nbsp;Name:Value Pairs Implemented on the following platforms: HMi430, Android, Windows Sets the cursor for any...","og_url":"https:\/\/webprojects.cloud\/wordpress\/splatco\/knowledgebase\/deprecated\/hmi-android-windows\/setcursorryrow-cxcol-hash-function\/","og_site_name":"SPLat Controls","article_modified_time":"2025-06-10T05:58:57+00:00","twitter_card":"summary_large_image","schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/webprojects.cloud\/wordpress\/splatco\/knowledgebase\/deprecated\/hmi-android-windows\/setcursorryrow-cxcol-hash-function\/","url":"https:\/\/webprojects.cloud\/wordpress\/splatco\/knowledgebase\/deprecated\/hmi-android-windows\/setcursorryrow-cxcol-hash-function\/","name":"# SetCursor(r|y:Row, c|x:Col) hash function - SPLat Controls","isPartOf":{"@id":"https:\/\/webprojects.cloud\/wordpress\/splatco\/#website"},"datePublished":"2025-04-21T09:40:03+00:00","dateModified":"2025-06-10T05:58:57+00:00","breadcrumb":{"@id":"https:\/\/webprojects.cloud\/wordpress\/splatco\/knowledgebase\/deprecated\/hmi-android-windows\/setcursorryrow-cxcol-hash-function\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/webprojects.cloud\/wordpress\/splatco\/knowledgebase\/deprecated\/hmi-android-windows\/setcursorryrow-cxcol-hash-function\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/webprojects.cloud\/wordpress\/splatco\/knowledgebase\/deprecated\/hmi-android-windows\/setcursorryrow-cxcol-hash-function\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/webprojects.cloud\/wordpress\/splatco\/"},{"@type":"ListItem","position":2,"name":"Deprecated","item":"https:\/\/webprojects.cloud\/wordpress\/splatco\/knowledgebase\/deprecated\/"},{"@type":"ListItem","position":3,"name":"# HMI Android &#038; Windows","item":"https:\/\/webprojects.cloud\/wordpress\/splatco\/knowledgebase\/deprecated\/hmi-android-windows\/"},{"@type":"ListItem","position":4,"name":"# SetCursor(r|y:Row, c|x:Col) hash function"}]},{"@type":"WebSite","@id":"https:\/\/webprojects.cloud\/wordpress\/splatco\/#website","url":"https:\/\/webprojects.cloud\/wordpress\/splatco\/","name":"SPLat Controls","description":"OEM Embedded Machine Controllers","publisher":{"@id":"https:\/\/webprojects.cloud\/wordpress\/splatco\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/webprojects.cloud\/wordpress\/splatco\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/webprojects.cloud\/wordpress\/splatco\/#organization","name":"SPLat Controls","url":"https:\/\/webprojects.cloud\/wordpress\/splatco\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webprojects.cloud\/wordpress\/splatco\/#\/schema\/logo\/image\/","url":"https:\/\/webprojects.cloud\/wordpress\/splatco\/wp-content\/uploads\/2024\/10\/logo.svg","contentUrl":"https:\/\/webprojects.cloud\/wordpress\/splatco\/wp-content\/uploads\/2024\/10\/logo.svg","caption":"SPLat Controls"},"image":{"@id":"https:\/\/webprojects.cloud\/wordpress\/splatco\/#\/schema\/logo\/image\/"}}]}},"_links":{"self":[{"href":"https:\/\/webprojects.cloud\/wordpress\/splatco\/wp-json\/wp\/v2\/spl_knowledgebase\/3782","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/webprojects.cloud\/wordpress\/splatco\/wp-json\/wp\/v2\/spl_knowledgebase"}],"about":[{"href":"https:\/\/webprojects.cloud\/wordpress\/splatco\/wp-json\/wp\/v2\/types\/spl_knowledgebase"}],"author":[{"embeddable":true,"href":"https:\/\/webprojects.cloud\/wordpress\/splatco\/wp-json\/wp\/v2\/users\/1"}],"up":[{"embeddable":true,"href":"https:\/\/webprojects.cloud\/wordpress\/splatco\/wp-json\/wp\/v2\/spl_knowledgebase\/3768"}],"wp:attachment":[{"href":"https:\/\/webprojects.cloud\/wordpress\/splatco\/wp-json\/wp\/v2\/media?parent=3782"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}