Hi guys I have a wee program i wrote a year or so ago for a college project. The program was to accept bookings for a seminar room and to then allow for these...
This may be a bit late, but the "help" for TP7 states that the Printer unit declares var Lst: text; for you so that writes to that go to the LPT1 device on the...
... The problem with this is that unlike dot matrix and laser printers (that were both quite common when TP7 was new), many modern inkjet no longer support...
Hi guys, Im writing a program which has some if statements like: if g='A' then .... etc.. my problem is when I input 'a' instead of 'A' the programs doesnt...
If you look at an ASCII chart, you will notice that the value assigned to "A" is 65, and the value assigned to "a" is 97. Compilers tend to be very fussy...
Dear Glenn, Thanks for what you wrote here,, well im using turbo pascal.. and the problem is that the program asks the user to input grades like 'A-','B+'.....
I don't know of any compiler or language which will default to a case-free text comparison. "A" and "a" are completely different ASCII characters. I don't...
... Try (if g='a' OR g='A') Rachael. -- http://www.thegangonline.org.uk // MSN & AIM - E-mail and ask us // "And I dream one day I'll find, The ones who...
Dear Rachel, I have tried that, but it didnt work :) jj,, ... wrote: > In message ... ______________________________________________________________________ ...
Hi Jason, Once again, I point out that I have not a clue about which version of Turbo Pascal you are using. This is an important factor for most issues. My...
Dear Glenn, well, im not much into details in pascal but, im using TP 7.1 , and im not much into arrays... :( non of the clues I read here I understood......
With all this talk I forgot what was the original question. Could you please formulate it again? As far as I understood you want something to be executed when...
Dear Laurian, My problem is as follows: Im writing a program which calculates the GPA by inputing grades like 'A', 'A-' etc.. and credits for each grade.. the...
... It didn't work because OR operator has higher priority than =, so g = 'a' OR g = 'A' is the same as g = ('a' OR g) = 'A' which is a total nonsense. Use...
Yes, I intended to give you the same idea as Ondrej but was confused by the very complicated response that suggested arrays. This is the reason for which I...
Why use a two-dimensional array? For elegance in the final product. JJ appears to be attempting to equate specific grades with specific numerical values. So...
Remember that UpCase only works on a single character, not a string. You have grades such as A+, which is presumably held in a string. I replied to your...
Come on people!!! Why must you write such complex logic sequences? Multi-dimensional arrays provide extremely elegant solutions to otherwise complex logic...
Actually, I think you were answering a very simple question from a beginner - and confusing him/her totally. He/she wasn't asking how to write the logic, just...
David: Upon reflection I must agree with your conclusion that the question was asked by a beginner, and I was answering it without that realization. As to the...
JJ, I have noticed that people are startting to argue with each other about a way to solve your programming problem and gave you small snips on how todo it. I...
... You ... Original question was "when I input 'a' instead of 'A', it doesn't work correctly.". We have just A, B, C, D, E, Fx grades, not plus/minus-ones,...
But if you read the followups to answers to JJ's original question, you will note that he speaks of the problem as related in my response. He specifically ...
Hi David: By the way, my name is Glenn. The first "n" is silent, making the second one necessary to get the right sound! It appears that the program converts a...
JJ, Please, let us know how it turned out and what meathod you decided to use. Bluewolf __________________________________ Do you Yahoo!? Yahoo! SiteBuilder -...
Glenn Sorry about the "n" - I'd been seeing it on your messages and promptly forgot to use it. :-( Maybe it's my keyboard's fault - it's sure making a lot of...
Dear Friends, You made a good-big-complicated judgment about my simple question :), sorry to respond late but im having a problem with my internet connection...