Results 1 to 30 of 30

Thread: Reading an xml file in vb6.0

Threaded View

  1. #22
    The Idiot
    Join Date
    Dec 2014
    Posts
    3,002

    Re: Reading an xml file in vb6.0

    I never sent u anything like that, u confuse with someone else.

    what I sent u is this:

    - open the .xml file using the "Open" method and read the entire file into a "string"
    - search the string using InStr
    - you will get numbers where the different text is found in the string (using InStr) and you can "copy" that part using Mid$ method.

    so what you need to do for now is:

    - Learn Open filename as Input as #freefile, with Line Input # and Close #
    so first you need to learn how to open and read a file

    - Learn Len() method
    this is good to know how to get the length of a string, that in many cases is good to have

    - Learn the InStr() method
    this method will return the position of a specific text by searching another text, this you will use to allocate StreetName

    - Learn the Mid$() method
    this method is used to copy parts of the text into a new text, so we can cut out parts that we want

    this should be fundamental and "a most" know if you want to learn how to program, otherwise it will always be confusing and you will always need someone else make coding for you.
    I shouldn't even need to do this post, this should be obvious and mandatory when you learn a language.

    (now you need to LEARN each one. AND NOT BY ASKING HERE, for each one, you search, theres thousands of examples for each method if you google or search vbforums)

    (and NO, I will not do it for you, so please no PM asking me to make it, YOU NEED TO LEARN yourself, otherwise pay someone else to do the coding if you don't want to learn)
    Last edited by baka; Dec 27th, 2021 at 05:50 AM.

Tags for this Thread

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