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

  FORUM HardWare.fr
  Programmation
  Delphi/Pascal

  String To Char Help

 


 Mot :   Pseudo :  
 
Bas de page
Auteur Sujet :

String To Char Help

n°251633
TheWaxWeaZ​le
-
Posté le 22-11-2002 à 18:09:24  profilanswer
 

Hello,
 
je cherche a copier un caractère d'un string dans Lettre mais ca ne marche pas, comment je dois faire ?
 
merci.
 
Lettre est un CHAR
 
Lettre := Copy(Edit1.Text,DataPtr,1);

mood
Publicité
Posté le 22-11-2002 à 18:09:24  profilanswer
 

n°251646
antp
Super Administrateur
Champion des excuses bidons
Posté le 22-11-2002 à 18:27:09  profilanswer
 

si DataPtr est bien un Integer contenant la position du caractère à copier,
 
Lettre := Edit1.Text[DataPtr];


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

  String To Char Help

 

Sujets relatifs
Je rech des cours en francais sur les termcaps, help !help selection sql
help idhelp me !! besoin d'un coup de main (pas de catégorie)
help me !! besoin d'un coup de main (pas de catégorie)Help sur JBuilder 7 ... je suis novice ....
[c] ya un truc que je capte po avec scanf et les char[HELP] Prog pour la base oc Hardware.fr
Spécialiste SGBDR help me !HELP ! Formulaire curses
Plus de sujets relatifs à : String To Char Help


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