PC SOFT

FORUMS PROFESSIONNELS
WINDEVWEBDEV et WINDEV Mobile

Accueil → WINDEV 2024 → Indirection question
Indirection question
Débuté par John Fligg, 16 avr. 2018 12:13 - 3 réponses
Posté le 16 avril 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
Posté le 16 avril 2018 - 13:37
The only way i know is searching in the result of the HListItem function
Posté le 16 avril 2018 - 13:47
Hi John,

I find this Help page useful:
https://help.windev.com/en-US/…
Posté le 16 avril 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.