s-news
[Top] [All Lists]

VBA automation

To: s-news@lists.biostat.wustl.edu
Subject: VBA automation
From: santosh <santosh@igidr.ac.in>
Date: Tue, 22 May 2007 14:23:17 +0530 (IST)
Dear All,
I am doing VBA automation with Splus. I am using pApp.ExecuteString().
But I can not execute for loop with many instructions. For example.

pApp.ExecuteString ("x <- seq(1,10,1) ")
pApp.ExecuteString ("for (i in 1:10){weight <- x}")
This will work.

But below one does not work

pApp.ExecuteString ("for (i in 1:10){weight <- x weight <- weight + 1}") ' weight <- weight/2 weight <- weight + 2 }")

Please help me.
Thanks a lot
Santosh

    
  

<Prev in Thread] Current Thread [Next in Thread>
  • VBA automation, santosh <=