vbr:
--------------------------------------------------------------------------------
Hi, unfortunately - it probably can't be corrected easy; 
This is the behavior for _joining_ and _splitting_, because only
separator is inserted and the builtin dialog InputText returns an empty string,
if you click Cancel
(the same as clicking Ok with a clear input line)
- it would be easier, if it were e.g. a logical false or undefined, None ...,
but this seems to be the behaviour of the native dialog.
--------------------------------------------------------------------------------

InputText should return null value like in Javascript if user click on Cancel.

vbr:
--------------------------------------------------------------------------------
But an empty string can also make sense as separator.
--------------------------------------------------------------------------------

Sure, it is exactly what I need.

vbr:
--------------------------------------------------------------------------------
I can change the input so, that the whole replace pattern would be inserted (as
in _replace_ function, which can be canceled), but i think the usage would
get more complicated. What do you think?
--------------------------------------------------------------------------------

In my opinion, let your code like that.
If one day Jan change the behavior of InputText function,  it could be
interesting to modify your code.

-- 
<http://forum.pspad.com/read.php?2,39067,39155>
PSPad freeware editor http://www.pspad.com

Odpovedet emailem