AnsweredAssumed Answered

vrf Transmitting brackets

Question asked by VRFuser on Feb 3, 2005


Thanks for your answer, I found the solution by myself.

To transmit () they nee to b written in {} like Test.pwrup{()}.

Then the construct


Set oWsh=CreateObject("WScript.Shell");
owsh.AppActivate ("c:\windows\");

will execute correctly with a = Test.pwrup{()}.

Kind regards


-----Original Message-----
From: Graeme Hilton []
Sent: Friday, February 04, 2005 10:22 AM
Cc: Tamm, Heiko
Subject: Re: [vrf] Transmitting brackets

Tamm, Heiko wrote the following:

> Hello All,

> I like to transmit the following c-like command with brackets() into
> the variable "a" of the formula part: oWsh.SendKeys(a);

> The command is: Test.pwrup()

> The brackets are not accepted by the system and thus the command will
> not be executed.

> Question:

> How can it be done to transmit the brackets?

> Does anybody have an idea?

There are two things that Vee might think you are trying to do.

1. Do you want to execute the function Test.pwrup and feed the result
from that function into oWsh.Sendkeys, or

2. Do you want to have the text string "Test.pwrup()" passed into
oWsh.SendKeys as a string?

If it is the first, then you need to construct the formula outside of a
Formula box and use the Formula Control Input (Add Terminal, Control
Input).  See the attached example.  For the second, also see the
attached example.

Hope this helps

Graeme Hilton
R&D Engineer

Schlumberger Sensa

You are currently subscribed to vrf as:
To subscribe send a blank email to "".
To unsubscribe send a blank email to "".
To send messages to this mailing list,  email "". 
If you need help with the mailing list send a message to "".