Help, I cannot convert this code from C# to VB.net

var xhr = Titanium.Network.createHTTPClient();
xhr.onload = Function(){
    var JSON = JSON.parse(this.responseText);
    If (!JSON) {
        Titanium.API.info('Error - Null return!');
        return;
    }
    // Do something With Object "json" !!!
};

xhr.open('GET', 'http:///mapbizlocator.com/wwwroot/json.ashx');
xhr.send();
westdhAsked:
Who is Participating?
 
westdhAuthor Commented:
I tried that and all the other converters too.
they all give me this error.
 line 1 col 1: EOF expected

var xhr = Titanium.Network.createHTTPClient();
xhr.onload = Function(){
    var JSON = JSON.parse(this.responseText);
    If (!JSON) {
        Titanium.API.info('Error - Null return!');
        return;
    }
    // Do something With Object "json" !!!
};

xhr.open('GET', 'http:///mapbizlocator.com/wwwroot/json.ashx');
xhr.send();
0
 
westdhAuthor Commented:
Thanks
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.