Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 8 of 8
  1. #1
    Join Date
    Jan 2003
    Location
    Cornwall UK
    Posts
    21

    XML saving to a file

    I have been asked to make a program that can be used in a shop (Barbers)
    I only have 8 buttons ie Gents, flattop, and so on, I want to set a value to each button (a price) then when the user clicks it, it saves the price to a file say an xml file, but at the same time it adds to a list in the file of how many hair cuts have been done that day, say gents 10, flattop's 4 and so on. I don't have a project as such just 8 buttons no code so i can't upload anything what i would like is some advice on how i would start it so i start the project the right way (makes it easyer for me to understand what i am doing) i have the xml plugin but just never used it, should i make the whole thing in xml then load it to ams6 or should i start with a blank xml then save it. i have looked on the forum for this kind of thing but not been able to find some thing that would help me start off the user does not want to type anything in just click and record the days taken's.
    Thank you

  2. #2
    Join Date
    Jan 2003
    Location
    Cornwall UK
    Posts
    21

    xml

    i have use the amount variable to set the button and then display the amount as each button has its own non changable amount this was simple i need to connect to an xml doc now anyone tell me how i do this...

  3. #3
    Join Date
    Nov 2005
    Location
    Banned by moderator.
    Posts
    264
    XML.Load("file")
    &
    XML.Save("file")

  4. #4
    Join Date
    Jan 2003
    Location
    Cornwall UK
    Posts
    21
    Quote Originally Posted by playmenow
    XML.Load("file")
    &
    XML.Save("file")

    Thx i understand the save and load i made the xml file, then on program start, it loads the page into memory, then i made the buttons sign a value to the button then when that button is pushed it saves the value amount to a cell, at the same time adding 1 to the count, but i can't get it to save the value amount to a cell on a xml doc because i don't know the best way of doing it i just trying things to see if it works
    do i set up the xml doc first with the names or can i do it in the project iam lost

  5. #5
    Join Date
    Feb 2005
    Location
    Mn
    Posts
    770
    Did you have a look here?
    http://www.indigorose.com/forums/showthread.php?t=13131
    And look somemore in the example forum for more.

  6. #6
    Join Date
    Sep 2002
    Location
    Sol 3
    Posts
    3,160
    Quote Originally Posted by Murdoch
    Thx i understand the save and load i made the xml file, then on program start, it loads the page into memory, then i made the buttons sign a value to the button then when that button is pushed it saves the value amount to a cell, at the same time adding 1 to the count, but i can't get it to save the value amount to a cell on a xml doc because i don't know the best way of doing it i just trying things to see if it works
    do i set up the xml doc first with the names or can i do it in the project iam lost
    What do you have or code currently. What I have done in the past is if I want to create a document I will have a string with the basic structure I want to create. like this
    Code:
    strXML = [[<quiz>
         <Name></Name>
         <Desc></Desc>
      </quiz>]]
    Then when I want to add something to this I will load the XML string (XML.SetXML) and then add items to it. XML.SetValue("quiz/items/question|1", "Ask your question here?");

    I hope that helps.
    tigg
    TJ-Tigger
    "A common mistake that people make when trying to design something completely foolproof was to underestimate the ingenuity of complete fools."
    "Draco dormiens nunquam titillandus."
    Map of IR Forum Users - IR Project CodeViewer - Online Help - TiggTV - QuizEngine

  7. #7
    Corey is offline Indigo Rose Staff Alumni
    Join Date
    Aug 2002
    Posts
    9,746
    That's a solid tip from Tigger, I think that's a good approach.

  8. #8
    Join Date
    Jan 2003
    Location
    Cornwall UK
    Posts
    21
    Thank you for your help, but i am still lost and i am working on this very hard I still don't understand it yet but I will get there, I have a problem I don't understand when i create a xml file with ams it saves it to my c drive or ams doc's and its a blue icon file, when i make a xml file in excel it saves it as a green excel file the standard workbook, if i open the ams one in excel it say's " this file is not in a recognizable format".

    xls and xml ? what have i done I just notised that there not the same format have i been trying to do things in one and not the other.

    Its like i can't see the wood for the trees. and my head hurts.

Similar Threads

  1. Audio Tracks Project
    By Michael in forum AutoPlay Media Studio 5.0
    Replies: 7
    Last Post: 03-18-2004, 10:58 PM
  2. HOWTO: Create a Project Template
    By Support in forum AutoPlay Media Studio 4.0 Examples
    Replies: 0
    Last Post: 10-28-2002, 01:49 PM
  3. Can search allow manual browse even if file is found?
    By RichardShaw in forum Setup Factory 5.0
    Replies: 2
    Last Post: 08-28-2000, 06:08 PM
  4. Replies: 0
    Last Post: 08-17-2000, 02:29 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