Post Reply 
functions with surprising behaviour/fonctions au comportement surprenant
07-16-2022, 09:53 AM (This post was last modified: 07-16-2022 10:48 AM by Tyann.)
Post: #1
functions with surprising behaviour/fonctions au comportement surprenant
Bonjour,

Je me suis aperçu que quelque fonctions de programmation avait un comportement auquel
je ne m'attendais pas.
1) CHAR et ASC :
CHAR(0) renvoie "", mais ASC("") provoque une erreur ??? alors que j'attendais 0.
2) DIM
DIM sur une valeur numérique renvoie 1 alors que j'attendais une erreur 'type d'argument'.

En avez vous vu d'autres ?

Hello,

I noticed that some programming functions had a behaviour I didn't expect.
I was not expecting.
1) CHAR and ASC :
CHAR(0) returns "", but ASC("") causes an error when I expected 0.
2) DIM
DIM on a numeric value returns 1 when I was expecting an 'argument type' error.

Have you seen others?

Sorry for my english
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
functions with surprising behaviour/fonctions au comportement surprenant - Tyann - 07-16-2022 09:53 AM



User(s) browsing this thread: 1 Guest(s)