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

16446RE: [peditors] Newbie pScript question

Expand Messages
  • Urs Hunkler
    Feb 1, 2002
    • 0 Attachment
      [...]
      > Sorry, not sure I included enough context: The number I want to
      increment is
      > in my document: I can't see how to get a number in a document into a
      > variable (e.g. cut/copy commands don't set $$ [which I don't complain
      about,
      > though if the selected text was all digits within the acceptable
      range...])
      [...]

      hi chris,

      the following part of the manual describes imo what you look for:

      The token "/e#" [home] checks if there is a currently focused text
      field. Then it assigns the value of the integer number which is either
      right after the cursor or at the beginning of the current text selection
      to the currValue [$$] pVariable. If there is no number there, then the
      currValue is set to 0 [zero].

      when you select the number, you can increment it and write it back at
      the same place.

      hth /urs

      --
      urs hunkler                          u.hunkler@...
      wir design gmbh                      fon +49. 5 31. 8 88 10
      38118 braunschweig                  fax +49. 5 31. 8 88 12 34
      sophienstrasse 40                    germany
    • Show all 20 messages in this topic