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 Lil Wayne
10-21-2008 09:33 PM
Last post by Snakebite
Today 02:11 AM
45 Replies, 365 Views
Go to first new post I *think* I just got...
Today 02:03 AM
Last post by Hodizzle
Today 02:03 AM
0 Replies, 1 Views
Go to first new post Plastic Surgery Hell
Yesterday 08:02 PM
by Li-Shun
Last post by Hodizzle
Today 01:51 AM
11 Replies, 44 Views
Go to first new post What are you currently...
09-12-2008 04:16 PM
by Ocean
Last post by April<33
Today 01:36 AM
218 Replies, 1,404 Views
Go to first new post mOBSCENE's score sender...
Today 01:11 AM
Last post by April<33
Today 01:30 AM
3 Replies, 12 Views
Reply
 
LinkBack Thread Tools Display Modes

 VB6 GetBetween
Old 04-08-2007, 09:14 PM   #1 (permalink)
sockopen
Guest

 
Posts: n/a
GPoints: 0 [Check]
iTrader: / %
VB6 GetBetween

The fastest and most memory efficiently writable 'GetStringBetween' function.

Code:
Public Function GB(rC As String, rS As String, rF As String, Optional lgB As Long = 1) As String
    lgB = InStr(lgB, rC, rS) + Len(rS): GB = Mid$(rC, lgB, InStr(lgB, rC, rF) - lgB)
End Function
MsgBox GB("sockapensockopen", "sock", "pen") - will return an 'a'.
MsgBox GB("sockapensockopen", "sock", "pen", 2) - will return an 'o'.

Last edited by sockopen; 04-13-2007 at 11:26 PM.
  Reply With Quote

 
Old 04-09-2007, 12:57 AM   #2 (permalink)
Underground

Male second2none is offline
 
Join Date: Sep 2006
Location: BrisBANE <----
Age: 19
Posts: 5,025
GPoints: 318
iTrader: 1 / 100%
second2none Is a Party Captainsecond2none Is a Party Captainsecond2none Is a Party Captain
Rep Power: 16
mm can we use this with strings?

like

strDate = (strHTML, "blahblah", "Blah Blah")

??
__________________
This is from:
Screenies Of A Mod
Code:
How did you do it? FLP , jotform, some other form of hacking? - First Class Noob
Lawl.. funny shit.

Quote:
Originally Posted by Kore
By k[ore] on Today, 08:44 AM
i'll give you rep alright, but it won't be positive.
Lawl Ownt

Hoes forgot to eat a dick and shut the FUCK UP!
  Reply With Quote

 
Old 04-09-2007, 09:04 AM   #3 (permalink)
sockopen
Guest

 
Posts: n/a
GPoints: 0 [Check]
iTrader: / %
Rep Power:
Quote:
Originally Posted by Kane View Post
mm can we use this with strings?

like

strDate = (strHTML, "blahblah", "Blah Blah")

??
Yes, that's primarily what it was developed for.
  Reply With Quote

 
Old 04-11-2007, 01:05 AM   #4 (permalink)
Underground

Male second2none is offline
 
Join Date: Sep 2006
Location: BrisBANE <----
Age: 19
Posts: 5,025
GPoints: 318
iTrader: 1 / 100%
second2none Is a Party Captainsecond2none Is a Party Captainsecond2none Is a Party Captain
Rep Power: 16
Thanks Ill try it out sometime Next time I use GSB, Ill use this one good work.
__________________
This is from:
Screenies Of A Mod
Code:
How did you do it? FLP , jotform, some other form of hacking? - First Class Noob
Lawl.. funny shit.

Quote:
Originally Posted by Kore
By k[ore] on Today, 08:44 AM
i'll give you rep alright, but it won't be positive.
Lawl Ownt

Hoes forgot to eat a dick and shut the FUCK UP!
  Reply With Quote

 
Old 04-15-2007, 10:36 PM   #5 (permalink)
Banned

Zachafer is offline
 
Join Date: Apr 2007
Posts: 95
GPoints: 5
iTrader: 0 / 0%
Zachafer Is gaining popularity
Rep Power: 0
Looks UB3R F4$T H4CK3R.
(Looks UBER FAST HACKER.)
JKJK

Is this right then:

Code:
MsgBox GB("neopetseatscandy", "neopets", "candy")
That would show a MSGBOX that says eats?
---
edit: got my answer
  Reply With Quote

 
Old 04-19-2007, 01:51 AM   #6 (permalink)
Underground

Male second2none is offline
 
Join Date: Sep 2006
Location: BrisBANE <----
Age: 19
Posts: 5,025
GPoints: 318
iTrader: 1 / 100%
second2none Is a Party Captainsecond2none Is a Party Captainsecond2none Is a Party Captain
Rep Power: 16
Sadly the bad thing with this is when you if cant find it you get an error & the program closes.
__________________
This is from:
Screenies Of A Mod
Code:
How did you do it? FLP , jotform, some other form of hacking? - First Class Noob
Lawl.. funny shit.

Quote:
Originally Posted by Kore
By k[ore] on Today, 08:44 AM
i'll give you rep alright, but it won't be positive.
Lawl Ownt

Hoes forgot to eat a dick and shut the FUCK UP!
  Reply With Quote

 
Old 04-19-2007, 03:12 AM   #7 (permalink)
Underground

Male Nitech is offline
 
Nitech's Avatar
 
Join Date: Jan 2007
Location: Russia
Age: 14
Posts: 226
GPoints: 31
iTrader: 0 / 0%
Nitech Is gaining popularity
Rep Power: 6
Its a twoliner D:

But put On Error Resume Next and you'll be fine.
__________________

Quote:
Vlad says:
LEL 20 DUELRZ PLIZ ;O
Ryan says:
HAHA NO LOL
Vlad says:
You like men.
^Lesson learnt.
  Reply With Quote

 
Old 04-19-2007, 03:19 AM   #8 (permalink)
Underground

Male second2none is offline
 
Join Date: Sep 2006
Location: BrisBANE <----
Age: 19
Posts: 5,025
GPoints: 318
iTrader: 1 / 100%
second2none Is a Party Captainsecond2none Is a Party Captainsecond2none Is a Party Captain
Rep Power: 16
Thanks Vlad
__________________
This is from:
Screenies Of A Mod
Code:
How did you do it? FLP , jotform, some other form of hacking? - First Class Noob
Lawl.. funny shit.

Quote:
Originally Posted by Kore
By k[ore] on Today, 08:44 AM
i'll give you rep alright, but it won't be positive.
Lawl Ownt

Hoes forgot to eat a dick and shut the FUCK UP!
  Reply With Quote

 
Old 04-27-2007, 05:33 PM   #9 (permalink)
Banned

Zachafer is offline
 
Join Date: Apr 2007
Posts: 95
GPoints: 5
iTrader: 0 / 0%
Zachafer Is gaining popularity
Rep Power: 0
Is this thingg outdated?
  Reply With Quote

 
Old 04-27-2007, 05:37 PM   #10 (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
Quote:
Originally Posted by Zachafer View Post
Is this thingg outdated?
it could never outdate lol
  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 02:13 AM.


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.23650789 seconds (100.00% PHP - 0% MySQL) with 17 queries