Topic: Copying the Dir_Date comnand from the Online Help (1 of 4), Read 32 times
Conf: Other, General, etc.
From: Peter Rejto
Date: Friday, May 19, 2006 04:02 PM

Hi,

I would like to copy the example for the Dir_Date( ) command, given in the Version 1.51 Online Help file, into my
USER MENU.


As a model problem, first, I highlighted the example and copied it to my Windows 2000 Scrap Board, using the Ctrl-C key. Second, inserted it into a new file using the Ctrl-V key. Third, I eliminated the carriage return line feed characters. Fourth,
I used the Ctrl-C key again, to copy the new line. Finally,
I escaped into Command Mode and used the Ctrl-V key again, to enter the macro. I got an error message.


Thanks,

-peter

 


Topic: Re: Copying the Dir_Date comnand from the Online Help (2 of 4), Read 33 times
Conf: Other, General, etc.
From: Christian Ziemski
Date: Friday, May 19, 2006 04:10 PM

On Fri, 19 May 2006 16:02:00 -0400, Peter Rejto wrote:

>Hi,
>
>I would like to copy the example for the Dir_Date( ) command, given
>in the Version 1.51 Online Help file, into my USER MENU.
>
>[cut&paste]
>
>I got an error message.

Aha. One may ask: What error message?


To answer your question:
The problem is the "Out_Ins( )"

In the example there is a space within the parentheses to improve the
readability.

Unfortunately that is not valid in real life: In Vedit.

Please try to remove the space character and try again.


Christian

 


Topic: Re: Copying the Dir_Date comnand from the Online Help (3 of 4), Read 34 times
Conf: Other, General, etc.
From: Peter Rejto
Date: Friday, May 19, 2006 09:05 PM

On 5/19/2006 4:10:59 PM, Christian Ziemski wrote:
>On Fri, 19 May 2006 16:02:00 -0400,
>Peter Rejto wrote:
>
>>Hi,
>>
>>I would like to copy the example for the Dir_Date( ) command, given
>>in the Version 1.51 Online Help file, into my USER MENU.
>>
>>[cut&paste]
>>
>>I got an error message.
>
>Aha. One may ask: What error message?



>
>
>To answer your question:
>The problem is the "Out_Ins( )"
>
>In the example there is a space within
>the parentheses to improve the
>readability.
>
>Unfortunately that is not valid in real
>life: In Vedit.
>
>Please try to remove the space character
>and try again.
>
>
>Christian


Thanks Cristian:

My error message was rather unspecific. It simply said "Macro error in .." Do I understand it correctly:
If there is no specific error than a possible cause is spacing.

I take note for future reference about error messages. I certainly do not like to throw away information in any other respect.

Your suggestion, as usual, worked like a charm.

Thanks again,

-peter.

 


Topic: Re: Copying the Dir_Date comnand from the Online Help (4 of 4), Read 31 times
Conf: Other, General, etc.
From: Christian Ziemski
Date: Saturday, May 20, 2006 02:11 AM

Peter:

On Fri, 19 May 2006 21:05:00 -0400, you wrote:

>My error message was rather unspecific. It simply said
>"Macro error in .."
>Do I understand it correctly:
>If there is no specific error than a possible cause is spacing.

No, absolutely not!

Usually spaces are allowed nearly everywhere without problems.


Some more investigations showed:
A normal space is allowed in Out_Ins( ), as expected!

But the "space" used in the online help here is no real space.
It's character 0xA0, mimicing a space...

And that's causing the error when executed in VEDIT.


Christian