Computer Science Canada Integer to String conversion |
Author: | Asok [ Tue Feb 25, 2003 12:27 pm ] | ||
Post subject: | Integer to String conversion | ||
The following is a code sample of a score board. The challenge is getting string variables "currentscore and topscore" to accept intergers such as "currentscore := currentscore + scoreadded" (scoreadded being an integer variable so type problems occur.)
Any help would be greatly appreciated. |
Author: | CyCLoBoT [ Tue Feb 25, 2003 12:36 pm ] |
Post subject: | |
why don't u leave all your variables to be integers? |
Author: | Asok [ Tue Feb 25, 2003 1:17 pm ] |
Post subject: | |
because Font.Draw will only accept strings. So at some point I need to turn the integer into a string. |
Author: | Dan [ Tue Feb 25, 2003 1:46 pm ] | ||
Post subject: | strint | ||
try strint() and/or intstr()
|
Author: | Asok [ Tue Feb 25, 2003 2:13 pm ] |
Post subject: | |
intstr works! *bows* all hail Dan! Dan thank you so much, you've cleared a problem I've been struggling with for almost a month! |