Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Module m1 = edit("1. MY_MODULE", false)
- save(m1)
- close(m1)
- Module m1 = edit ("/myproject/myfolder/mysubfolder/1. MY_MODULE", false)
- string fullPathToMod = "/myproject/myfolder.."
- Item i = item fullPathToMod;
- if null i then error "there is no item called " fullPathToMod
- if "Module" != type i then error "there is an item, but it's not a module, it's a " type i
- void checkModule(string folderPath, string mName, Skip list, int listSize, int listLastIndex, string headers[], string heading[], string headerKey, bool uniqueKey, string combinedKey[]){
- if (module mName){
- Folder f = folder(folderPath)
- current = f
- Module m = edit(folderPath""mName, false)
- current = m
- Object o = first(m) // error sometimes: Se ha pasado un parametro Module null en una posición de argumento 1
- if (o == null){
- loadModule(m, list, listSize, listLastIndex, headers, heading)
- } else {
- updateModule(m, mName, list, listSize, listLastIndex, heading, headerKey, headers, uniqueKey, combinedKey)
- save(m)
- close(m)
- }
- if (lastError() != ""){
- print "Error: " lastError() "n"
- }
- } else {
- print "No module " mName ".n"
- }
- current = m
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement