Forum |  HardWare.fr | News | Articles | PC | S'identifier | S'inscrire | Shop Recherche
1218 connectés 

  FORUM HardWare.fr
  Programmation

  [Delphi] TPoint -> String

 


 Mot :   Pseudo :  
 
Bas de page
Auteur Sujet :

[Delphi] TPoint -> String

n°58188
cybrix
Posté le 07-09-2001 à 00:54:55  profilanswer
 

heuuuu ces fesable ca? :| merci... a cause je suis bloquer sur ce probleme :/// snif

mood
Publicité
Posté le 07-09-2001 à 00:54:55  profilanswer
 

n°58207
rufo
Pas me confondre avec Lycos!
Posté le 07-09-2001 à 09:22:31  profilanswer
 

la classe TPoint c'est que 2 vars LongInt
t'as qu'à faire un truc du genre:
...
var
   chaine: string;
   MonPoint: TPoint ;
...
   chaine := inttostr(MonPoint.x) + ' ' + inttostr(MonPoint.y) ;
...
 
voklà, je sais pas si c'est exactement ce que tu voulais faire..., mais je vois pas d'autre solution :)

n°58219
antp
Super Administrateur
Champion des excuses bidons
Posté le 07-09-2001 à 09:38:04  profilanswer
 

tu l'avais déjà posée cette question, et j'y avais déjà répondu :  
http://forum.hardware.fr/sqlforum/ [...] owntopic=1
 

Citation :


coord: string;
point1: TPoint;
 
coord := Format('(%d,%d)',[point1.x,point1.y]);
 
et ça te fait une chaîne avec par ex "(0,4)"


---------------
mes programmes ·· les voitures dans les films ·· apprenez à écrire
n°58656
cybrix
Posté le 08-09-2001 à 21:53:04  profilanswer
 

merci :)


Aller à :
Ajouter une réponse
  FORUM HardWare.fr
  Programmation

  [Delphi] TPoint -> String

 

Sujets relatifs
Variables d'environnement sous DELPHI[DELPHI] A propos du composant TWebBrowser
DELPHI + BDD (champ d'aggregat)[Delphi] MDIForm et TIMage
[Delphi] DirectShow et lecture avi.DELPHI + BDE
[DELPHI] random pas si random que ca[DELPHI] randomize
[Delphi] TPoint en String 
Plus de sujets relatifs à : [Delphi] TPoint -> String


Copyright © 1997-2022 Hardware.fr SARL (Signaler un contenu illicite / Données personnelles) / Groupe LDLC / Shop HFR