Ver Mensaje Individual
  #1  
Antiguo 26-07-2016
aromigaret aromigaret is offline
Miembro
 
Registrado: jun 2011
Posts: 68
Reputación: 13
aromigaret Va por buen camino
como poner '√' en campo nchar ?

Hola, estoy intentando hacer lo siguiente:

Al llenar una tabla con valores, luego hago lo siguiente:

Código Delphi [-]
 AUXILIAR.SQL.Text:='UPDATE '+ BASE_ARTICULOS + ' SET MARCA = ' + QUOTEDSTR('√') + ' WHERE VENDER=1';
 AUXILIAR.ExecSQL;

Es decir si el campo 'VENDER' es true pone en el campo 'MARCA' el símbolo '√' (Tilde)

en su lugar pone la 'v'.

Al hacer un click con el mouse sobre la columna 'MARCA' de un dbgrid hago que se dispare este procedimiento:

Código Delphi [-]
SIMBOLO:=' ';

    if (ARTICULOS['MARCA'] = NULL) OR (TRIM(ARTICULOS['MARCA']) = '') then SIMBOLO:='√';
   
    ARTICULOS.Edit;
    ARTICULOS['MARCA']:=SIMBOLO;
    ARTICULOS.Post;
    GRILLA_ARTICULOS.RefreshData;

y pone el tilde correctamente.
Que me falta poner o definir en el SQL para que ponga '√' y no 'v' ?
Desde ya muchas gracias
Responder Con Cita