<?xml version="1.0" encoding="utf-8"?><!DOCTYPE article  PUBLIC '-//OASIS//DTD DocBook XML V4.4//EN'  'http://www.docbook.org/xml/4.4/docbookx.dtd'><article><articleinfo><title>GetTroops</title><revhistory><revision><revnumber>3</revnumber><date>2013-07-31 05:14:26</date><authorinitials>tech</authorinitials></revision><revision><revnumber>2</revnumber><date>2013-07-31 05:12:09</date><authorinitials>tech</authorinitials></revision><revision><revnumber>1</revnumber><date>2013-07-31 05:08:57</date><authorinitials>tech</authorinitials></revision></revhistory></articleinfo><para>this function converts a troop string into a troop bean object. </para><para>troop bean objects are needed for use with other functions, such as <ulink url="http://guide.neatportal.com/wiki/GetTroops/wiki/city.getCarryingLoad#">city.getCarryingLoad(troopBean)</ulink> or <ulink url="http://guide.neatportal.com/wiki/GetTroops/wiki/city.getTravelTime#">city.getTravelTime(fieldId1,fieldId2,troopBean,type)</ulink> </para><section><title>example:</title><para>troops = &quot;a:99.5k,w:100,wo:100,p:100,sw:100,c:90,cata:10&quot; </para><para>troopBean = GetTroops(troops) </para><!--rule (<hr>) is not applicable to DocBook--><para> <ulink url="http://guide.neatportal.com/wiki/GetTroops/wiki/CategoryFunctions#">CategoryFunctions</ulink> </para></section></article>