If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > PC based Database Applications > Corel Paradox > table repaire utility script

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-29-04, 19:11
Wycislo Wycislo is offline
Registered User
 
Join Date: Dec 2003
Posts: 14
Cool table repaire utility script

I would like to update a bunch of tables from version 3.5 to 11. Rather than going table by table, is there a way to use a script to accomplish this for me?
Reply With Quote
  #2 (permalink)  
Old 03-24-04, 14:19
Maroonotmoron Maroonotmoron is offline
Registered User
 
Join Date: Sep 2003
Location: Dallas
Posts: 182
You can use the attached method to restructure tables but it will require you to devise a method of sequentially filling the mytable array with your list of table names.

method run(var eventInfo Event)
var
mytable DynArray[] String
tbl Table
K shortint
dynNewStru DynArray[] Anytype
endvar

While not Mytable = "END.db"

tbl.attach( mytable[k] )
dynNewStru["versionlevel"] = "10"
tbl.restructure( dynNewStru )
K = K+1

endwhile

endmethod
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On