I had some issues before with \ in strings which I was informed were due to escape codes. With this in mind I am now trying to use these escape codes to my benefit and I am hitting an error with this specific code, can anyone give any information as to what is causing this issue.
html_pos% = INSTR(html$, "<h2 class=\"item sell\"><a class=\"permalink\" href=\"http://www.domain.co.uk/folder/", 0)
I get the error
C:\Users\Win7\AppData\Local\Temp\glbasic\gpc_temp1.cpp: In function `DGInt __GLBASIC__::Menu()':
C:\Users\Win7\AppData\Local\Temp\glbasic\gpc_temp1.cpp:437: error: expected `)' before ';' token
*** FATAL ERROR - Please post this output in the forum
you found an interesting bug(?) there, but this workaround should help you:
LOCAL a$="<h2 class=\"item sell\"><a class=\"permalink\" href=\"http://www.domain.co.uk/folder/"
html_pos% = INSTR(html$, a$, 0)
Some more demonstrations of this bug:
Works:b$="a\"b//"
pos = INSTR(a$, b$, 0)
Works not:pos% = INSTR(a$, "a\"b//", 0)
Works:LOCAL pos% = INSTR(a$, "a\"b//", 0)
The last one is really weird. I dont know if this is related to the V11 string problems that i already reported. All testing done with V11.171
I'm using 10.283 so it's not a v11 issue.
Can someone move this to BUGs thread please :)
Hopefully Ian or someone will do soon!
Done.