Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here





Does any really know how this Function works?  I was under the impression that it resets certain variables.  Every time i write a variable within the parenthesis, to rest it, it doesn’t work!  For example, i am tracking right and wrong answers for a group of interaction and displaying the score at the end with percentcorrect.  Problem is, it calculates the score for all the interactions as one score.  So to track the scores of the interactions independently, i placed a cal icon before the second group of interactions and wrote Initialize (PercentCorrect) inside it, to no avail!  Was this the right way to approach it or should i have done it differently?  Also, what is the right way to use to "initialize" function?
Thanks a million!

RE: initialize

PercentCorrect is a system variable that actually uses the system variables TotalWrong and TotalCorrect.  If you do:


wherever you want it to reset, it should behave the way you'd expect.  Obviously you may want to save the current value before you initialize it if you want to continue to track it:  


RE: initialize

Thanks for the help!

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close