[thelist] making the move from php to asp

david.landy at somerfield.co.uk david.landy at somerfield.co.uk
Fri Apr 16 09:09:56 CDT 2004

dim myInt
myInt = rs("integerValue")

if myInt = 9 then
  do fancy stuff
end if

I can still, seemingly randomly, get a type mismatch error.

How bizarre. Not to mention annoying. Is the field value is null?

[1] having the same operator for assignment and comparison is dumb.

Yes, I can see your point. If you start with C or any other language with
distinct assignment and equality operators, and then move to a language with
just one operator for both, it does seem really dumb.

On the other hand, if you grow up with Basic (ahem!), as I did, on an ITT
2020 (that's a European Apple II clone) many more years ago than I care to
remember now, it beggars belief when you start off in C that you can legally
write stuff like:

if (i = -1) {
	some code that always gets executed, regardless of the value of i

I guess it's just what you are used to :)

If you are not the intended recipient of this e-mail, please preserve the
confidentiality of it and advise the sender immediately of any error in
transmission. Any disclosure, copying, distribution or action taken, or
omitted to be taken, by an unauthorised recipient in reliance upon the
contents of this e-mail is prohibited. Somerfield cannot accept liability
for any damage which you may sustain as a result of software viruses so
please carry out your own virus checks before opening an attachment. In
replying to this e-mail you are granting the right for that reply to be
forwarded to any other individual within the business and also to be read by
others. Any views expressed by an individual within this message do not
necessarily reflect the views of Somerfield.  Somerfield reserves the right
to intercept, monitor and record communications for lawful business

More information about the thelist mailing list