Results 1 to 8 of 8

Thread: Small example

  1. #1

    Thread Starter
    New Member
    Join Date
    Jan 2005
    Posts
    7

    Small example

    Could anybody give me a small example of how you can add data to text boxes and then add this data to an xml file. I have read around but cannot find an actual example of this. If I could see it working I would be able to develop this furhter to the requirements I need

    eg A user adds data to a text box and then click a command button and this will add the info to a xml file.

    Thanks

  2. #2
    Ex-Super Mod'rater Electroman's Avatar
    Join Date
    Sep 2000
    Location
    Newcastle, England
    Posts
    4,349

    Re: Small example

    Well an XML file is just text right so you'd just open it as a normal text file and write it in. The string in the textbox will be in textbox.Text. If you seach for writing to a file there will be plenty examples .
    When your thread has been resolved please edit the original post in the thread ()
    and amend "-[RESOLVED]-" to the end of the title and change the icon to , Thank you.

    When posting Code use the [VBCode]Code Here[/VBCode] tags to be able to use the code highlighting.

  3. #3
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    Re: Small example

    Here is a good tutorial on File I/O operations.

    HTH
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

  4. #4

  5. #5
    Hyperactive Member
    Join Date
    Jan 2005
    Posts
    277

    Re: Small example

    Sorry

  6. #6
    Ex-Super Mod'rater Electroman's Avatar
    Join Date
    Sep 2000
    Location
    Newcastle, England
    Posts
    4,349

    Re: Small example

    Quote Originally Posted by robvr6
    Sorry
    Why create another account to ask Q's on XML?
    When your thread has been resolved please edit the original post in the thread ()
    and amend "-[RESOLVED]-" to the end of the title and change the icon to , Thank you.

    When posting Code use the [VBCode]Code Here[/VBCode] tags to be able to use the code highlighting.

  7. #7

    Thread Starter
    New Member
    Join Date
    Jan 2005
    Posts
    7

    Re: Small example

    Because two of us share one machine at home and we forget to log out and it automatically logs the last user in.
    Sorry for confussion

    jon

  8. #8
    PowerPoster
    Join Date
    Dec 2004
    Posts
    25,618

    Re: Small example

    between the two of you, you have a heap of code to write xml, both as text files and using the DOM

    start putting something together yourself, if you can't make it work post what YOU HAVE done and i am sure someone will help you then. why would someone else write all your projects for you?

    just start making your form and putting the text boxes required, opening a file to save your information in and print to it if you want to write it as a text file, or spend more time with the dom sample app if you want to go that way.

    rgds pete

Posting Permissions

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



Click Here to Expand Forum to Full Width