Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers DBPro Corner / one more question

Author
Message
matt rochon
21
Years of Service
User Offline
Joined: 15th Mar 2003
Location: Canada
Posted: 26th Mar 2003 00:01
i ran into an error saying i had too many chars in a line of code (255+)

is there a way to split a line of code to put some on the next line?
matt rochon
21
Years of Service
User Offline
Joined: 15th Mar 2003
Location: Canada
Posted: 26th Mar 2003 00:11
someones gotta know the answer here
andrew11
21
Years of Service
User Offline
Joined: 23rd Feb 2003
Location: United States
Posted: 26th Mar 2003 00:36
Depends. Give us your line of code.

"All programmers are playwrights and all computers are lousy actors." -Anon.

<--- Just.. changed.. my. avatar... Ouch, my head!
matt rochon
21
Years of Service
User Offline
Joined: 15th Mar 2003
Location: Canada
Posted: 26th Mar 2003 00:41
lol its not doin it anymore... dont i feel stupid
IanM
Retired Moderator
22
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 26th Mar 2003 00:47
When you have a long string of ands in an if statement, you can break them down into multiply if's.



If (as I suspect) DB and DBPro do not use shortcut evaluation, then this might even be faster than the one line method.

Login to post a reply

Server time is: 2024-11-24 07:19:59
Your offset time is: 2024-11-24 07:19:59