PC SOFT

FOROS PROFESIONALES
WINDEVWEBDEV y WINDEV Mobile

Inicio → WINDEV 2024 → [WD20] HFSQL - Compare structures of Analysis File and Physical File
[WD20] HFSQL - Compare structures of Analysis File and Physical File
Iniciado por guest, 04,may. 2016 14:50 - 2 respuestas
Publicado el 04,mayo 2016 - 14:50
Hi,
is there a function or a method to check if the structure of the physical file is the same of the description in analysis?

I use HCreationIfNotFound and crashes because of the different structure.

Thanks,
Dann
Publicado el 04,mayo 2016 - 14:59
try with HCheckStructure function
Publicado el 04,mayo 2016 - 18:38
Hi Dann,
The following code will catch the different structures:

WHEN EXCEPTION IN
HCreationIfNotFound("*",hChangeCharset)
DO
SWITCH HError()
CASE 70016:
Info("Data needs reorganization")
// here you can add code to reorganize data //
EndProgram()
OTHER CASE:
Error("HFSQL error: " + HError())
EndProgram()
END
END