Topic: Backslash in dialog box text (1 of 2), Read 27 times
Conf: VEDIT Macro Language Support
From: Pauli Lindgren
Date: Tuesday, October 03, 2000 09:27 AM

I have some macros where I display the directory name (full path) in the dialog box text area. That is, something like this:

Out_Reg(#96)
Name_Dir(NOMSG)
Out_Reg(CLEAR)

#100=Dialog_Input_1(#95,"'Wild Search',
'Directory: |@(#96)',
'??Filename or mask: ',
'[OK]','[&Browse]','[Cancel]'",
"",APP+CENTER,0,0)


The problem is that any back-slashes in the path are interpreted as a quote character, so the back-slash and the character following it is not displayed.
How can I display the path correctly?
(I noticed that problem on V5.20, but it may be on earlier versions, too.)
-- Pauli

 


Topic: Backslash in dialog box text (2 of 2), Read 21 times
Conf: VEDIT Macro Language Support
From: Ted Green
Date: Wednesday, April 04, 2001 09:28 AM

On 10/3/2000 9:27:00 AM, Pauli Lindgren wrote:
>I have some macros where I display the >directory name (full path) in the dialog
>box text area.
>The problem is that any back-slashes in
>the path are interpreted as a quote
>character, so the back-slash and the
>character following it is not displayed.
>How can I display the path correctly?

This problem will be fixed in the upcoming VEDIT PLUS 5.3 to be released in May. It has a greatly enhanced Dialog_Input_1 command which supports multiple input strings, radio buttons, multiple columns and various options including displaying backslashes.

In the mean time, you need to copy the string into an "extra" buffer, and double all the backslashes.

Ted.