Does anyone know how to do this, I want to put a variable inside a string:
currently using:
oraclizeID = oraclize_query("URL","json(https://opensky-network.org/api/states/all?icao24=a4dad4).states[0][8]");
Trying to put the varaible into the string as shown below, but it's not working:
string public id = 'a4dad4';
oraclizeID = oraclize_query("URL","json(https://opensky-network.org/api/states/all?icao24="id").states[0][0]")
burlcome from? – John DeBord May 23 '18 at 00:21TypeError: Exactly one argument expected for explicit type conversion. string memory query = string( burl_1.length, burl_2.length, burl_3.length, burl_4.length, burl_5.length, burl_6.length, burl_7.length);– John DeBord May 23 '18 at 00:33byte memory burl = bytes(url);and for the second error it should be+not,needed. I'll correct them in the example – Achala Dissanayake May 23 '18 at 00:37