base:GetInteger()

You can post your code snippets here for others to use and learn from

base:GetInteger()

Postby djrikki » Wed Apr 15, 2015 11:37 pm

Code: Select all
Global base
base = {}
;; base:GetXmlInteger(data,key)
; You should call this recursively in a While ... data = ReadLine(1)...Wend  structure; ex. call line$ = p_getXmlInteeger(data,"Track ID")
Function base:GetXmlInteger(data,key)
    Local result = 0

    If FindStr(data,"<key>") > -1
        If FindStr(data,key) > -1
            data = ReadLine(1)
            result = MidStr(data,FindStr(data,"<integer>")+StrLen("<integer>"),StrLen(data))
            result = UnleftStr(result,StrLen("</integer>"))
        EndIf
    EndIf
   
    Return(result)
EndFunction
Evolve - Rapid GUI Development tool for MUI Royale and RapaGUI
http://myevolve.wordpress.com
djrikki
 
Posts: 645
Joined: Wed Apr 06, 2011 12:26 am

Return to Code snippets area

Who is online

Users browsing this forum: No registered users and 2 guests

cron