init some indicators with MOVEA in Free format

20 pts.
Tags:
FREE
INDICATORS
MOVEA
How can I write this op in free : MOVEA '0000' *IN,20

Answer Wiki

Thanks. We'll let you know when a new response is added.

how to do in 6.1 where %subarray() don’t exist…

I should think this would work

/free

       For x = 20 to 24; // Loop  4 times

        *IN(x)= 0; // turn indicator off/on

       Endfor;

Discuss This Question: 2  Replies

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.
  • philpl1jb

    Personally, I wouldn't -- code doesn't need to be short just clear.

    I would rather not use the indicator array but rather clearly named variables.  But if I had to .. then it's like this.

    *IN20 = *off;

    *IN21 = *off;

    *IN22 = *off;

    *IN23 = *off;



    54,090 pointsBadges:
    report
  • TheRealRaven
    I'd do it like this:
    d myIndAra        DS                  qualified
     ...
    d  my4Inds                       4a   overlay( myIndAra : 20 )
     ...
      myIndAra.my4Inds = *zeros ;   
    But it's hard to know how you're defining your indicators. I'd normally assume that you're not using the basic *IN indicators.
    26,590 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

Thanks! We'll email you when relevant content is added and updated.

Following

Share this item with your network: