@GaG Thank you for your help. Till now i found my way to manage easy csv tasks , since csv files are just text with comma for change column, and new lines for change row i can deal this on BAS by creating lists from "Read File to List" and then i can break each list item from "Parse string" with comma as separator. Then i use "Write File" for saving and i can live visualize the edited results on the csv file with a program called "Modern CSV". Thing is that on more advanced scripts i have big CSV files with a lots of rows and columns , sometimes i must to constant return to BAS the index position of partial value search terms on those files. I have found also an alternative way to manage by creating and executing a bat file with call for python for converting csv to xlsx and then i may use "module Excel" that haves all the actions im looking for, but Im wondering why BAS haves those actions only for xslx files, why not for csv also? Anyways till now im very satisfied to BAS but i might need more help in the future on this matter.
V 28.7.0 Corrupted project file
-
Just had this nice new feature: During work bas IDE corrupted opened project. Few functions disappeared, body of one function moved to another place, appeared places with "Data corrupted" items. Several hours of work has completely gone.
-
@Danger-Lifter check "backup" folder for backups
-
Under what circumstances did this happen? Can this be repeated intentionally?
-
check "backup" folder for backups
Thank you. FoundUnder what circumstances did this happen? Can this be repeated intentionally?
Nothing special. Routine work, copy-paste, lag, empty screen in IDE, reload project.
-
@Danger-Lifter
Was there a lot of action in the script panel at this point? -
Was there a lot of action in the script panel at this point?
Sorry, not sure what you mean here. If you mean number of functions in script then ~ 40. Nothing special.
Probably you means actions in current edited function: also nothing special and really large. I do not think it was root of problem.
Script has been living for a long time.Now I have new problem with that script. Script was fixed based on backup and compiled/installed in Bas as module. Now in Bas I see this module installed correctly, see all exported functions, can add "call" them into script, but... they do not work. Not one function from this module. On call error "ReferenceError: Can't find variable: ... ". I have other custom modules that were updated with latest Bas, installed and there is no problem to use/call them. What could be wrong with that module? I tried to check sources of module but at first glance do not see any differencesю
I am familiar with js, So would be much appreciated any point what and which file in should I check to find a reason of the issue.
Note, module itself works and normally runs in development/record mode. Issue is only if I try to call any exported function of this module on another script
-
M Moderator moved this topic from Feedback on
-
I found that engine.js of the module contains wrong ")!" at the end of file:
skiped... log('Total result items: ' + VAR_TOTAL_RESULT_ITEMS + ' on pages:' + VAR_TOTAL_RESULT_PAGES) if (typeof VAR_TOTAL_RESULT_PAGES === 'number') { VAR_RESULT.totalResultPages = VAR_TOTAL_RESULT_PAGES } if (typeof VAR_TOTAL_RESULT_ITEMS === 'number') { VAR_RESULT.totalResultItems = VAR_TOTAL_RESULT_ITEMS } VAR_RESULT.products = VAR_PRODUCTS if (!VAR_PRODUCTS.length && VAR_RESULT.totalResultItems) throw new Error('No products found') _function_return(VAR_RESULT) })!Removing manually those from engine.js makes it work. But I can't find a reason of those invalid chars in Module itself. Once you try compile and install module those "chars" appear again.
-
@Danger-Lifter
Sorry for the long reply. What module are you talking about? Are you talking about the module you made yourself? Please attach the module files here or in a PM on the forum.