Club Delphi  
    Paypal   FTP   CCD     Buscar   Trucos   Trabajo   Foros

Go Back   Foros Club Delphi > Principal > Varios
Register FAQ Members List Calendar Guía de estilo Today's Posts

Coloboración Paypal con ClubDelphi

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 31/10/2008
Sr.Scorpion's Avatar
Sr.Scorpion Sr.Scorpion is offline
Miembro
 
Join Date: Mar 2005
Posts: 92
Poder: 22
Sr.Scorpion Va por buen camino
Problema con el caracter '

Hola

Tengo el siguiente problema tengo un reporte en donde tengo q procesar la duracion y se me puede mostrar de la siguiente forma 00:00'17 ó 00:00:17 tengo la siguiente condicion

Código Delphi [-]
 If (Copy(Cad,Pos(':',Cad) + 3,1) = ':') or (Copy(Cad,Pos(':',Cad) + 3,1) = ''') Then

por supuesto q me da error.... en la ultima condicion... alquien se sabe el equivalente en hexadecimal o lo q sea para sustituir el caracter '

Saludos
__________________
La paciencia es un árbol de raíz amarga pero de frutos muy dulces.

Sr.Scorpion
Reply With Quote
  #2  
Old 31/10/2008
StartKill's Avatar
StartKill StartKill is offline
Miembro
 
Join Date: Jan 2004
Posts: 299
Poder: 23
StartKill Va por buen camino
Holas

Original del Sr. Scorpion
Quote:
If (Copy(Cad,Pos(':',Cad) + 3,1) = ':') or (Copy(Cad,Pos(':',Cad) + 3,1) = ''') Then

por supuesto q me da error.... en la ultima condicion... alquien se sabe el equivalente en hexadecimal o lo q sea para sustituir el caracter '
If (Copy(Cad,Pos(':',Cad) + 3,1) = ':') or (Copy(Cad,Pos(':',Cad) + 3,1) = char(39)) Then

Your friend

StartKill
Lima-Perú

Last edited by StartKill : 31/10/2008 at 18:25. Reason: Tipografia
Reply With Quote
  #3  
Old 31/10/2008
DarkMan's Avatar
DarkMan DarkMan is offline
Miembro
 
Join Date: Jul 2006
Posts: 102
Poder: 21
DarkMan Va por buen camino
Mirando la ayuda de delphi:
Quote:
A character string, also called a string literal or string constant, consists of a quoted string, a control string, or a combination of quoted and control strings. Separators can occur only within quoted strings.
A quoted string is a sequence of up to 255 characters from the extended ASCII character set, written on one line and enclosed by apostrophes. A quoted string with nothing between the apostrophes is a null string. Two sequential apostrophes in a quoted string denote a single character, namely an apostrophe. For example,
'BORLAND' { BORLAND }
'You''ll see' { You'll see }
'''' { ' }
'' { null string }
' ' { a space }
A control string is a sequence of one or more control characters, each of which consists of the # symbol followed by an unsigned integer constant from 0 to 255 (decimal or hexadecimal) and denotes the corresponding ASCII character. The...
Sería de esta forma:
Código Delphi [-]
If (Copy(Cad,Pos(':',Cad) + 3,1) = ':') or (Copy(Cad,Pos(':',Cad) + 3,1) = '''') Then
__________________
"La recompensa de una buena acción está en haberla hecho"
Reply With Quote
  #4  
Old 31/10/2008
Sr.Scorpion's Avatar
Sr.Scorpion Sr.Scorpion is offline
Miembro
 
Join Date: Mar 2005
Posts: 92
Poder: 22
Sr.Scorpion Va por buen camino
Todo resuelto... muchas gracias
__________________
La paciencia es un árbol de raíz amarga pero de frutos muy dulces.

Sr.Scorpion
Reply With Quote
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
leer caracter por caracter, una linea de un memo douglas OOP 1 05/10/2007 06:59
Problema con caracter ALT + 167 Paradiso Firebird e Interbase 2 22/07/2006 22:56
Ayudaaaa!!! Tabla ASCII: El carácter Ñ vs. carácter ¥ Berto2003 Varios 5 26/07/2005 15:37
Caracter \r\n FRANKER Varios 3 03/06/2004 10:02
busqueda caracter a caracter Irina SQL 3 20/05/2003 13:12


All times are GMT +2. The time now is 12:34.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
Traducción al castellano por el equipo de moderadores del Club Delphi
Copyright 1996-2007 Club Delphi