sorry.

i have made a confusion between $SettingsButton and $SettingsForm !!!

but with a very simple change (add "dim $settingsform" in the function), now it is working as wanted. Without this line, i had an error :
ERROR : IDispatch pointers not allowed in expressions!
Script: D:\toto.kix
Line : 1
_________________________
Christophe