Aw I see what I was doing wrong. I did read the help file before on functions, but now I see what I missed. Thanks. That and I was using the wrong string.find was not aware there is a difference between string.find and String.Find. That helped knowing that. had my script working in less then 3 mins now. YAY
using your original code posted I then added this to my script. and it now works.
Code:
local strLoc = Input.GetText("I-Loc"); errorvalue = g_ContainsValidPathChars(strLoc) if errorvalue == false then Dialog.Message("Error in text",strLoc, MB_OK); else Dialog.Message("No Error in text",strLoc, MB_OK); end
I was sending the text to the Enclose function when saving. that was the issue. changed it to have the code like below and dbl \\ are now gone. YAY!
Code:
SQLite.Query(db, "Insert into filestbl(fileloc) values(\""..strLoc.."\")", nil);
time to look into some of the other things such as "String.SplitPath()" that you mentioned above and see how it can work for me.
Thank you!
P.S. I noticed I am not allowed to edit my posts, is that normal? I just hate it when I reply to my own post when I could have simply just made a change to my OP. that and once my issue is resolved I like to change the title to have the world Solved at the end.
Leave a comment: