I have a small question .....
I am attempting to write from a table to a txt file.
I have some places I want to write the "" .
Example
ms15 = ("if Blah ~= "" then")
How to do that?
My Thank U's in advance.![]()
Professional Software Development Tools
I have a small question .....
I am attempting to write from a table to a txt file.
I have some places I want to write the "" .
Example
ms15 = ("if Blah ~= "" then")
How to do that?
My Thank U's in advance.![]()
Last edited by AudioSam; 02-02-2008 at 12:36 PM.
what are you trying to do sam? are you trying to check if a var isnt nil? or are you trying to check if a variable doesnt equal literal string ""? if your trying to check against the literal string "" then you must escape the ".
not sure which your wanting but heres an example of both bro.
Code:if blah ~= nil then do something here endCode:if blah ~= ams = "\"\"" do something here end
I am taking that
ms15 = ("if Blah ~= "" then")
later I am doing this with many items....
Table.Insert(InfoTab, 15, ms15)
TextFile.WriteFromTable("C:\\PassWord.txt", InfoTab, false)
I need to write the quotes but I can't figure out how.
Any Ideas???
Sam
well in order to output a " you need to escape it. let me play around for a sec and i may have a solution for you.
here you go sam, the dialog message is just so i could test it.
Code:ms15 = ("if Blah ~= \"\" then"); InfoTab = {} Table.Insert(InfoTab, 15, ms15) Dialog.Message("Notice", InfoTab[15], MB_OK, MB_ICONINFORMATION, MB_DEFBUTTON1);
I'm messin around with the password apps..
I think I may come up with something pretty good.
I'm kinda figuring out the encryption scripts..
I'm sure it's nothing that you guys couldn't do in 5 minutes..
Because I spend all night, get no sleep, what I do is worth wayyyy more..
Thank you,
AudioSam
Last edited by AudioSam; 02-02-2008 at 01:54 PM. Reason: That was just toooo easy.... Thank you TimeSurfer
awesome sam, im also working on a password/serial type of app that utilizes mysql. I believe RizlaUk is also working on something similiar in fact i think he's almost done.
btw im not a l33t coder lol, i just have previous scripting exp from mIRC as well as win32 dialog scripting using Visual Dialog Script, and im just now learning purebasic.
Cause what I got going here is HOT....
Yeah,,,, right.....
You just wait..
One of these days,
I'm going to put something together really good.
Thanks for all the help,
Sam
whenever quotes are needed (dll calls, sqlite and mysql among others) i always use a Enclose functionI need to write the quotes but I can't figure out how.
Code:function EncloseText(strText) return "\""..strText.."\"" end --Example Use: Dialog.Message("Notice", EncloseText("This text will have quotes"), MB_OK, MB_ICONINFORMATION, MB_DEFBUTTON1);
Open your eyes to Narcissism, Don't let her destroy your life!!