Author Topic: setup two counter in program  (Read 891 times)

0 Members and 2 Guests are viewing this topic.

charlescain

  • Member
  • Posts: 2
    • View Profile
setup two counter in program
« on: February 10, 2010, 06:47:23 PM »
How do you setup two counter in filepro program.  I have the first counter working but when I try to do the second counter it fail.

I setup the by rn(1,.0)="1"

When I setup the second counter it blank out the data or it put the second counter numbert the first conuter field.


Thanks

Chris Henschen

  • Administrator
  • Posts: 5
    • View Profile
    • http://www.henschen.com
Re: setup two counter in program
« Reply #1 on: March 05, 2010, 08:42:11 AM »
I'm not exactly sure what you mean by two counters?  What you have for an example just assigns a 1 to the value rn.  RN can only contain a value of 0-9 as you have it.  To increment it you'd use rn=rn+"1".  If you are meaning two separate counters, you'd have to define two variables:

rn(1,.0)=rn+"1"
co(10,.0)=co+"1"

« Last Edit: March 05, 2010, 08:43:43 AM by Chris Henschen »