Results 1 to 2 of 2

Thread: Drop Downlist Box

  1. #1

    Thread Starter
    New Member
    Join Date
    Sep 2002
    Posts
    14

    Drop Downlist Box

    Hi,

    i have drop down list box which basically hold 2 values.(concatenated in my xml schema)

    wat i want is to specify the length of the concatenated values.
    eg:

    Description and Name is concatenated.

    Description varies for different names so in my list box if the desc is too big then the name is not visible.
    if it is small then both desc and name is displayed.

    Is there any way to specify the length of the description to some fixed value. so that i can view both the values.

    Example:

    wat i want is to have fixed length for description and then the name should be displayed.

    Description Name
    aaaaaaaaaaaaaaaaaaaa bbbbbb

    i.e description should always be of this length watever be the data length.The data might exceed this size but still it should display only this much of length.


    Pls help.

    thanks,
    edna.

  2. #2
    Addicted Member rdove's Avatar
    Join Date
    Dec 2002
    Location
    Indianapolis
    Posts
    251
    You can use a couple different functions to do this.

    Here is an example limiting text to only 13 characters.

    Code:
    dim dr as OledbDataReader
    dim var as string
    
    if Len(dr("Posted_By")) > 13 then
      var = Left(dr("Posted_By"), 13)
    else
      var = dr("Posted_By")
    end if
    
    response.write(var)
    ~Ryan





    Have I helped you? Please Rate my posts.

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