home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / lang / pascal / 4486 < prev    next >
Encoding:
Text File  |  1992-07-21  |  2.0 KB  |  49 lines

  1. Newsgroups: comp.lang.pascal
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!cs.utexas.edu!sun-barr!decwrl!access.usask.ca!skyfox.usask.ca!friesenda
  3. From: friesenda@skyfox.usask.ca
  4. Subject: RE: Integer <-> String
  5. Message-ID: <21JUL92.16403729@skyfox.usask.ca>
  6. Sender: news@access.usask.ca (USENET News System)
  7. Nntp-Posting-Host: skyfox
  8. Organization: University of Saskatchewan
  9. References: <1437@grivel.une.edu.au>
  10. Date: Tue, 21 Jul 1992 16:40:37 GMT
  11. Lines: 36
  12.  
  13. In a previous article, rbennet1@neumann.une.edu.au (Robert Bennetts.) wrote:
  14. >    Hi all...
  15. >    Yes I am not a very experienced programmer, and need some help, 
  16. >       and I can't seem to find how to do this.
  17. >    Can I change an Integer, or any other variable for that matter, 
  18. >       into a string so I can output it using OutText.
  19.  
  20. Yep.  Check your TP manual for the Str function.  The Val function does
  21. just the opposite (changes strings to integers).
  22.  
  23. >    I am attempting to write a whole program in nice fonts and in 
  24. >       graphics mode, but they don't want to make it easy in TP6.0.
  25. >    It seems as if I have to 'InitGraph' every other second, and for 
  26. >       some reason, some of my procedures only work if they have an even 
  27. >       number of lines in them so I tack an 'a:=a;'on the end of it and 
  28. >       suddenly it runs like magic. Seems odd to me anyway.
  29.  
  30. Very odd.  I think your program has some serious problems.  You should
  31. only have to call InitGraph once at the beginning of your program.
  32. You don't have any extra calls to CloseGraph scattered throughout your
  33. code do you?  You should only have one at the end of your program.
  34. I can't help too much more without seeing the code (or a better 
  35. description of what exactly you are doing).
  36.  
  37. >    Ross Bennetts...
  38. >        rbennet1@neumann.une.edu.au 
  39.  
  40.  
  41. -----------------------------------------------------------------------------
  42. Darryl Friesen          |  "The vet let me keep them... they're my testicles"
  43. Univ. of Saskatchewan   |   - Far Side cartoon: dog talking to his buddy.
  44. friesenda@sask.usask.ca |
  45.