Results 1 to 6 of 6

Thread: First vb 6 program, need help formatting a body of text

  1. #1
    Senior Member
    Join Date
    Mar 2005
    Posts
    1,117
    Thanks
    8
    Thanked
    10 times in 9 posts

    First vb 6 program, need help formatting a body of text

    I have made a program to take in morse code in two forms with two types of formatting as follows;

    "."s and "-"s with "/"s to show the end of each character and spaces to show the end of each word

    1s and 0s with "/"s to show the end of each character and "//" to show the end of each word

    This all working fine, albeit probably not the most efficient program ever (its my first go at it). However the input text is cut up to fixed length lines and my program needs continous text.

    eg

    1010/1111/11
    0/111/1010/1
    11/10/1010/1
    01/1010

    instead of

    1010/1111/110/111/1010/111/10/1010/101/1010

    any suggestions on how i can get it to remove the spaces? when its in binary i can probably just get it to remove the spaces. when its in morse i cant let it do that because ill lose the ends of words.

    Any suggestions? nothing complex please.
    Last edited by Scarlet Infidel; 30-10-2005 at 09:54 PM.

  2. #2
    Senior Member
    Join Date
    Mar 2005
    Posts
    1,117
    Thanks
    8
    Thanked
    10 times in 9 posts
    Hmm, no longer had i asked the question than the answer became obvious to me, i need to remove the carriage returns if i can figure out how.

  3. #3
    Senior Member
    Join Date
    Oct 2005
    Posts
    431
    Thanks
    0
    Thanked
    0 times in 0 posts
    If you PM me the code, I'll have a look at it for you. Make sure you don't have VbCrLf anywhere you don't want it.

  4. #4
    Senior Member
    Join Date
    Mar 2005
    Posts
    1,117
    Thanks
    8
    Thanked
    10 times in 9 posts
    I tried:

    txtInput = Replace(txtInput, vbCrLf, "")

    which seems to work.
    Thanks technophreak.

  5. #5
    Senior Member
    Join Date
    Mar 2005
    Posts
    1,117
    Thanks
    8
    Thanked
    10 times in 9 posts
    Well tell that to the exam board that writes my A level syllabus, or my school that only puts vb on their systems. Im just doing the best with what ive got.

  6. #6
    Theoretical Element Spud1's Avatar
    Join Date
    Jul 2003
    Location
    North West
    Posts
    7,028
    Thanks
    257
    Thanked
    262 times in 206 posts
    • Spud1's system
      • Motherboard:
      • Mac Pro
      • CPU:
      • 2x 2.8ghz Quad Core Xeons (octo-core)
      • Memory:
      • 4gb DDR2 FB-Dimm
      • Storage:
      • 1x1TB, 1x320gb, 2x500gb, 1x250gb, 120GB SSD
      • Graphics card(s):
      • Nvidia Geforce 560Ti
      • PSU:
      • Mac pro PSU
      • Case:
      • Mac Pro Case
      • Operating System:
      • Windows 8
      • Monitor(s):
      • 1x22" LG 3D TFT 1x 19" ViewSonic
      • Internet:
      • 80mb BT Infinity
    yeah it sucks that schools and even universities still teach VB..VB.net is bad enough but VB6....gah they should teach people a real programing language.

    Still its good enough to get you started, even if it teaches you some terrible habits.

    Good going though mate stick with it Eventually if you can grasp most of the concepts in VB6 you won't find it that difficult to move to something better like C# or C++

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Validating text entered into a VB text box
    By Dorza in forum Software
    Replies: 9
    Last Post: 09-06-2006, 10:15 AM
  2. Nero vision express saying:'Burn process failed'
    By johnnr892 in forum Help! Quick Relief From Tech Headaches
    Replies: 15
    Last Post: 11-12-2005, 11:43 PM
  3. 3 free orange sims per address
    By daveham in forum Retail Therapy and Bargains
    Replies: 73
    Last Post: 16-02-2005, 01:26 AM
  4. Dial-up program help.
    By Anders in forum Software
    Replies: 4
    Last Post: 04-09-2003, 02:43 AM

Posting Permissions

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