PC SOFT

FOROS PROFESIONALES
WINDEVWEBDEV y WINDEV Mobile

Inicio → WINDEV 2024 → Newbie question related to loops
Newbie question related to loops
Iniciado por guest, 03,nov. 2015 17:15 - 1 respuesta
Publicado el 03,noviembre 2015 - 17:15
I have done several types of loops described in the tutorial with success...so i thought let's write something useful this time...lets make a app that when a certain network is available performs a action....until a certain time....so i need to refresh the wifi acces points evry 2 seconds ....what i have so far works for like a couple of seconds until android/windows think the app stopped working can i some how force windows/android to not show the message or is there a better way to write this code?any advice is welcome

the action=show a message
current time= loop run until 12 a clock
A1= edit ctrl

os =W8
wme =19
ListPoint is string sSSID is string sBSSID is string res is string CurrentTime is string res = TimeSys() res = TimeToString(TimeSys()) CurrentTime = Left(TimeSys(), 4) loop ListPoint = WiFiDetectAccessPoint() EACH STRING AccessPoint OF ListPoint SEPARATED BY CR sSSID = ExtractString(AccessPoint, 2, TAB) sBSSID = ExtractString(AccessPoint, 3, TAB) ... END A1=ListPoint xFIND=Position(A1,"TARGET",1,FromBeginning) IF xFIND = "1" THEN trace("found") END IF CurrentTime="1200" THEN BREAK END
Publicado el 03,noviembre 2015 - 18:50
did you use Multitask function to wait the 2 seconds?

Another possible way of doing this is using timersys or one Automatic procedure without all this loops.