- Feature Articles
- CodeSOD
- Error'd
- Forums
-
Other Articles
- Random Article
- Other Series
- Alex's Soapbox
- Announcements
- Best of…
- Best of Email
- Best of the Sidebar
- Bring Your Own Code
- Coded Smorgasbord
- Mandatory Fun Day
- Off Topic
- Representative Line
- News Roundup
- Editor's Soapbox
- Software on the Rocks
- Souvenir Potpourri
- Sponsor Post
- Tales from the Interview
- The Daily WTF: Live
- Virtudyne
Admin
It is true of VBScript in Classic ASP, though. But then VBScript doesn't have "As Integer".
Admin
It's like 1985 all over again. Too bad this hasn't been true since the early 90's (for MS) or late 80's (for Borland).
My god, imagine if you unzipped your VB shareware programs and found a bunch of .bas, .frm, and .res files, and had to buy VB to run them. The horror! It really would be a blast from the past. =D
Admin
Actually, there is some truth in what David claims, if I recall correctly.
Isn't VB like Java 'compiled' to bytecode which is then run by the VB runtime? That way it isn't 'really' compiled, just tokenised or something...
Drak
Admin
Aargg.....
Java, VB.Net (and every other .Net language) are actually really-truly compiled, down to an actual really-truly machine code. It's not the machine code that native to the machine it's run on (or any machine actual produced on silicon) but it not merely "tokenized" by any strech of the word.
Also, before it's run, Java (usually) and VB.Net (always) is recompiled into native machine code for the machine it run on.
Admin
User-agent: Opera
Admin
User-agent now stating IE
Admin
FoxyShadis: "You mean, I'm sure, that's EXACTLY how C and all its babies do. Okay, Java gets nitpicky, but the vast majority of the C standard libary returns 1 or -1 on success, 0 on failure, and if you ever cast a logical comparison to an integer and output it, it'll be -1 or 0. (or 2^(8*x)-1)"
If you ever cast a logical expression to an integer in C or C++, and it comes out as anything but 0 or 1, then throw your compiler away, because it's so basically broken in that area that you can't possibly trust any code coming out of it.
Admin
Don't use the preview screen. :)
Admin
Previewing your post is rather important.. in addition to that you should also check the HTML design, assuming you have that option when you're posting. A lot of the time, the HTML tags get replaced with coded versions of the character which causes all the tags to show up...
Admin
Oh, and for the record..
2. I use Firefox, and haven't had a single problem quoting posts, writing in links, or any of the things that other folks do..
Admin
Thank you James. I too, tear out my hair everytime I hear something like "Java isn't compiled". :-)
Admin
Heck, I think most modern "interpreters" compile down to at least some sort of intermediate representation. Perl does this, so do many scheme and lisp implementations. And those languages with lots of silly parenthesis are considered the epitome of interpreted languages.
Admin
Re True = -1:
No, it isn't what C does. The C boolean operators all accept any non-zero value as true, and return only 1 or 0 for true or false. If you cast a logical comparison to an integer and get anything other than 1 or 0, your compiler is broken. I suggest you ask for your money back.
Your point about the ad hockery of return values of library functions is well taken, though.
Admin
Admin
On Error Goto 0 'or else you really never get any errors
He could com ref the VBScript.lib or whatever the exact name is and then execute it
Admin
Any problems caused? Yes.
If "get list of files" fails wat wewill loop through ?
Now, why do we need next 6 try? Do you really wont to delete file if <FONT face="Courier New">copy file </FONT>will fail ? If not
try (get list of files
loop through files
try (log some file attributes
log some more attributes
log permissions
copy file
delete file)
end loop<FONT face="Courier New">)</FONT>
Admin
You can use rope to shoot yourself - wow, I'd like to see that :D
Admin
no offence guys, but vb aint a real language anyway ;) ,,, hence most vb programs are probably rank with that sort of badness.... you know, from lack of real language skills ;)
Admin
Par for the course would be: