Scrive Arno Garrels <[EMAIL PROTECTED]>:

> Maurizio Lotauro wrote:

[...]

> > I try to explain it better.
> > If you drop the AuthType property (or any other published one) and an
> > application will recompiled without open the unit that contains the
> > component then you get an error at run time when the form will
> > created because in the dfm it is still a property with that name.
> > What I suggested is to avoid this error. Then you can do what you
> > want: use the value that is in the dfm to have the same effect (in
> > that case only one authentication will used) or simply ignore it.
> 
> Do we really need that?

For this specific case probably not. The AuthType was introduced quite 
recently so changing is should be quite harmless.
But in general I think that what I suggest could be useful when you made some 
changes and the component automatically convert the old properties values into 
the new one. Otherwise the old value will lost.

> Working application code must be slightly
> adjusted anyway, one rule you learn in the first VCL lessons is
> to open any form of a project when components have been updated.

I don't think that lot of developers doing so :-)
In particular you should reopen all forms of all projects. If you don't do it 
then when you reopen an old project and don't remember to reopen all forms 
then you will get an AV at run time.

> Maybe usefull when the project has plenty of forms?

This could be a good reason :-)
As said this is a method that could be used to inizialize a new proerty with 
the value of old one. 
For example, what is the default of AuthTypes?
If it is [] then if is was atNTLM the setting will lost.
If it is all set then if it it was atNone the setting will completly different.

As said, most probably it this specific case doesn't matter.
But I think that it is important to know that exists a method to automatically 
convert an old property.


Bye, Maurizio.

----------------------------------------------------
This mail has been sent using Alpikom webmail system
http://www.alpikom.it

-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://www.elists.org/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be

Reply via email to