Results 1 to 2 of 2
  1. #1
    Join Date
    Dec 2003
    Posts
    14

    Cool Unanswered: 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?

  2. #2
    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •