Visual Basic Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreVisual Basic Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old December 22nd, 2003, 12:42 PM
vusubhahini vusubhahini is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2003
Posts: 6 vusubhahini User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Question Convert uppercase help in VB6

Hi all,
Thanks for helping e out for my last question. Hope u guys will help me out in this too. The following is my code. What i want to do is .... Ivresults.listitems are the results... i want to display all the results in Uppercase...

Private Sub cmdSearch_Click()
Dim Nodelist As IXMLDOMNodeList
Dim i As Long


On Error GoTo Err_Handler

Screen.MousePointer = vbHourglass

If Trim(txtSearch.Text) <> "" Then ' Only search if something entered

If optSearchType(0).Value = True Then

Set Nodelist = gSearchProducts(stCODE, txtSearch.Text)

ElseIf optSearchType(1).Value = True Then

Set Nodelist = gSearchProducts(stDESC, txtSearch.Text)

End If


lvResults.ListItems.Clear

If Nodelist.length > 0 Then
For i = 0 To Nodelist.length - 1
AddProductToList lvResults, Nodelist(i)
Next
If Nodelist.length > 1 Then
lblResults.Caption = Nodelist.length & " products found."
Else
lblResults.Caption = Nodelist.length & " product found."
End If
Else
lblResults.Caption = "0 products found."
End If

Set Nodelist = Nothing


Else
MsgBox "Please enter a search string before clicking the Search button.", vbInformation
End If

Screen.MousePointer = vbNormal

Exit Sub

Thanks.

Reply With Quote
  #2  
Old December 22nd, 2003, 10:58 PM
cleverpig cleverpig is offline
Contributing User
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: Jul 2003
Posts: 1,152 cleverpig User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
Send a message via MSN to cleverpig
Plz use ucase function to do it..
Simply code:
dim str1 as string
str1="Wait"
str1=ucase(str1)
msgbox str1
...

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreVisual Basic Programming > Convert uppercase help in VB6


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway