Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!rochester!rit!ultb!sfm3166 From: sfm3166@ultb.isc.rit.edu (S.F. Modi) Newsgroups: comp.sys.mac.programmer Subject: print variables on screen ? Keywords: lightspeedC 3.02,DrawText,DrawString Message-ID: <1837@ultb.isc.rit.edu> Date: 26 Dec 89 17:38:12 GMT Organization: Information Systems and Computing @ RIT, Rochester, New York Lines: 29 Hi everyone This is a trival question for this groop but I do need an answer quickly please !!!!. I am using lightspeed C (3.02) for a program. The calls DrawString("xxxx") will print xxxx in your window ( I have done the screen bounds etc). I cannot say printf("xxx") as it defaults to the compiler window. So how do you print a variable ? for example I want to print int money = 100. printf(" I have dollers %d",money). I could say :- DrawString(" I have dollers") BUT How do I print out the value held in the variable money Can I use DrawText ?? and if so how do I call it. If some one out there has any code I could look at I would be very gratefull. I would also ( if I am not imposing too much ) like to see some code for using Text Edit; though for the above case I would like to use something simple like DrawText. I thank you all very much and look forward to hearing from someone soon. Thank You. Sohrab Modi cornell!rochester!rit!ultb!sfm3166