Pritpal Bedi 08b930d6d7 2010-03-19 01:40 UTC-0800 Pritpal Bedi (pritpal@vouchcac.com)
* contrib/hbide/ideskeletons.prg
    ! Meta concept enhanced further.
        <-NAME=PROMPT> ; then NAME will be the meta and string 
      returned by PROMPT dialog will be assigned to <-NAME>
      for next occurances. The assignment is done only with 
      <-PROMPT> meta.

      This feature is especially useful when skeleton is built
      defining a class:

      --- SKELETON ---

      #include "common.ch"
      
      /*------------------------------*/
      
      CLASS <-NAME=PROMPT> INHERIT IdeObject
         
         DATA  oUI
      
         METHOD new( oIde )
         METHOD create( oIde )
         METHOD destroy()
      
         ENDCLASS
      
      /*------------------------------*/
      
      METHOD <-NAME>:new( oIde )
      
         ::oIde := oIde
      
         RETURN Self
      
      /*------------------------------*/
      
      METHOD <-NAME>:create( oIde )
      
         DEFAULT oIde TO ::oIde
         ::oIde := oIde
      
         RETURN Self
      
      /*------------------------------*/  
            


      --- INSERTION ( after input "MyNewClass" in the dialog ) ---

      #include "common.ch"
      
      /*------------------------------*/
      
      CLASS MyNewClass INHERIT IdeObject
         
         DATA  oUI
      
         METHOD new( oIde )
         METHOD create( oIde )
         METHOD destroy()
      
         ENDCLASS
      
      /*------------------------------*/
      
      METHOD MyNewClass:new( oIde )
      
         ::oIde := oIde
      
         RETURN Self
      
      /*------------------------------*/
      
      METHOD MyNewClass:create( oIde )
      
         DEFAULT oIde TO ::oIde
         ::oIde := oIde
      
         RETURN Self
      
      /*------------------------------*/
2010-03-19 08:50:45 +00:00
Description
Harbour Core — Reference source for Five development
172 MiB
Languages
C 80.3%
xBase 17.8%
Makefile 0.6%
C++ 0.4%
Harbour 0.4%
Other 0.3%