Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Community Forums
 Code Support: ASP (Non-Forum Related)
 Questions on some VB Built in functions....
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

Da_Stimulator
DEV Team Forum Moderator

USA
3373 Posts

Posted - 10 November 2001 :  20:43:21  Show Profile  Send Da_Stimulator an AOL message  Send Da_Stimulator a Yahoo! Message
These are basic (I guess) built in functions within VB, which I either use rarely, not at all, or wrongly... The first one I use alot, 'replace(string, string1, replacement)' - but when snooping around my HTML editor I noticed 3 other optional arguments. I also noticed in the Snitz Code (inc_functions.asp) these 3 option arguments are used. What are they and could someone provide an example of what each one does/means?


Also - This Filter(input, search) function - I never used it ever, but found it lurking in the asp code library within my HTML editor. I was wondering what it does and what purpose it could serve, if any?


StrComp(compare1, compare2) - this is another one I've never used - whats it do? I know it compares 2 strings, but what would the output be? would it be the same as saying something like if compare1 = compare2 then compvar = true? then else would be false?

and I also found something I never even heard of, 'Erase' - According to my editor; it 'un-dims' a variable (or multiple) - what advantage/disadvanage would this have over just leaving the variables dimmed the way they are? Or would this serve as an alternate for ReDim?

----
-Eric (da_stimulator)
Stims Snitz Test area - Running 3.3.03, 4 beta, Huw's code, and Davio's code
Need a Mod? Check out the Mod Resource

RichardKinser
Snitz Forums Admin

USA
16655 Posts

Posted - 10 November 2001 :  20:47:28  Show Profile
try here:

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/script56/html/vtorifunctions.asp
Go to Top of Page

Da_Stimulator
DEV Team Forum Moderator

USA
3373 Posts

Posted - 10 November 2001 :  20:59:21  Show Profile  Send Da_Stimulator an AOL message  Send Da_Stimulator a Yahoo! Message
Thx richard :) contrary to most times I visit MSDN, this was actually helpful.

From what I gather, Filter is good for search queries and filtering arrays - I wasnt sure what exactly it did, I thought it was another version of replace... I guess it is sort of, but for arrays.

StrComp I didnt understand at all... guess thats used for math

I couldnt find anything on 'erase', perhaps thats a VB only thing, not asp?

and replace was pretty easy to understand... they just specify where to start, how many times to replace, and binary vs text comparison.

Just out of curiosity, since binary is the default, and thats what I most commonly use, how come it works with text strings?

----
-Eric (da_stimulator)
Stims Snitz Test area - Running 3.3.03, 4 beta, Huw's code, and Davio's code
Need a Mod? Check out the Mod Resource
Go to Top of Page

Doug G
Support Moderator

USA
6493 Posts

Posted - 11 November 2001 :  01:25:44  Show Profile
filter gives you back an array of items containing your filter from a larger array.

erase reinitializes an array

strcomp compares strings, helpful for alphabetizing

binary vs. textual is pretty much case-sensitive vs case-insensitive.


======
Doug G
======
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.89 seconds. Powered By: Snitz Forums 2000 Version 3.4.07