On 3/5/2009 2:26:23 PM, Christian Ziemski wrote:
>On 05.03.2009 18:03 in vtech-convert
>Pauli Lindgren wrote:
>>
>> This would have the problem that the register is probably not empty.
>> Each text register contains whatever is left there last time.
>
>Correct, but there is full control about
>the registers when the call is
>invoked, so I don't see a real problem
>here.
If the user runs the macro with "Misc" -> "Load/exec macro", then there is no control over the registers.
Therefore, the default entry (from the beginning of macro) should be interactive mode with dialog boxes etc, and a label is to be used when calling from another macro, menu or command line and predefined settings are given. I have used this method in many of my macros.
Of course, Is_Auto_Execution could be used to override this.
>
>> So, calling a label is probably needed anyway.
>
>Do you know an easy way to call a macro
>from command line *with* a label
>like Call_File(r, "file", "label") from
>macros does?
At least this seems to work:
vpw -c 'Call_File(100,"Aspell.vdm","OPTIONS_DIALOG")'
>
>> N_Option is one possible way to pass information, but you could as
>> well use any numeric register.
Another thing about N_Option. If you set it in one call, will it be set after that in all the other macro calls after that? This might cause surprises.
--
Pauli
|
|