cs_etrix
Messages postés55Date d'inscriptionmardi 25 mars 2003StatutMembreDernière intervention30 janvier 2004
-
5 avril 2003 à 20:55
speletux
Messages postés30Date d'inscriptionjeudi 31 mars 2005StatutMembreDernière intervention 6 février 2014
-
14 sept. 2005 à 18:36
salut !
voila j'ai mon calcul:
with Form1 do
C2.Caption:= InttoStr(strToInt(E1.Caption) / strToInt(K2.Caption) - strToInt(k1.Caption) * strToInt(100);
ne marche pas
[Erreur] Unit1.pas(112): Types incompatibles : 'String' et 'Integer'
Emandhal
Messages postés194Date d'inscriptiondimanche 2 mars 2003StatutMembreDernière intervention10 octobre 20063 6 avril 2003 à 12:50
tu fait un "strToInt(100)" alors que 100 était pas une string mais un integer 2 solutions pour corriger :
C2.Caption:= InttoStr(strToInt(E1.Caption) / strToInt(K2.Caption) - strToInt(k1.Caption) * strToInt('100');
ou
C2.Caption:= InttoStr(strToInt(E1.Caption) / strToInt(K2.Caption) - strToInt(k1.Caption) * 100;
Tout problème a sa solution... Mais en général, c'est jamais la bonne...