Subject text object on the fly
From Mustansir Ghor <mustan31@hotmail.com>
Date Mon, 07 Jun 2021 15:37:00 -0400
Newsgroups dbase.getting-started
Attachment(s) Capture.PNGCapture1.PNG

Dear All

I wish to assign a function to an event of text object in the following manner

                 for m = 1 to 6
                  for n = 1 to 7
                  
                    mtname = \\\"form.\\\"+\\\"TW\\\"+str(m,1)+\\\"D\\\"+str(n,1)+\\\".onLeftDblClick=class::tshift_select\\\"
                         ?mtname
                         &mtname.
                endfor
              endfor

function Tshift_select ()
         if empty(this.text)
          return
         endif

         this.fontsize=8
        
         this.text+=form.qshift.rowset.fields[\\\"name\\\"].value
         this.alignhorizontal=1
        
        return

                  
I am attaching the resulting mtname string as Capture1 and the error message as Capture.

I wonder , Is my error a syntatical one or logical one. Or such a doing not possible.

Thank you all

Best Regards
Mustansir