[SOLVED]Problem on string retrievieng by an Url
Posted: Mon May 23, 2016 3:06 pm
Hi , i'm tryng to retrieve data from an webgadget. i need to get the first value after aud/usd like this : 0.72108 and then put it in to a variable to work with it...
Any idea??? thanks a lot in advance... Lestroso
Any idea??? thanks a lot in advance... Lestroso

Code: Select all
#myWindow = 0
#myWebGadget = 0
#myTimer = 0
Global URL.s = "http://webrates.truefx.com/rates/connect.html?=html&c=AUD/USD"
valore$= URL
Procedure Reload()
; Debug "Reload..."
SetGadgetText(#myWebGadget, URL)
EndProcedure
Left(valore$,6) ; BUT THIS DON'T WORK!!!
OpenWindow(#myWindow, 0, 0, 1000, 500, "WebGadget", #PB_Window_SystemMenu | #PB_Window_ScreenCentered)
WebGadget(#myWebGadget, 10, 10, 900, 480, URL)
AddWindowTimer(#myWindow, #myTimer, 1000) ; 1 second..
BindEvent(#PB_Event_Timer, @Reload(), #myWindow, #myWebGadget)