Results 1 to 4 of 4
  1. #1
    5 Star Lounger kmurdock's Avatar
    Join Date
    Feb 2003
    Location
    Pacific Grove, California, USA
    Posts
    716
    Thanks
    10
    Thanked 34 Times in 28 Posts

    WordBasic question (Word 2003)

    Hey all,

    I've come across some WordBasic macros that are run in Word 2003. I'm not completely fluent in WordBasic, but I do have the old WrdBasic.hlp file. Still, I wasn't able to find this:

    WordBasic.EditLinks UpdateMode:=-1,...

    The Help file says there are two switches, 0 and 1, and doesn't say anything about "-1" Is there some kind of global rule? Or was this a typo that was never caught?

    Thanks, <img src=/S/bananas.gif border=0 alt=bananas width=33 height=35>
    Kim

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: WordBasic question (Word 2003)

    I think everything except 0 will act the same as 1, i.e. manual updating.

  3. #3
    5 Star Lounger kmurdock's Avatar
    Join Date
    Feb 2003
    Location
    Pacific Grove, California, USA
    Posts
    716
    Thanks
    10
    Thanked 34 Times in 28 Posts

    Re: WordBasic question (Word 2003)

    Thanks Hans!

    I can't say how much I appreciate being able to ask a question like this and get such a quick response.

    Best,
    Kim

  4. #4
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: WordBasic question (Word 2003)

    WordBasic used 0 for False and 1 for True.
    Visual Basic has 0 for False and -1 for True, but if an argument is of type True/False so that there can't be any confusion with other values, all values different from 0 are interpreted as True.
    For example,

    Selection.Font.Bold = True

    and

    Selection.Font.Bold = 37

    will both make the selection bold.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •