Back
Login
Register
Login
Register
Millisecond Forums
Home
»
Millisecond Forums
»
Inquisit 4
»
RE: Question about the Counter
Question about the Counter
Post Reply
Like
47
Question about the Counter
View
Flat Ascending
Flat Descending
Threaded
Options
Subscribe to topic
Print This Topic
RSS Feed
Goto Topics Forum
Author
Message
DrLand
DrLand
posted 11 Years Ago
ANSWER
Topic Details
Share Topic
Group: Forum Members
Posts: 14,
Visits: 38
Back again :)
I am wanting to display the trial number. Rather than creating a text element (e.g., "1" "2" ....) to do this, I was playing with the following code /items ("trial = <% trial.numbers.count %> ")
This works, but the first trial starts as 0 rather than 1. Is there a way I can set the counter to start at 1 instead of 0?
Reply
Like
47
Dave
Dave
posted 11 Years Ago
ANSWER
Post Details
Share Post
Group: Administrators
Posts: 13K,
Visits: 108K
You can do
/ items ("trial = <% trial.numbers.count + 1 %> ")
Reply
Like
55
DrLand
DrLand
posted 11 Years Ago
ANSWER
Post Details
Share Post
Group: Forum Members
Posts: 14,
Visits: 38
Yep, that's it.
I had tried /items = ("trial = <% trial.numbers.count %> + 1 "). So I was close. Thanks again.
/ items ("trial = <% trial.numbers.count + 1 %> ") - See more at:
http://www.millisecond.com/forums/Topic14045.aspx#sthash.rTbaM6dp.dpuf
/ items ("trial = <% trial.numbers.count + 1 %> ") - See more at:
http://www.millisecond.com/forums/Topic14045.aspx#sthash.rTbaM6dp.dpuf
/ items ("trial = <% trial.numbers.count + 1 %> ") - See more at:
http://www.millisecond.com/forums/Topic14045.aspx#sthash.rTbaM6dp.dpuf
Reply
Like
42
GO
Merge Selected
Merge into selected topic...
Merge into merge target...
Merge into a specific topic ID...
Open Merge
Post Reply
Like
47
Post Quoted Reply
Reading This Topic
Login
Login
Remember Me
Reset Password
Resend Validation Email
Login
Facebook
Explore
Messages
Mentions
Search