Subject: Calculator Using Postback - page 256
Posted By: ukbrit Post Date: 11/1/2004 4:41:28 PM
Having just spent 1+ hours trying to find out why my calculator didn't work I thought I would share this snippet with you other newbies...
In the code below I thought there were 4 number 1's  in fact there are only 2, after the workd 'Number' the other 2 are the letter L in lowercase!!!Apply that throughout the rest of the code and hey presto it works!

dblNumber1 = CDbl(Request.Form ("txtNumber1"))

I know it may be elemental for those of you who are experienced but this sort of thing does catch the rest of us out!  I am now a much wiser man ...

Regards

Iain

Reply By: Imar Reply Date: 11/2/2004 4:04:27 PM
Hi Iain,

Thanks for pointing this out. I am sure some of the forum's visitors will benefit from this in the future.

The differences between the 1 and the l are indeed hard to spot, both on screen as in print.

Cheers,

Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
While typing this post, I was listening to: Downfall by Laurent Garnier (Track 11 from the album: Unreasonable Behaviour) What's This?

Go to topic 21404

Return to index page 726
Return to index page 725
Return to index page 724
Return to index page 723
Return to index page 722
Return to index page 721
Return to index page 720
Return to index page 719
Return to index page 718
Return to index page 717