Gene Wirchenko wrote on 2013-09-13: 
>  Dear Vixens and Reynards:
>        I thought I had forgotten a detail so I have reposted with it.
>        
>        The missing detail: My forms are in code.
>        

Gene,

Perhaps this will help

Tracy Pearson
PowerChurch Software


   LOCAL loForm
   loForm = CREATEOBJECT("testform")
   loForm.Show(1)

   RELEASE loForm
   CLEAR CLASS "testform"

   DEFINE CLASS testform as Form
   width = 400
   height = 400
   datasession = 2

   ADD OBJECT grd as grid WITH ;
      top = 10, ;
      left = 10, ;
      width = 380, ;
      height = 380, ;
      columncount = 2, ;
      rowsource = "testdata", ;
      rowsourcetype = 1, ;
      anchor = 15

   PROCEDURE load
      CREATE CURSOR testdata ( ;
         ikey i, ;
         cone c(10), ;
         itwo i)
      INDEX ON ikey TAG ikey
      INDEX on itwo TAG itwo
      INSERT INTO testdata ;
         VALUES (1, "one", 1)
      INSERT INTO testdata ;
         VALUES (2, "three", 3)
      INSERT INTO testdata ;
         VALUES (3, "two", 2)
   ENDPROC 
   
   PROCEDURE grd.init
      this.column1.controlsource = "testdata.cone"
      this.column1.header1.caption = "One"
      this.column2.controlsource = "testdata.itwo"
      this.column2.header1.caption = "Two"
   ENDPROC 
   
   ENDDEFINE


_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox
OT-free version of this list: http://mail.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