This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

Odd errors...

Old posts that have not been replied to for several years.
Locked
J
Jimbo

Post by Jimbo »

What does this mean?

Tcl error in script for 'timer33':
"08" is an invalid octal number
M
Mordred

Post by Mordred »

I'd say timer33 is executing a command which is expecting an octal number (eg. 037777777777) and instead it's getting an integer (08). Might be a scan command or a binary command.
P
Petersen
Owner
Posts: 685
Joined: Thu Sep 27, 2001 8:00 pm
Location: Blackpool, UK

Post by Petersen »

no, more likely its a command expecting the decimal integer 8, but something has prepended it with a 0, thus making tcl try and interprate it as octal (all numbers starting with 0 are treated as octal in tcl). and since 8 is an invalid octal value, it errors
p
ppslim
Revered One
Posts: 3914
Joined: Sun Sep 23, 2001 8:00 pm
Location: Liverpool, England

Post by ppslim »

I am guessing you are working with a time bind?

Run the numbers through this before testing it.

Code: Select all

proc oct_to_dec {number} {
  while {[string index $number 0] == "0"} {
    set number [string range $number 1 end]
  }
  if {$number == ""} { set number 0 }
  return $number
}
Locked