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 / Trouble Ending a Function

Author
Message
Brent_Seraphim
21
Years of Service
User Offline
Joined: 1st Dec 2002
Location: United States
Posted: 30th Dec 2002 22:53
Currently I'm having some trouble ending my fucntion.

Function Refresh_Character_Inventory()
Cycle_N = 0
TempCount = 0

Cycle_Start:
TempCount = 1 + Cycle_N

Do 53000 lines of code..blhe bleh blahCycle_N = Cycle_N + 1


If Cycle_N
"Laugh to scorn the power of man..."
MrTAToad
22
Years of Service
User Offline
Joined: 26th Aug 2002
Location: United Kingdom
Posted: 30th Dec 2002 22:57
eh ?

Good news everyone! I really am THAT good...
http://www.nickk.nildram.co.uk/ for great plug-ins - oh my, yes!
Brent_Seraphim
21
Years of Service
User Offline
Joined: 1st Dec 2002
Location: United States
Posted: 30th Dec 2002 23:00
Lol, Sorry for some reason the last lines of my message were cut off. Lets try it again.

Currently I'm having some trouble ending my fucntion.

Function Refresh_Character_Inventory()
Cycle_N = 0
TempCount = 0

Cycle_Start:
TempCount = 1 + Cycle_N

Do 53000 lines of code..blhe bleh blahCycle_N = Cycle_N + 1


If Cycle_N < 6 Then Goto Cycle_Start
EndFucntion


I get an error message at the last line saying "Command out of place at line 52863". Thanks in andvance!

"Laugh to scorn the power of man..."
IanM
Retired Moderator
22
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 30th Dec 2002 23:46
You are probably hitting some kind of compiler limit. You probably want to make your functions smaller.

Any function I write that is over 50 lines of code makes my fingers itch to break it down further. Smaller is better for functions in my opinion.
Brent_Seraphim
21
Years of Service
User Offline
Joined: 1st Dec 2002
Location: United States
Posted: 31st Dec 2002 00:21
Roger Roger, I'll try that.

"Laugh to scorn the power of man..."

Login to post a reply

Server time is: 2024-11-23 20:10:04
Your offset time is: 2024-11-23 20:10:04