well, your variable needs to be in string format, so if its a number put Str$(avg) instead of just avg...
and the Exit Prompt command can go anywhere as long as it's read before the program is ended, but i ercomend keeping it out of the main loop, unless its only being accessed at certain times...
um, for your variable the code would be:
`in format: Exit Prompt "title", "Body of message"
exit prompt "Game Over", "Congratulations on your time of " + Str$(avg) + " seconds..."
Oh, and Exit Prompt only works when its an Executable, so dont expect it to work when just executing it from DB... you have to build the exe for it to work...
Hope I Helped...
If Quizz's Are Quizzical, Then What Are Test's?
Check my profile for a quick test of knowladge...