CharlEm80
Messages postés66Date d'inscriptionvendredi 1 septembre 2006StatutMembreDernière intervention 1 août 2012
-
22 mai 2012 à 10:53
CharlEm80
Messages postés66Date d'inscriptionvendredi 1 septembre 2006StatutMembreDernière intervention 1 août 2012
-
22 mai 2012 à 13:51
Bonjour,
Voilà encore une bonne colle.
Je fais tout simplement ceci
var PatientEvents: String;
PatientEvents := UpCase(table2.FieldByName('Patient').AsString);
je reçois [Error]: Incompatible types: 'Char' and 'String' pourtant je mets bien .AsString mais rien n'y fait.
Si je change par ceci
var PatientEvents: String;
PatientEvents := UpCase(table2.FieldByName('Patient'));
je reçois [Error]: Incompatible types: 'Char' and 'TField'
Si je change par ceci
var PatientEvents: Char;
PatientEvents := PChar(UpCase(table2.FieldByName('Patient').AsString));
je reçois [Error]: Incompatible types: 'Char' and 'String'
cs_cantador
Messages postés4720Date d'inscriptiondimanche 26 février 2006StatutModérateurDernière intervention31 juillet 202113 22 mai 2012 à 12:43
Bonjour,
Comment le champ 'Patient' est-il déclaré dans la table ?
Par ailleurs upcase concerne un seul caratère et donc dans ce cas, la procédure n'est pas adapatée..