• Welcome to Valhalla Legends Archive.
 

re: inserting * / in commands

Started by turtles, May 08, 2003, 12:37 PM

Previous topic - Next topic

turtles

(sorry im quite off topic)

im sure there is a much shorter way to do this.. and... i think i misunderstood the post.. but o well



Ummm, what the hell does that do?  If it is just Instr(), I will have to archive this post to the hall-of-coding-shame.

"""""""""""""""""""""""""""""""""""""""""
=\ well i thought instr only looks for one particular string and it would be only one single format.. *word*

my way u can insert an asterick anywhere. and yea. i said there must be a shorter way to do this.. other then my given code.. and i did say it was long and messy. i didnt clean it up

the way i see it there are about 4 main scenarios
*word/*w*ord
word*/wor*d*
*word*/*wo*rd*
wo*rd/w*or*d

a simple instr will look for *word*

>_< he locked the other post how evil. forced me to make another post to respond =\

Grok

Ohok :)  You did a wildcard match function?

turtles

uh huh. im sure there is better coding out there somewhere. but i made my own. give me some credit  ;D

Camel

it had nothing to do with wildcards; when you log in with a d2 client, you need to use * to indicate an account name rather than a charactor name.

Etheran

Wow, that post confused me..  you might want to check into VB's Like operator, or perhaps go even deeper and learn regex and [try to] find a regex library that works with VB (maybe there's one built in, so you should refer to msdn first).

turtles

Quote from: Camel on May 08, 2003, 02:42 PM
it had nothing to do with wildcards; when you log in with a d2 client, you need to use * to indicate an account name rather than a charactor name.

heh. i quote myself..

"im sure there is a much shorter way to do this.. and... i think i misunderstood the post.. but o well"