Is there something that I forgot about the Case statement? :>
getting an "Error 39: Ordinal expression expected" for this line of code:
Case UTemp Of (UTemp is a string)
Is there something that I forgot about the Case statement? :>
Rather about ordinal expressions. A string can never be an OE. Try Char, Byte or something more ordinal.
Inpt(BBSR.SysopName, 40, 14, 9);
Write(BBSFile, BBSR.BoardName);
Forgive my silly questions
That means that you cannot pass it a string[40]. And since I guess
Oh, and don't forget to use 'with BBSR do...' rather than writing 'BBSR.' in front of every record part, it makes it so much easier to
read the program lateron, IMHO.
What exactly do you mean?
Thanks again for your help. Much appreciated!
No problem, just keep 'em coming! :)
Quoting Sean Dennis to All <=-
Silly question, but I'm working on a new door and it's been a long
while since I've picked up the compiler. I'm using Borland Pascal and
I keep getting an "Error 39: Ordinal expression expected" for this
line of code:
Case UTemp Of (UTemp is a string)
Is there something that I forgot about the Case statement? :>
Quoting Sean Dennis to Björn Felten <=-
That means that you cannot pass it a string[40]. And since I guess
Ah! *the light turns on*
Okay, I was trying to be good and save room in memory. I can go fix
that then.
Thanks for the advice! Wow, I feel much happier now. ;) I spent
about two hours last night working on the display, etc. I'm taking my time with this door, even though it's simple, it takes a massive
effort on my part to program because it's hard for me to grasp things initially (but once I get them, it's a lot easier).
Oh, and don't forget to use 'with BBSR do...' rather than writing 'BBSR.' in front of every record part, it makes it so much easier to
read the program lateron, IMHO.
What exactly do you mean? I'm not quite sure-in writing the file or
what? I don't know a lot of the shortcuts in Pascal, but I'm hoping
that my skills will improve enough for me to figure things out. ;) I
just started using included files (for my help files and such-makes
the main source code much easier to read).
Thanks again for your help. Much appreciated!
Quoting Sean Dennis to Björn Felten <=-
No problem, just keep 'em coming! :)
I have a good one, but it might be kinda long to post in here.
Basically, I'm having problems with the search "engine" I put into the program. I can now add and write to the file, thankfully. Let me get
a few other things done and then we can work on the search stuff.
That's really not that much for me to fix-it's just a stupid error on
my part somewhere.
Thankfully, it DOES work. I'm suprised at how much I actually
I have a good one, but it might be kinda long to post in here. Basically, I'm >having problems with the search "engine" I put into the program. I can now ad >and write to the file, thankfully. Let me get a few other things done and the
we can work on the search stuff. That's really not that much for me to fix-it's just a stupid error on my part somewhere.
Thankfully, it DOES work. I'm suprised at how much I actually remember.
Well you can always posting using the web interface here :) Also are
you storing the data in a sequential or random data file?
Sysop: | digital man |
---|---|
Location: | Riverside County, California |
Users: | 1,038 |
Nodes: | 15 (0 / 15) |
Uptime: | 28:27:53 |
Calls: | 865 |
Calls today: | 16 |
Files: | 95,180 |
D/L today: |
14,823 files (1,488M bytes) |
Messages: | 465,165 |
Posted today: | 1 |