Subject Re: text object on the fly
From Akshat Kapoor <akshat.kapoor@kapoorsons.in>
Date Tue, 8 Jun 2021 12:01:39 +0530
Newsgroups dbase.getting-started

Good Afternoon Mustansir,

>
> 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.

You are trying
form.tw1d1onLeftDblClick= class::tshift_select

try
form.tw1d1onLeftDblClick= form.tshift_select

Regards
Akshat


Warning: Unknown: write failed: No space left on device (28) in Unknown on line 0

Warning: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct () in Unknown on line 0