0

Does a button only work once ?

Hi, 

I pressed an old button and it had no effect.

 

Does a button only work once ?

 

If it does, how can one make it work again ?

 

Thank you

6replies Oldest first
  • Oldest first
  • Newest first
  • Active threads
  • Popular
    • Fred
    • Fred
    • 1 yr ago
    • Reported - view

    It all depends on the code. What is the code?

    Like
    • Addinsell
    • Addinsell
    • 1 yr ago
    • Reported - view

    Hi Fred

    In fact I made an error. Sorry.

    But out of curiosity, what could show in the code it will work only once  ?

    Like
    • Fred
    • Fred
    • 1 yr ago
    • Reported - view

    I can't think of any, but there are smarter people out there.

     

    Does anyone know of the secret self-destruct code? :)

    Like
    • Addinsell
    • Addinsell
    • 1 yr ago
    • Reported - view

    I said that because I found that code for a button in my notes where I wrote "works only once"

     

    let a := "" ;

    for b in (select 'Oiseaux famille genres espéces') order by 'Premier mot' do

    if a = b. 'Premier mot' then

    b.(isDuplicate := "Duplicate")

    else

    b.(isDuplicate := "Principal")

    end ;

    a := b.'Premier mot'

    end

     

    Do you see anything in it which means it will work only once ?

    Like
  • I wrote this code for you, and my understanding was that you had duplicates that you want to cleanse from your table. The button would flag the duplicates in preparation for that. So it's not so much run once, but if you have changes in your table I would be running it periodically, along with your cleasing routine. If you haven't made any changes then it will run correctly but produce the same result as before.

     

    Regards John

    Like
    • Addinsell
    • Addinsell
    • 1 yr ago
    • Reported - view

    Hi John,

    Your are right. Thanks 

    Like
Like Follow
  • 1 yr agoLast active
  • 6Replies
  • 332Views