Results 1 to 3 of 3

Thread: [Resolved] Checking Text Field

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Feb 2005
    Posts
    107

    Resolved [Resolved] Checking Text Field

    Hey, I have a text filed that the user puts their default location to this computer game.

    For example my path is C:\Program Files\Publisher\GameName\.

    I need my VB to make sure that the \ is on the end of the line incase people type C:\Program Files\Publisher\GameName . It's vital the backslash is there!

    Any help is great

    Thanks in Advance
    Last edited by BefunMunkToloGen; Apr 10th, 2005 at 09:20 PM.

  2. #2
    Fanatic Member Blade's Avatar
    Join Date
    Jan 1999
    Location
    Stoke-on-Trent, UK
    Posts
    527

    Re: Checking Text Field

    maybe something like:

    VB Code:
    1. If Right$(txtFile.Text,1) <> "\" Then
    2.   txtFile.Text = txtFile.Text & "\"
    3. End If

    Blade

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Feb 2005
    Posts
    107

    Re: Checking Text Field

    Worked a treat

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