Go Back   Gaming Gutter > Non-Gaming > Programming > Source Code


Source Code - Have a source code/project files you want to post? Do so here.

» Site Navigation
» Home
» FAQ
» Log in
User Name:

Password:

Not a member yet?
Register Now!
» Advertisement
» Recent Threads
Go to first new post Trading very old NP...
Today 05:15 PM
by devl014
Last post by devl014
Today 09:53 PM
6 Replies, 24 Views
Go to first new post Buy it NOW! Special...
11-19-2008 10:30 PM
Last post by l_royalty_l
Today 09:53 PM
20 Replies, 229 Views
Go to first new post Consumption
Today 09:23 PM
by Axed
Last post by Axed
Today 09:50 PM
2 Replies, 3 Views
Go to first new post My formal on Friday
11-17-2008 05:12 AM
by Bex
Last post by Aethean
Today 09:49 PM
10 Replies, 50 Views
Go to first new post Pornoshoot!
11-10-2008 01:12 PM
by Cyrus
Last post by Axed
Today 09:45 PM
7 Replies, 72 Views
Reply
 
LinkBack Thread Tools Display Modes

 [VB6]Add * Wild Cards To Your Program
Old 02-24-2007, 06:12 PM   #1 (permalink)
Banned

Bump J is offline
 
Join Date: Feb 2007
Posts: 100
GPoints: 20
iTrader: 0 / 0%
Bump J Is gaining popularity
Rep Power: 0
[VB6]Add * Wild Cards To Your Program

Heres an easy way to add * wild cards

Code:
Dim strTemp As String

For X = 0 To lstItems.ListCount - 1 Step 1 'Goes Through The List
If lstItems.List(X) = strItem 'If the item in the listbox is the same as the item your looking for then it goes to the other part of the program
Call DoSomething
ElseIf  InStr(1, lstItems.List(X), "*") Then 'If item in the listbox contains a * then it does these condition
strTemp = lstItems.List(X) 'put the current item in the listbox into a string so it doesnt change listbox
strTemp = Replace (strTemp, "*", "") 'replace the * with nothing
If InStr(1, strItem, strTemp) Then ' if the item in the listbox that had the * is in the item you are looking for it goes to the other part of the program
Call DoSomething
End If 
End If
Next X
  Reply With Quote

 Re: [VB6]Add * Wild Cards To Your Program
Old 02-25-2007, 02:05 PM   #2 (permalink)
Full Member

Male Laser Wave is offline
 
Join Date: Oct 2006
Posts: 37
GPoints: 20
iTrader: 0 / 0%
Laser Wave Is gaining popularity
Rep Power: 7
Re: [VB6]Add * Wild Cards To Your Program

This doesn't actually show people how to use wild cards at all.

For a real wildcard system it would need to distinguish between the position that the * is placed. For example, it would only find items like green blah, green blah blah etc for green*, however your example would just find anything with green in it like blah blah green.
  Reply With Quote
Reply

Bookmarks



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Powered by vBadvanced CMPS v3.0 RC2

All times are GMT -7. The time now is 09:54 PM.


vBulletin skin developed by: eXtremepixels
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The contents of this webpage are copyright © 2006-2008 GamingGutter.com. All Rights Reserved.

Page generated in 0.09057999 seconds (100.00% PHP - 0% MySQL) with 19 queries