Thanks Jan

Some day I do plan on moving most of my code to the DB and just calling it.
I keep spending my time on other issues like networks or putting out fires.

I will keep this in mind, it may be worth a try, for now I do not think I am 
having
any problems with this, I mostly want to know the right way I should be doing 
things
to avoid future problems.

Marc




From: jan johansen 
Sent: Tuesday, July 13, 2010 10:23 AM
To: RBASE-L Mailing List 
Subject: [RBASE-L] - RE: Labels in EEP's


Marc,

This is theoretical so I'm just talking out loud.

In my application I have a couple of places where I use a form timer.
This timer fires off every 10 seconds and does what it is supposed to do.
However the user has the ability to access a secondary form than the
one where the form timer exists. So if you are in the second form and
the form timer fires, you can get an error message because you are now
in the second form. 

The work around is to place a componentid on the first form so that the
form timer knows where it is. Like this.

PROPERTY myfirstformname|myfirstformthingtodo CAPTION .vcaption

Notice the 'pipe'.

All that to say that it MAY be possible to place a custom form action 
in a form, name it, place a componentid on the form, and then call it
from elsewhere. Like so

PROPERTY myfirstformname|RBASE_FORM_ACTION myfirstformaction ' '

My suspicion is this would only work on open forms so it may be possible
to do place all your function calls in your main menu which may be open
all the time and do it this way.

Again this is untested but it may be fun to try.

Alternatively you store the code in a table and call it as has been suggested
in the past by others.

Jan
 

 
  -----Original Message-----
  From: "MDRD" <[email protected]>
  To: [email protected] (RBASE-L Mailing List)
  Date: Tue, 13 Jul 2010 10:08:07 -0500
  Subject: [RBASE-L] - RE: Labels in EEP's


  Jan

  The problem is I have the same button on 3-4 different forms and I pop one up 
on top on another.
  I may be in Edit Using CustInfo, then click a button to Edit Using 
Transactions ....
  Or I can be in another form and click the same Edit Using Transactions.... 
button

  Thanks
  Marc






   
  From: jan johansen
  Sent: Tuesday, July 13, 2010 9:49 AM
  To: RBASE-L Mailing List
  Subject: [RBASE-L] - RE: Labels in EEP's

   
  Marc,

  If your code in the label is the same in each eep, you might
  consider moving it to a Form Action.
  Then in your eep that needs the label just do
  PROPERTY RBASE_FORM_ACTION yourformactionname ' '

  Jan
   

   
    -----Original Message-----
    From: "MDRD" < [email protected]>
    To: [email protected] (RBASE-L Mailing List)
    Date: Tue, 13 Jul 2010 09:23:34 -0500
    Subject: [RBASE-L] - RE: Labels in EEP's


    I know that but that gets very hard to catch especially when you pop up a 
form in a form.
    I think I have most of that working OK but I am sure I still have some work 
to do in that area.

    Marc


     
    From: Dennis McGrath
    Sent: Tuesday, July 13, 2010 9:06 AM
    To: RBASE-L Mailing List
    Subject: [RBASE-L] - RE: Labels in EEP's

     
    Variables are another story!
      
    Dennis 
      

----------------------------------------------------------------------------

    From: [email protected] [mailto:[email protected]] On Behalf Of MDRD
    Sent: Tuesday, July 13, 2010 8:59 AM
    To: RBASE-L Mailing List
    Subject: [RBASE-L] - RE: Labels in EEP's
     
    Cool, I got lucky!
     
    Thanks
     
     
    From: Dennis McGrath 
    Sent: Tuesday, July 13, 2010 8:40 AM
    To: RBASE-L Mailing List 
    Subject: [RBASE-L] - RE: Labels in EEP's
     
    Labels are only seen by the code in which they reside.
    For that reason, there is no problem using the same label name in various 
eeps. 
    There will never be a conflict.
      
    Dennis McGrath 

----------------------------------------------------------------------------

    From: [email protected] [mailto: [email protected]] On Behalf Of MDRD
    Sent: Tuesday, July 13, 2010 8:13 AM
    To: RBASE-L Mailing List
    Subject: [RBASE-L] - Labels in EEP's
     
    Hi
     
    Is it OK to use the same Label in different EEP's in different forms?
    I have a Button with a block of code that has several labels, I cut and 
pasted this button to 
    several Forms and everything seems to be working OK.
     
    This is a handy time saver for me.... I know I could store that code in the 
DB and just call it 
    but this is so easy and the code will most likely not change in a long time.
     
    Thanks
    Marc
     

Reply via email to