If-Then-Else question

Kraj

Registered User.
Local time
Today, 17:30
Joined
Aug 20, 2001
Messages
1,470
Again, trying something new exposes my ignorance. I'll start simple and elaborate if neccesary.

I have an If statement where I need to use the same code after two Else's. Is there a way I can point to the code rather than copy it after the second Else.

I haven't been able to find any If statement examples that do this.
 
That kinda makes sense, doesn't. Now I have to figure out how to do that.

BTW...do you just hunt down my posts so you can answer them? :)


EDIT: Worked like a charm. I guess if I'm going to keep writing code I'm going to have to learn to think like a programmer again. *shudder* Prior to this database, I haven't coded a thing since COBAL in college. Yuck.
 
Last edited:
Yeah, at the time they taught it to us it was only in use on mainframe legacy systems, which just happened to be in use at the two biggest comanies that recruited from my college. Coincidence? Hooray, now I've learned a skill I hate to do a job I don't want at a company that didn't want to hire me anyway.
 
not as long as COBOL though.....
- Don't pick on COBOL. We're very good friends.

Do you know the origin of the term "bug"?

It was coined in the early 60's by a team led by then Captain Grace Hopper (US Navy, retired Admiral, deseased) when developing the COBOL language. Their "mainframe" was a room sized computer with vacuum tubes. When the machine died one day, someone went inside to see what was the problem and discovered a moth that had fused to a hot vacuum tube.
 
Kraj said:
BTW...do you just hunt down my posts so you can answer them? :)

No, but I like to follow you to work ;)
 
Kraj said:
Is it my ass? I can wear tighter pants for you ;)

Doesn't matter to me what you wear; but bright colors make it easier for me to spot you.. lol..

peace.
 

Users who are viewing this thread

Back
Top Bottom