Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[solved] icsv - v.Cell - breaks after 10 loops
#1
Hi,

I'm trying to write some text to a csv file. The code works...only up to around 10 times. Once rowpos = 10 or so, I get this error on the line indicated below...

Error (RT) in write comments to csv file: 0x80070057, The parameter is incorrect. ?


Macro write comments to csv file
Code:
Copy      Help
int i
int rowpos
str tempstr
spe

Acc a.Find(w "PUSHBUTTON" "[]View" "class=*.Window.*[]wfName=ribbonBarWriteView" 0x1005)
a.DoDefaultAction

for rowpos 0 50
,a.Find(w "PUSHBUTTON" "[]View" "class=*.Window.*[]wfName=ribbonBarWriteView" 0x1005)
,a.DoDefaultAction
,
,'Ca
,tempstr.getsel
,tempstr.findreplace("<p>" "")
,tempstr.findreplace("</p>" "[]")
,tempstr.findreplace("<br />" "")
,
,v.Cell(rowpos 0)= tempstr   ;;<-------------- keeps breaking here after when rowpos is about 10

v.ToFile("c:\test\test.csv")


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)