Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 9 of 9

Thread: Good Day

  1. #1
    Join Date
    Jan 2007
    Posts
    271

    Grin Good Day

    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.

  2. #2
    Join Date
    Dec 2007
    Location
    Missouri, United States
    Posts
    476
    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
    end
    Code:
    if blah ~= ams = "\"\""
      do something here
    end

  3. #3
    Join Date
    Jan 2007
    Posts
    271

    Grin Hi Ts

    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

  4. #4
    Join Date
    Dec 2007
    Location
    Missouri, United States
    Posts
    476
    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.

  5. #5
    Join Date
    Dec 2007
    Location
    Missouri, United States
    Posts
    476
    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);

  6. #6
    Join Date
    Jan 2007
    Posts
    271

    Lightbulb Thanks TimeSurfer,

    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

  7. #7
    Join Date
    Dec 2007
    Location
    Missouri, United States
    Posts
    476
    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.

  8. #8
    Join Date
    Jan 2007
    Posts
    271

    Talking : ) Guys you'd better hurry,

    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

  9. #9
    Join Date
    May 2006
    Posts
    5,380
    I need to write the quotes but I can't figure out how.
    whenever quotes are needed (dll calls, sqlite and mysql among others) i always use a Enclose function

    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!!

Similar Threads

  1. Run Once a day ONLY Problem
    By morci in forum AutoPlay Media Studio 5.0
    Replies: 2
    Last Post: 03-04-2004, 06:53 PM
  2. Happy GIF day
    By feilong in forum AutoPlay Media Studio 4.0
    Replies: 12
    Last Post: 08-12-2003, 08:04 PM

Posting Permissions

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