A89: Re: copying vars
[Prev][Next][Index][Thread]
A89: Re: copying vars
Use sprintf() to convert the variable into a string. For example, if level
is an unsigned int, then you could do the following:
char *level_str;
...
sprintf(level_str,"%u",level);
...
This will convert level to a string, namely, level_str, which you can then
use to display in a dialog box.
----- Original Message -----
From: <BrncAvFan2@aol.com>
To: <assembly-89@lists.ticalc.org>
Sent: Wednesday, June 21, 2000 1:13 PM
Subject: A89: copying vars
>
> I need help with this. I knew how to do it once but I'm having the
longest
> brain fart. Anyway, how would I make it so that I could display a
variable
> in a dialog box. This is in C by the way, using the ti-gcc ide. I have a
> var, level, and I want to be able to display this in a dialog box, just
this
> variable, nothing else with it. How do I convert that variable into a
> string? Is that what I have to do?
>
> THANX
> Dan
>
>
References: