High-Tech
Santé-Médecine
Droit-Finances
CodeS-SourceS
Inscription
Plan
Connexion
Rechercher un code, un tuto, une réponse
Accueil
Forum
Tutoriels
Codes Sources
Snippets
Top membres
Tous les langages
Delphi / Pascal
Java
Python
SQL
RegEx
Flash
ASM
IRC
Graphisme
PDA
ColdFusion
Foxpro
Flex
Visual Basic / VB.NET
Forum
Tutoriels
Codes Sources
Snippets
Top membres
PHP
Forum
Tutoriels
Codes Sources
Snippets
Top membres
C/C++/C++.NET
Forum
Tutoriels
Codes Sources
Snippets
Top membres
Javascript
Forum
Tutoriels
Codes Sources
Snippets
Top membres
C#/.NET
Forum
Tutoriels
Codes Sources
Snippets
Top membres
ASP/ASP.NET
Forum
Tutoriels
Codes Sources
Snippets
Top membres
Accueil
Connexion
Déposer un code
Code
Recherche
Haut
Accueil
Forum Codes-Sources
Delphi / Pascal
Sujet Précédent
Sujet Suivant
Conversion d un integer en string???
VashTheStampede
Messages postés
8
Date d'inscription
mardi 31 octobre 2000
Statut
Membre
Dernière intervention
11 septembre 2002
- 6 sept. 2002 à 09:41
cs_bloom1
Messages postés
328
Date d'inscription
jeudi 26 août 2004
Statut
Membre
Dernière intervention
8 mars 2007
-
5 août 2005 à 19:36
Comment convertir une variable de type integer en string?
Et s il s agit d une fonction, comment l integrer a une procedure de type "OnClick"?
Merci d'avance.
Afficher la suite
A voir également:
Delphi integer to string
Delphi integer
- Meilleures réponses
Delphi int to string
- Meilleures réponses
Integer to string delphi
-
Forum - Delphi / Pascal
Delphi word to string
-
Forum - Delphi / Pascal
Delphi real to string
-
Forum - Delphi / Pascal
Delphi double to string
-
Forum - Delphi / Pascal
Delphi boolean to string
✓
-
Forum - Delphi / Pascal
4
réponses
Réponse 1 / 4
PhGORMAND
Messages postés
54
Date d'inscription
jeudi 3 janvier 2002
Statut
Membre
Dernière intervention
20 juillet 2006
6 sept. 2002 à 12:46
Var
ChaineEntier : String;
Valeur : Integer;
Procedure TForm1.Button1Click(Sender : TObject);
begin
chaineEntier := IntToStr(Valeur);
Caption := ChaineEntier;
// Ou bien : Caption := InToStr(Valeur);
end;
Voir aussi StrToInt, StrToFloat
Réponse 2 / 4
cs_Delphiprog
Messages postés
4297
Date d'inscription
samedi 19 janvier 2002
Statut
Membre
Dernière intervention
9 janvier 2013
31
6 sept. 2002 à 13:59
Conversion Integer -> string :
var
i : integer;
s : string;
begin
s := '123';
i := StrToIntDef(S, 0);
S : = IntToStr(i);
end;
Pour la deuxième question, qu'appelles-tu "intégrer dans une procédure de type OnClick" ?
May Delphi be with you.
Delphi advanced
Réponse 3 / 4
VashTheStampede
Messages postés
8
Date d'inscription
mardi 31 octobre 2000
Statut
Membre
Dernière intervention
11 septembre 2002
7 sept. 2002 à 07:48
merci de répondre à une question aussi basique, mais quand on a pas l'habitude de l'aide delphi ca reste un peu flou.
Réponse 4 / 4
cs_bloom1
Messages postés
328
Date d'inscription
jeudi 26 août 2004
Statut
Membre
Dernière intervention
8 mars 2007
5 août 2005 à 19:36
Et pour convertir un Int en PChar comment on fait ???
Afficher toute la discussion
Votre réponse
Discussions similaires
Le fameux message: "Could not convert variant of type (Null) into type (String)"
Lunasoft
-
19 févr. 2010 à 19:50
Kesare01
-
12 janv. 2011 à 04:57
warning: deprecated conversion from string constant to ‘char*’
flateur18
-
19 nov. 2009 à 13:55
CptPingu
-
20 nov. 2009 à 15:51
Comment convertir le "Double" en "Integer"?
BakaSora
-
8 mai 2005 à 21:37
yopai_v
-
9 sept. 2006 à 21:58
Extended en Integer
Yil2201
-
15 août 2007 à 17:09
cirec
-
17 août 2007 à 13:55
conversion real en string
cs_frouxguillaume
-
14 juin 2004 à 22:12
frouxguillaume
-
15 juin 2004 à 11:22
convetir un word en string
zewishper
-
28 juin 2004 à 18:25
japee
-
28 juin 2004 à 22:46
A voir également
Petit souci avec BoolToStr
[VB.NET] BYTE ARRAY TO STRING
Convertir un string en cardinal
Conversion string ---> byte
Comment convertir le