Results 1 to 4 of 4

Thread: help

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Sep 2004
    Posts
    83

    help

    Hi:

    im building a web based .NET application. this is the situation. i have the following text boxs:

    1. Equipment#From 2. #ofEquipments 3. Equipment#To

    what i'd like to do is that a user enters 1.( something like T-8900), the he enters 2.(e.g.5), then the application should get 3.(which should be T-8905), you add the #ofEquipments to the Equipment#From to get Equipment#To. How should the code be written?

    thanks for your help.

  2. #2
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170
    Is the format of the text being entered always fixed?

    In other words, will it always be T-#### ?

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Sep 2004
    Posts
    83
    Yes . it will be fixed as T-####.

    Thanks for your help.

  4. #4
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170
    VB Code:
    1. TextBox3.Text = "T-" & (CInt(TextBox1.Text.Substring(2)) + CInt(TextBox2.Text)).ToString

    This?

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