Help me with this program...

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Azuran
    New Member
    • Apr 2007
    • 2

    Help me with this program...

    Anyone know a way I can create a program that when the user enter a word, it appears on the form like this:

    EXAMPLE
    XAMPLEE
    AMPLEEX
    MPLEEXA
    PLEEXAM
    LEEXAMP
    EEXAMPL

    I'm only suppose to use loops, left$, mid$, right$, trim$ strings and if/else statements

    Thanks in advance.
  • Dököll
    Recognized Expert Top Contributor
    • Nov 2006
    • 2379

    #2
    Originally posted by Azuran
    Anyone know a way I can create a program that when the user enter a word, it appears on the form like this:

    EXAMPLE
    XAMPLEE
    AMPLEEX
    MPLEEXA
    PLEEXAM
    LEEXAMP
    EEXAMPL

    I'm only suppose to use loops, left$, mid$, right$, trim$ strings and if/else statements

    Thanks in advance.
    Hiya Azuran!

    Is this a school project?

    Dököll

    Comment

    • Azuran
      New Member
      • Apr 2007
      • 2

      #3
      Originally posted by Dököll
      Hiya Azuran!

      Is this a school project?

      Dököll
      Yup, but I missed class for one week and I'm really far behind and I really need to get this done.

      Comment

      • Killer42
        Recognized Expert Expert
        • Oct 2006
        • 8429

        #4
        Originally posted by Azuran
        Yup, but I missed class for one week and I'm really far behind and I really need to get this done.
        Have you learned how to do any of this, yet?

        Hint: In a loop, you will be taking one character from the Left of the string, and the rest of the string, and sticking them together ("concatenating " them) to make the new string.

        We don't provide straight copy-and-paste answers to school assignments, as it doesn't help you to learn anything. (See our policy/guidelines here).

        Comment

        • Dököll
          Recognized Expert Top Contributor
          • Nov 2006
          • 2379

          #5
          Originally posted by Azuran
          Yup, but I missed class for one week and I'm really far behind and I really need to get this done.
          How much time do you have? I think you're on the right track. You'd need to read up about it a bit. I can help no doubt but would need to see what you have working...

          You'd also need a replace command in the mix, got a tutorial on that. I'd have to look. Have you previously searched this forum?

          Might want to try adding Find and Replace in search terms. Give it a whirl, see what you have.

          In a bit!

          Dököll

          Comment

          • Dököll
            Recognized Expert Top Contributor
            • Nov 2006
            • 2379

            #6
            Originally posted by Dököll
            How much time do you have? I think you're on the right track. You'd need to read up about it a bit. I can help no doubt but would need to see what you have working...

            You'd also need a replace command in the mix, got a tutorial on that. I'd have to look. Have you previously searched this forum?

            Might want to try adding Find and Replace in search terms. Give it a whirl, see what you have.

            In a bit!

            Dököll
            We must have been typing the same instant Killer :-)

            Comment

            Working...