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