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

Re: Macro question: possible to create an array variable?

Expand Messages
  • John R
    Not that I know of. John R.
    Message 1 of 5 , Apr 4, 2011
      Not that I know of.

      John R.

      --- In wordperfectmac@yahoogroups.com, "em315" <em315@...> wrote:
      > Here's an alternative (devised by a visitor to the www.wpuniverse.com for WPDOS 5.1) that I've adapted for WPMac. In effect, it creates an array, with each alternate item the Find string, then the Change string. Is there a way to divide the For Each line into multiple lines for clarity?
      > Goto Top of Document
      > Assign (Var21;"0")
      > For Each (Var00;{"abc";"123";"def";"456"})
      > If (Var21="0")
      > Assign (Var30;Var00)
      > Assign (Var21;"1")
      > Else
      > Assign (Var31;Var00)
      > Goto Top of Document
      > Find String (Var30)
      > Change String (Var31)
      > Change All
      > Assign (Var21;"0")
      > End If
      > End For
    Your message has been successfully submitted and would be delivered to recipients shortly.