1. Add a Button to the form
2. Add the code to the button
3. Change the myClasslibName, myClassName & desciption to what you want.
4. Run the form
5. Click on the button
6. Close form
7. Edit the Class you just created and remove the button
>hi,
>thank you for reply,
>ok, if my program name is conv.prg....i have not any button at my program...
>sorry what the steps..
>thanks
>>Hi,
>>
>>As Glenn said just add following in the click event of the Button and change the myClasslibName, myClassName & desciption to what you want.
>>
>>
thisform.saveasclass("myClasslibName","myClassName","Some description if you need it")
Regards N Mc Donald