Results 1 to 12 of 12

Thread: String manipulation

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Feb 2001
    Location
    NL
    Posts
    70

    String manipulation

    Hi,

    Ive got a string consisting of several database fields, I want to put the string into a control and I want part of the string to be BOLD.....

    Anyone on how to accomplish this?

    Thanx
    "Do, or do not. There is no 'try'. "
    - Yoda ('The Empire Strikes Back')
    __________________

  2. #2
    Addicted Member E-Link's Avatar
    Join Date
    Nov 2001
    Location
    INA
    Posts
    242
    what control do u want to use ?
    RichTextBox ?

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Feb 2001
    Location
    NL
    Posts
    70
    No Im using an external calender control.........
    "Do, or do not. There is no 'try'. "
    - Yoda ('The Empire Strikes Back')
    __________________

  4. #4
    Addicted Member E-Link's Avatar
    Join Date
    Nov 2001
    Location
    INA
    Posts
    242
    is this control have BOLD property ?
    if it have , how could u use it ?

  5. #5
    Addicted Member E-Link's Avatar
    Join Date
    Nov 2001
    Location
    INA
    Posts
    242
    but , if u want to manipulate string , u can use VB Function like MID,LEFT,RIGHT,INSTR

  6. #6

    Thread Starter
    Lively Member
    Join Date
    Feb 2001
    Location
    NL
    Posts
    70
    The control DOES have a bold property but I only want part of the string to be bold, Im looling for a Ucase type of command.......

    But I think its simple not possible
    "Do, or do not. There is no 'try'. "
    - Yoda ('The Empire Strikes Back')
    __________________

  7. #7
    Addicted Member E-Link's Avatar
    Join Date
    Nov 2001
    Location
    INA
    Posts
    242
    Code:
    Mid(string, start[, length])
    
    Dim MyString, FirstWord, LastWord, MidWords
    
    MyString = "Mid Function Demo"   ' Create text string.
    FirstWord = Mid(MyString, 1, 3)   ' Returns "Mid".
    LastWord = Mid(MyString, 14, 4)   ' Returns "Demo".
    MidWords = Mid(MyString, 5)   ' Returns "Function Demo".

  8. #8

    Thread Starter
    Lively Member
    Join Date
    Feb 2001
    Location
    NL
    Posts
    70
    OK,
    what part is bold??

  9. #9
    Addicted Member E-Link's Avatar
    Join Date
    Nov 2001
    Location
    INA
    Posts
    242
    could u show me ur code ?

  10. #10

    Thread Starter
    Lively Member
    Join Date
    Feb 2001
    Location
    NL
    Posts
    70
    vlcText2 = Trim(vlxClient.Fields("familyname")) & " " & Trim(vlxClient.Fields("firstnaam"))

    wdvCalender.DateText(vllDate) = vlcText2

    thats my code and I need this part to be bold:
    Trim(vlxClient.Fields("familyname"))
    "Do, or do not. There is no 'try'. "
    - Yoda ('The Empire Strikes Back')
    __________________

  11. #11
    INXSIVE Bruce Fox's Avatar
    Join Date
    Sep 2001
    Location
    Melbourne, Australia
    Posts
    7,429

    This may help

    Try Beachbums example from this post, It may be a
    work around for you.

    http://www.vbforums.com/showthread.p...highlight=bold
    ________
    Katyl
    Last edited by Bruce Fox; Aug 14th, 2011 at 04:01 AM.

  12. #12
    PowerPoster rjlohan's Avatar
    Join Date
    Sep 2001
    Location
    Sydney, Australia
    Posts
    3,205
    It would depend on the calendar control. You can't give a string properties like bold. A string is just a bit of data. If the control lets you bold part of its display, then that's up to the control. We can't really advise you on specific, non-common controls.
    -----------------------------------------
    -RJ
    [email protected]
    -----------------------------------------

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