<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Data types Recordset in VBScript - ArcPad 10 in ArcPad Questions</title>
    <link>https://community.esri.com/t5/arcpad-questions/data-types-recordset-in-vbscript-arcpad-10/m-p/404024#M2956</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;This does seem to be a bug in fact. Will have to come up with a work around. Will probably alter the schema when it comes out of ArcView.&amp;nbsp; Basically, ArcPad VBScript doesnt read in the correct data type and initialises the variable as a LONG rather than a DOUBLE.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Perhaps fixed another time...&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 22 Jul 2012 19:36:21 GMT</pubDate>
    <dc:creator>DouglasCubin</dc:creator>
    <dc:date>2012-07-22T19:36:21Z</dc:date>
    <item>
      <title>Data types Recordset in VBScript - ArcPad 10</title>
      <link>https://community.esri.com/t5/arcpad-questions/data-types-recordset-in-vbscript-arcpad-10/m-p/404023#M2955</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;All&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have a shapefile with unique IDs. These are LONG numbers such as:&amp;nbsp; 200000874563&amp;nbsp; (numeric, precision 14)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My VBScript code is having problems reading this long number and actually returns:&amp;nbsp; -2147483648&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So it looks like an overflow is happening.&amp;nbsp; Therefore a double would be nice or at least some way around this.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If I try something like:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; my_result =&amp;nbsp; CDbl(Recordset("UPRN").Value)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;...in order to get a double (or even Cstr to get a string), then it still gives me the mega value of: -2147483648&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I notice that when the Recordset reads the field, it automatically sets the my_result variable to type LONG.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Can i force my_result to be a DOUBLE in the script?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Doug&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jul 2012 18:18:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcpad-questions/data-types-recordset-in-vbscript-arcpad-10/m-p/404023#M2955</guid>
      <dc:creator>DouglasCubin</dc:creator>
      <dc:date>2012-07-19T18:18:29Z</dc:date>
    </item>
    <item>
      <title>Re: Data types Recordset in VBScript - ArcPad 10</title>
      <link>https://community.esri.com/t5/arcpad-questions/data-types-recordset-in-vbscript-arcpad-10/m-p/404024#M2956</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;This does seem to be a bug in fact. Will have to come up with a work around. Will probably alter the schema when it comes out of ArcView.&amp;nbsp; Basically, ArcPad VBScript doesnt read in the correct data type and initialises the variable as a LONG rather than a DOUBLE.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Perhaps fixed another time...&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 22 Jul 2012 19:36:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcpad-questions/data-types-recordset-in-vbscript-arcpad-10/m-p/404024#M2956</guid>
      <dc:creator>DouglasCubin</dc:creator>
      <dc:date>2012-07-22T19:36:21Z</dc:date>
    </item>
  </channel>
</rss>

