Eurico,
This class below will do what you want.

Dave Crozier

***********
* Test Program and project hook
* to set the screen caption to the
* current project namd
*
oProjHook=Createobject("clsProjectHook")
*
Return

**************************************************
*-- Class:        clsProjectHook
*-- ParentClass:  ProjectHook
*-- BaseClass:    ProjectHook
*
Define Class clsProjectHook As ProjectHook
  oCurrent_Project=Null

  Procedure Init
    This.oCurrent_Project=_vfp.ActiveProject
    _Screen.Caption=Juststem(This.oCurrent_Project.Name)
    *
  Endproc
  *
Enddefine





_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: http://leafe.com/archives/byMID/profox/[EMAIL PROTECTED]
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to