Rosetta Code/Count examples: Difference between revisions
Content added Content deleted
Line 1,207: | Line 1,207: | ||
2. Add a text field called "tasks" |
2. Add a text field called "tasks" |
||
n.b. The list of tasks is limited to 10<lang LiveCode>on mouseUp |
n.b. The list of tasks is limited to 10 for demo purposes<lang LiveCode>on mouseUp |
||
put empty into fld "taskurls" |
put empty into fld "taskurls" |
||
put URL "http://rosettacode.org/mw/api.php?action=query&list=categorymembers&cmtitle=Category:Programming_Tasks&cmlimit=10&format=xml" into |
put URL "http://rosettacode.org/mw/api.php?action=query&list=categorymembers&cmtitle=Category:Programming_Tasks&cmlimit=10&format=xml" into apixml |
||
put revXMLCreateTree( |
put revXMLCreateTree(apixml,true,true,false) into pDocID |
||
put "/api/query/categorymembers/cm" into pXPathExpression |
put "/api/query/categorymembers/cm" into pXPathExpression |
||
repeat for each line xmlnode in revXMLEvaluateXPath(pDocID, pXPathExpression) |
repeat for each line xmlnode in revXMLEvaluateXPath(pDocID, pXPathExpression) |
||
Line 1,224: | Line 1,224: | ||
put "Total" & comma & allTaskTotal after fld "tasks" |
put "Total" & comma & allTaskTotal after fld "tasks" |
||
end mouseUp</lang> |
end mouseUp</lang> |
||
=={{header|Mathematica}}== |
=={{header|Mathematica}}== |