Loading ...
Sorry, an error occurred while loading the content.

Re: [libertybasic] Breaking a loop inside function @ run time?

Expand Messages
  • Fred Jensen
    ... I believe you have to declare the variable GLOBAL in your main program or it won t be seen inside the function. Regards, Fred K6DGW Auburn CA
    Message 1 of 6 , May 17 2:46 PM
    • 0 Attachment
      On 5/16/2013 9:17 PM, Sarmed wrote:
      > Hi All,
      >
      > A program has a function, there is a loop inside that function, when the
      > program call that function it seems that loop will take a long time, So
      > I want to break that loop with cancel button which assign 1 to a
      > variable, the loop check that variable, but the variable inside the
      > function stay zero.
      > How can I pass a value to a variable inside function while it is not
      > finished?

      I believe you have to declare the variable GLOBAL in your main program
      or it won't be seen inside the function.

      Regards,

      Fred K6DGW
      Auburn CA
    Your message has been successfully submitted and would be delivered to recipients shortly.