I am using a xojo.net.HTTPSocket that I subclassed as MeterSocket. The code that calls it is
dim MySock as MeterSocket
dim a As String = "https://ezmeter.net/meterdata.php?serial=" + rs.Field("SerNo").StringValue + "&getjson=TRUE"
This worked when I typed in the string with a five digit serial number in place of the recordset field and didn’t use the variable a. When I run it with the recordset as shown, it fails to compile saying [quote]There is more than one item with this name and it’s not clear to which this refers.
MySock.Send(“GET”, a) [/quote] WHen I change the [quote]a[/quote] to [quote]a.ToText[/quote] , it compiles, but throws a NilObjectException when that line executes.