Utilisation de Chr()

Résolu
tinux Messages postés 244 Date d'inscription mercredi 13 avril 2005 Statut Membre Dernière intervention 21 octobre 2013 - 7 févr. 2006 à 09:45
tinux Messages postés 244 Date d'inscription mercredi 13 avril 2005 Statut Membre Dernière intervention 21 octobre 2013 - 7 févr. 2006 à 11:11
Bonjour ! J'ai un petit problème... j'utilise dans mon prog la fonction Chr(val) d'un caractère ascii
J'aimerais savoir à partir de quelle valeur Chr s'annule...

par exemple Chr(1235) ne vas pas marcher...
Merci @+

3 réponses

crenaud76 Messages postés 4172 Date d'inscription mercredi 30 juillet 2003 Statut Membre Dernière intervention 9 juin 2006 28
7 févr. 2006 à 09:52
Les codes ascii vont de 0 à 255

CR
3
saebe Messages postés 12 Date d'inscription lundi 6 février 2006 Statut Membre Dernière intervention 8 février 2006
7 févr. 2006 à 09:53
Salut



Dans le help tu trouve cela, j'espère que ça t'aide?



saebe

***

Syntax



Chr(charcode)



The required charcode [javascript:hhobj_6.Click() argument] is a [javascript:hhobj_7.Click() Long] that identifies a character.



Remarks



Numbers from 0 – 31 are the same as standard, nonprintable [javascript:hhobj_8.Click() ASCII] codes. For example,
Chr(10) returns a linefeed character. The normal range for
charcode is 0 – 255. However, on [javascript:hhobj_9.Click() DBCS] systems, the actual range for
charcode is -32768 to 65535.



Note The ChrB function is used with byte
data contained in a String. Instead of returning a character, which may
be one or two bytes, ChrB always returns a single byte. The ChrW
function returns a String containing the [javascript:hhobj_10.Click() Unicode] character except on platforms
where Unicode is not supported, in which case, the behavior is identical to the
Chr function.


<!--FOOTER_START-->
3
tinux Messages postés 244 Date d'inscription mercredi 13 avril 2005 Statut Membre Dernière intervention 21 octobre 2013
7 févr. 2006 à 11:11
Merci beaucoup tous les deux !
0
Rejoignez-nous