Well I've programmed in both VB and RealBasic so I mean I'm new to this environment but have done visual basic type programming before.
a public sub, I mean instead of writing the same code over and over again, how do I write it once then call, in Realbasic you would write the code in a module. In VB you could write in a module or as "public sub" on a forum.
the first tutorial I seen was the random number guessing game. I wanted to make a reset button and I did so by adding this code...
MyNumber = Rnd(1, 100) 'Choose a random number between 1 to 99
twice once under the activity create_sub, then under a button_click sub, however how can I just write the code once and call it when needed