Qbasicnews.com

Full Version: Pls Help me? I am new to BASIC
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
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
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
Do you mean QBASIC or BASIC?

Maybe he's talking about some weird dialect of BASIC that has a MATCH function.
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
What is the evil J word doing there??
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...*
Hm......

Ok then.

*lowers nuklear weapon*..
:rotfl:

*thinks aga should look "nuklear" up in dictionary* :lol:
Here you go:

Location% = INSTR("c:\java\blah", "\")

This command will give only the first occurance of the "\" character =P.
TBBQ: he already has been given the answer?? That is just a useless post.
Pages: 1 2