Bonjour Cor Nouws
Message du 2006-11-27 21:27:

I use the trick when generating documents from a dialog:
For different document types, different txtFields are vissible.
Contents of txtFields has to be put in userfields in the document.
I use the same names for userfields and txtFields, so use a loop to fill all userfields ;-) Works great, but if for one reason or another, a txtField is hidden but not empty, the userfield may not be filled. So I needed a check on visibility of the txtField. Thanks for that.


For problems like this, I would use the Tag property of the model of the control to memorize information. This property is a string, you can store various data in it.

myControl.Visible = False
myControl.Model.Tag = "NotUsed"
. . .
if myControl.Model.Tag = "NotUsed"  then ... else ...

   Bernard

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to