|
-
Dec 19th, 2001, 03:33 AM
#1
Thread Starter
Lively Member
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')
__________________
-
Dec 19th, 2001, 03:37 AM
#2
Addicted Member
what control do u want to use ?
RichTextBox ?
-
Dec 19th, 2001, 03:39 AM
#3
Thread Starter
Lively Member
No Im using an external calender control.........
"Do, or do not. There is no 'try'. "
- Yoda ('The Empire Strikes Back')
__________________
-
Dec 19th, 2001, 03:49 AM
#4
Addicted Member
is this control have BOLD property ?
if it have , how could u use it ?
-
Dec 19th, 2001, 03:50 AM
#5
Addicted Member
but , if u want to manipulate string , u can use VB Function like MID,LEFT,RIGHT,INSTR
-
Dec 19th, 2001, 03:55 AM
#6
Thread Starter
Lively Member
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')
__________________
-
Dec 19th, 2001, 04:15 AM
#7
Addicted Member
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".
-
Dec 19th, 2001, 04:32 AM
#8
Thread Starter
Lively Member
-
Dec 19th, 2001, 04:34 AM
#9
Addicted Member
could u show me ur code ?
-
Dec 19th, 2001, 04:45 AM
#10
Thread Starter
Lively Member
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')
__________________
-
Dec 19th, 2001, 05:03 AM
#11
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.
-
Dec 20th, 2001, 02:13 AM
#12
PowerPoster
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|