home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   comp.databases.paradox      To crash or not to crash, asks Borland      9,834 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 9,590 of 9,834   
   Jim Giner to All   
   Re: Array of TCursor   
   14 Jan 09 15:48:31   
   
   3cff73f5   
   From: jim.giner@suny.edu   
      
   Mark's answer is clever and does what you want (kindof).  I can see where   
   you would want a pointer, but Mark gives you the actual opened tcursor.   
   Question is - can pdox handle all of the possible open tcursors you're going   
   to have?  How many open tables do you ahve to sync up?  And what exactly do   
   you mean by sync up?  Are you trying to make the contents all identical?   
   Perhaps there's another approach.   
    wrote in message   
   news:b5eedc5a-3c84-4df4-a6c6-62f944ddcc8d@x14g2000yqk.googlegroups.com...   
   >I am trying to  use an array of TCursor   
   > Sadly it is not working because TCursor does not derive from AnyType   
   >   
   > I have something like (but not exactly) this   
   >   
   > Var   
   >   tmpTC TCursor   
   >   arTC Array[] TCursor   
   > EndVar   
   >   
   > For i from 1 to tblStr.Size()   
   >  tmpTC.Open(tblStr[i])   
   >  tmpTC.Home()   
   >   
   >  arTC.AddLast(tmpTC)   
   >   
   > endfor   
   >   
   > I keep getting an error on the line "arTC.AddLast(tmpTC)" saying   
   > "An error was triggered in the 'copyRecord' method on an object of   
   > TCursor type.   
   >   
   > Obviously, It is trying to copy the TCursor but all I want is a   
   > pointer or reference copied.   
   > I am new to ObjectPal so I don't know how these things a handled.   
   >   
   > Basically I have several tables in several different directories which   
   > all have the same structure, but diffent entries. I am trying to make   
   > a script to Sync them.   
   > and I thought starting with an array of all relevant tables would be a   
   > good start, but even this is proving dificult   
   >   
   > I am using Paradox 11 on XP   
   > Thanks   
   >   
   > Howie   
   >   
   >   
   >   
   >   
   >   
   >   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca