Kindly HEEELPPP_ POS System

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • zaknbou
    Forum Member
    • Nov 2005
    • 63

    Kindly HEEELPPP_ POS System

    Hi guys,

    I am working on this file attached and i am at a dead end and i need to give the business cd to my upper mgt ASAP so i need one step further and i finish this, please help me ...

    what i need to do is when i press the _Done_ button, only the items with
    number different to zero will be written to the .txt file, there should be an IF
    formula that i am not getting to know it ....

    if Input1 == 0 then
    TextFile.WriteFromString("AutoPlay\\Docs\\Blisshou sejuice .txt", SInputText .. "".."\r\n", true);
    else
    TextFile.WriteFromString("AutoPlay\\Docs\\Blisshou sejuice .txt", SInputText .. " Lemonade".."\r\n", true);
    end

    Please help me ....

    Thanks in advance
    Attached Files
  • zaknbou
    Forum Member
    • Nov 2005
    • 63

    #2
    Come on guys....plz help me

    Comment

    • Dermot
      Indigo Rose Customer
      • Apr 2004
      • 1791

      #3
      Something like this should work.
      Code:
      local strOutput = ""
      
      if String.ToNumber(SInputText) > 0 then 
      	strOutput = strOutput..SInputText .. " Lemonade\r\n";
      end
      if String.ToNumber(SInputText2) > 0 then
      	strOutput = strOutput..SInputText2 .. " Carrot\r\n";
      end
      
      -- ...repeat for others
      
      TextFile.WriteFromString("AutoPlay\\Docs\\Blisshousejuice .txt", strOutput.."\r\n", true);
      Dermot

      I am so out of here :yes

      Comment

      Working...
      X