16446RE: [peditors] Newbie pScript question
- Feb 1, 2002[...]
> Sorry, not sure I included enough context: The number I want toincrement is
> in my document: I can't see how to get a number in a document into aabout,
> variable (e.g. cut/copy commands don't set $$ [which I don't complain
> though if the selected text was all digits within the acceptablerange...])
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.
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
- << Previous post in topic Next post in topic >>