Random number in an XML file

Killer02

New Member
I have an XML file that sends data(layout) to a printer. I have a number that I want to randomize. Here is my xml file:\[code\]<ObjectInfo> <CounterObject> <Name>COUNTER</Name> <ForeColor Alpha="255" Red="0" Green="0" Blue="0" /> <BackColor Alpha="0" Red="255" Green="255" Blue="255" /> <LinkedObjectName></LinkedObjectName> <Rotation>Rotation0</Rotation> <IsMirrored>False</IsMirrored> <IsVariable>True</IsVariable> <HorizontalAlignment>Right</HorizontalAlignment> <VerticalAlignment>Bottom</VerticalAlignment> <TextFitMode>ShrinkToFit</TextFitMode> <UseFullFontHeight>True</UseFullFontHeight> <Verticalized>False</Verticalized> <Font Family="Algerian" Size="28" Bold="False" Italic="False" Underline="False" Strikeout="False" /> <PreText></PreText> <PostText></PostText> <Start>1</Start> <Current>2</Current> <Increment>1</Increment> <FormatWidth>3</FormatWidth> <UseLeadingZeros>True</UseLeadingZeros> </CounterObject> <Bounds X="3505" Y="330" Width="1365" Height="720" /></ObjectInfo>\[/code\]This is actually a object file for a Dymo printer. Any ideas on how to add a variable that will randomly generate a number instead of increment by 1, because the incrementation isn't working.
 
Back
Top