Posts: 1
Threads: 1
Joined: Feb 2004
I want to get the location of \ character using MATCH. But match already contains \ as escape character.
Is it possible to get the location of \?
Can u help me?
e.g) I want to get the location of \ in the following path
c:\java\lib
Regards,
Nalini
alini
Posts: 2,771
Threads: 96
Joined: Oct 2003
Look up the INSTR command. It will tell you the first occourence of a specified character in a string, starting from a specified position.
Here is a link to the command
Posts: 1,272
Threads: 36
Joined: Feb 2003
Do you mean QBASIC or BASIC?
Maybe he's talking about some weird dialect of BASIC that has a MATCH function.
Posts: 2,771
Threads: 96
Joined: Oct 2003
Yep, Are you using Qbasic, mate? Because Ive never heard of a MATCH command for Qbasic before... is this Basic or GWBasic? of Firstbasic... or Powerbasic... or umm.. to many to comprehend..=P
Posts: 3,368
Threads: 195
Joined: Jan 2003
What is the evil J word doing there??
Peace cannot be obtained without war. Why? If there is already peace, it is unnecessary for war. If there is no peace, there is already war."
Visit www.neobasic.net to see rubbish in all its finest.
Posts: 2,771
Threads: 96
Joined: Oct 2003
Um... think fast.... its **Coffee!!!** Yea.... thats it. He has a folder in his HDD devoted to coffee. Yup..
...
*Psst... you owe me one, mathuna...*
Posts: 3,368
Threads: 195
Joined: Jan 2003
Hm......
Ok then.
*lowers nuklear weapon*..
Peace cannot be obtained without war. Why? If there is already peace, it is unnecessary for war. If there is no peace, there is already war."
Visit www.neobasic.net to see rubbish in all its finest.
Posts: 2,771
Threads: 96
Joined: Oct 2003
:rotfl:
*thinks aga should look "nuklear" up in dictionary* :lol:
Posts: 4,307
Threads: 63
Joined: May 2003
Here you go:
Location% = INSTR("c:\java\blah", "\")
This command will give only the first occurance of the "\" character =P.
Posts: 2,771
Threads: 96
Joined: Oct 2003
TBBQ: he already has been given the answer?? That is just a useless post.