Brian,

You can print the integer to a string and then draw the string.

Char string[32];
StrPrinF(string, "%d", 10);
WinDrawChars(string, StrLen(string), 5, 120);

-Ken

> ----------
> From:         Brian O'Grady[SMTP:[EMAIL PROTECTED]]
> Reply To:     [EMAIL PROTECTED]
> Sent:         Thursday, January 20, 2000 12:02 PM
> To:   [EMAIL PROTECTED]
> Subject:      Draw int to screen
> 
>  Hello,
> Warning: this is a newbie question.
> 
> I have a db of integers and I would like to Draw them to the screen so I
> know that the app is retrieving the correct values. I have never tried
> writing a numeric value to the screen before and every example I have uses
> charptr's. Can someone please give a snippet on how to display numeric
> values, it doesn't have to be of type int.You were warned. Thank You
> 
> 
> 
> This is what I have been doing
>      gstrDisplayDate  = MemPtrNew(StrLen(recordP->DisplayDate)+1);
>      StrCopy(gstrDisplayDate, recordP->DisplayDate);
>      WinDrawChars(gstrDisplayDate,StrLen(gstrDisplayDate),5,120);
> How is this done with none CharPtr types?
> 
> 
> 
> Brian O'Grady
> 
> 
> 

Reply via email to