Search found 3 matches

by Poltergeist
Wed May 27, 2015 9:07 pm
Forum: Coding Questions
Topic: Clearscreen(color) does not work correctly
Replies: 0
Views: 3731

Clearscreen(color) does not work correctly

Hi,

I don't know if I'm doing it wrong, but if I use the following code:


OpenScreen(DesktopWidth(1),DesktopHeight(1), 32, "test")
ClearScreen(RGB(255,0,0))
FlipBuffers()


I get the correct color (bright red) on my desktopbrowser (IE11 and opera 29), on my phone (a Windows 8.1 phone) and most ...
by Poltergeist
Thu Feb 12, 2015 11:50 am
Forum: Coding Questions
Topic: httprequest example (or how to get data out of a callback)
Replies: 3
Views: 3786

Re: httprequest example (or how to get data out of a callbac

I doubt that is an issue to be honest. If I change debug Result$ into debug result$ it still gives the correct output.

I've now used code in the callbackprocedure to parse the data. Not a pretty solution, but for now it works. If someone knows if I can get the value of Result$ out of the callback ...
by Poltergeist
Fri Feb 06, 2015 2:57 pm
Forum: Coding Questions
Topic: httprequest example (or how to get data out of a callback)
Replies: 3
Views: 3786

httprequest example (or how to get data out of a callback)

This is probably going to be very newby like, but I just cannot figure it out: I'm trying to use the httprequest example


Procedure HttpGetEvent(Success, Result$, UserData)
If Success
Debug Result$
Else
Debug "HTTPRequest(): Error"
EndIf
EndProcedure

; Get the content of this file, and ...