Posts: 5
Threads: 2
Joined: Oct 2004
hi all,
I need some help in Qbasic programming.
I need to pass the argument directly to executable such as
notepad "c:\test.txt"
here is my pogram
abc.bas
input "enter name" , a$
print a
but i need to pass the abc "try me" and it should print
welcome tryme
Thanks in Advance,
Mat@fuseflow.com
Posts: 658
Threads: 71
Joined: Sep 2003
Try COMMAND$ statament.
'start program:
blabla.exe "try me"
and in program do so:
if Command$>"" then
print "Hello " + Command$
end if
url]http://fbide.sourceforge.net/[/url]
Posts: 5
Threads: 2
Joined: Oct 2004
Quote:Try COMMAND$ statament.
'start program:
blabla.exe "try me"
and in program do so:
if Command$>"" then
print "Hello " + Command$
end if
Thanks it works i need one more reference. I lost my Qbasic REference manual and dont remember any command set .
Can u tell what is for convert a String to integer Cstr or Cint or if u have link please forward me for the reference
thank you,
Mat
Posts: 5
Threads: 2
Joined: Oct 2004
Quote:Try COMMAND$ statament.
'start program:
blabla.exe "try me"
and in program do so:
if Command$>"" then
print "Hello " + Command$
end if
Hi
I Tried it works but only accepts as A string value i need value passed to be Integer when i use Cint function it gives me error
there is my code
abc.bas
if command$ > "" then
a% = command$
c% = a% + 1000
print c%
end if
when i compile it trows me a error type mismatch
please help.
thanks in advance
Posts: 658
Threads: 71
Joined: Sep 2003
VAL(atring$) vonverts to numeric value :wink:
url]http://fbide.sourceforge.net/[/url]
Posts: 5
Threads: 2
Joined: Oct 2004
Quote:VAL(atring$) vonverts to numeric value :wink:
thank you once again.
U Guies are fast .
If you guies need any help in Java - SMS Technology please do ask you i can help you.
Thanks again
Posts: 658
Threads: 71
Joined: Sep 2003
No problem :wink:
url]http://fbide.sourceforge.net/[/url]