4 Replies Latest reply on Feb 27, 2012 11:45 AM by MarcMcCall

    How do I get it to only calculate once??

    MarcMcCall

      Title

      How do I get it to only calculate once??

      Post

      I have a calculation that produces a random string that I would like to use to make a generic password but it constantly changes everytime you leave the record. is there a way to have this only calculate once? It works very well except that I would like to store the calculation once it is produced.

       

      If( number ;

      Choose ( Round( Random * 68 ; 0 ) ;

      "0";"1";"2";"3";"4";"5";"6";"7";"8";"9";
      "A";"B";"C";"D";"E";"F";"G";"H";"J";
      "K";"L";"M";"N";"P";"Q";"R";"S";"T";
      "U";"V";"W";"X";"Y";"Z";"a";"b";"c";"d";
      "e";"f";"g";"h";"j";"k";"l";"m";"n";
      "o";"p";"q";"r";"s";"t";"u";"v";"w";"x";
      "y";"z";"0";"1";"2";"3";"4";"5";"6";"7";"8";"9";

      ) & JWRandom(number - 1 ) ;
      ""
      )