FOROS PROFESIONALES
WINDEV
,
WEBDEV
y
WINDEV Mobile
Inicio
|
Mensajes recientes
|
Conéctese...
|
Desconectar
|
Español
Inicio
→
WINDEV 2024
→
Date Field Displaying Inconsistencies in Report: Client-Specific Issue
Date Field Displaying Inconsistencies in Report: Client-Specific Issue
Iniciado por Kaique Silva, 14,feb. 2024 20:21 - 1 respuesta
Conéctese…
Kaique Silva
#1
Publicado el 14,febrero 2024 - 20:21
I have a report that is displaying conflicting information in a date field within a table.
The code I used was:
ConnectToDataBase()
IF NOT SQLExec(SQL_SCRIPT, DATA_SOURCE)
Error(errorInfo())
ELSE
WHILE SQLFetch(DATA_SOURCE) = 0
line is int = tableAddLine(Table)
// The problem is here
Table.dateIssued = [line] = SQLGetCol(ds_data, 9)
// Other code content.
END
The code works and fills the table correctly as expected, however, the dateIssued field is coming out broken, e.g., //2022, /00/_
This is happening only on my client's computer, and on my computer, it works normally.
I tried the following solution:
I changed the column field from Date to text and used the function dateToString(SQLGetCol(ds_data, 9)), but it didn't work as I expected, presenting the same type of problem.
Can anyone help me?
Informar
0
0
Riebens
#2
Miembro registrado
80 mensajes
Publicado el 15,febrero 2024 - 12:27
Hi
If i remember correctly, SqlGetCol is returning a sting value by default. You might need stringtodate() function to fill the right value in the table. Also use datevalid() to make sure you are actually getting a valid date.
--
Ben Dell
Riebens Computers Pty Ltd
Southern Africa PcSoft Distributor
www.windevsa.co.za
PcSoft Sales, Support and Training
Informar
0
0
→ Volver a WINDEV 2024
WINDEV 2024
WEBDEV 2024
WINDEV Mobile 2024
WINDEV (versiones precedentes)
Français
English
Español
Portuguesa
Fermer cette fenêtre
Búsqueda Tipo
Sólo temas
Todos los mensajes
Periodo Buscar
Cualquier fecha
Última hora
Última 24 horas
Última semana
Último mes
Último año
Cancelar
Vista previa del mensaje
Añadiendo una imagen
Importar una imagen desde una URL
Enviar una imagen desde un archivo de su disco
Arrastrar un archivo o click en "Examinar..."
o
Cancelar
0%
WLanguage
SQL
XML, HTML
JAVA, Javascript
Texto