PC SOFT

FOROS PROFESIONALES
WINDEVWEBDEV y WINDEV Mobile

Inicio → WINDEV 2024 → Indirection question
Indirection question
Iniciado por guest, 16,abr. 2018 12:13 - 3 respuestas
Publicado el 16,abril 2018 - 12:13
Is there a way to find out if a field exists in a record using indirection? Something like:

if exist {pFilename + ".GUID"} .....

If can file if exists for files etc. but not a field name. I am sure there is and I am just missing it.

Thx

john
Publicado el 16,abril 2018 - 13:37
The only way i know is searching in the result of the HListItem function
Publicado el 16,abril 2018 - 13:47
Hi John,

I find this Help page useful:
https://help.windev.com/en-US/…
Publicado el 16,abril 2018 - 20:30
John,

If you must use indirection then I suppose you could test for field existence by trying to use the field (using indirection syntax) and doing so within an exception trap construct. Then if the exception triggers you know the field does not exist otherwise, if no error, then it does.