FTP | CCD | Buscar | Trucos | Trabajo | Foros |
|
Registrarse | FAQ | Miembros | Calendario | Guía de estilo | Temas de Hoy |
|
Herramientas | Buscar en Tema | Desplegado |
|
#1
|
|||
|
|||
fallo : incompatible types : String and TQRDBText
Sabeis que tengo que hacer para poder meterle el valor ???
Tengo ahora puesto esto : nombre4.caption := 'INVOICE Number' + numerofactura; Y numerofactura es TQRDBText y no me deja hacer esto en codigo. ¿Alguna idea?. Gracias anticipadas. |
#2
|
||||
|
||||
Código:
nombre4.caption := 'INVOICE Number' + numerofactura.text;
__________________
Saludos, Peter Investment |
#3
|
|||
|
|||
Cita:
El numerofactura es un campo que ya tengo .... y es un tqrdbtext ¿alguna otra idea? |
#4
|
||||
|
||||
Uppss...
Será .caption???
__________________
Saludos, Peter Investment |
#5
|
|||
|
|||
Cita:
nombre4.caption := 'FACTURA Nº' + numerofactura.caption; Me pone : FACTURA Nº numerofactura Probe a poner el : nombre4.caption := 'FACTURA Nº' + numerofactura.datafield; Pero tampoco va ... ¿alguna otra idea? |
#6
|
||||
|
||||
Empecemos por el principio:
numerofactura es un TQRDBText que debes tener asociado a un Dataset y a un datafiled Si en el evento OnPrint del componente pones Código:
ShowMessage(Value) Si en ese mismo evento pones Código:
nombre4.caption := 'INVOICE Number' + Value;
__________________
Saludos, Peter Investment |
|
|
|