Hope I am keeping you all on your toes with the bombardment of questions.
In the QB days, there was no solution for this. I kept files with a blank UDT in it, and read the file if I wanted to erase the UDT.
But this is 2008, and we have FreeBasic.
Unfortunately, my searching cant find anything.
Because I have a udt's within udt's it would be long winded to zero every field. And even at startup, I cant rely on the udt being blank.
Erase UDT doesnt work.(shame)
Making a udt like
Code: Select all
Fill(1 to Len(Myudt)) as Byte
Somebody out there has an easy solution, I am sure.