• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

2 easy questions

 
Ranch Hand
Posts: 750
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
ADDITION
I don't understand exactly whats going on here.
If I do 37+79, I get the result 116, which is Fine.

If I do 037+079, I get 110, which I don't understand.
So next I tried...
alert("037+079="+037+"+"+079);
which gives 037 as 31, and 079 as 79, hence the 110.
I thought it could be octal at first, but it isn't, and
it's not hex either.
Can someone explain why 037 is 031, and 079 is 079?
Thanks

Secondly
DOUBLE CLICKING ON TEXT FIELD
I had a question, which said when double clicking on a text field,
which event occurs.
Well its either Focus or Select.
But I then wrote a program, and when you double click a text field...
Sometimes it highlights, and its a SELECT, but other times, its just a
FOCUS.

I guess the answer is FOCUS, but that is a vague question in my opinion.

Thanks very much if you can help with either of these.
[ June 18, 2006: Message edited by: Bear Bibeault ]
 
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
9 is not an octal digit.
 
reply
    Bookmark Topic Watch Topic
  • New Topic