Qbasicnews.com
November 20, 2019, 05:39:53 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Back to Qbasicnews.com | QB Online Help | FAQ | Chat | All Basic Code | QB Knowledge Base
 
   Home   Help Search Login Register  
Pages: 1 [2]
  Print  
Author Topic: COMMAND$ gives uppercase. Get command with original case.  (Read 6896 times)
Moneo
Na_th_an
*****
Posts: 1971


« Reply #15 on: January 30, 2005, 09:02:55 PM »

Ok guys, I was wrong about QB.QLB and QB.BI. Since I never needed these, I don't have them in my "incomplete" set of Quickbasic 4.5.

I posted this challenge because I considered that it would be an interesting topic to get the commandline case sensitive. I already implemented this logic back in 1999 using a function in the QuickPak library that I purchased.

Therefore, I really don't have the inclination to obtain all the elements that I'm missing plus QB and the IDE, just to test Plasma's entry, even though it might be the most "intelligent" way to do it.

In past challenges that I've posted, I think I have been quite fair in testing entries and providing feedback. This one entry goes beyond my intended limits.

Give me a break!
*****
Logged
Mango
Wandering Guru
***
Posts: 360



« Reply #16 on: January 31, 2005, 12:00:12 AM »

LOL at this thread.  Nice job Plasma (although my current understanding of QB (like moneo) too insophistocated to know how to use your code).  I understand what your code does...it goes to the mem location where the command line exists and retrieves it.  You demonstrate, as usual, great knowledge of low-level DOS coding, in conjunction with the ability to understand and solve a problem.  I hope you are making a bundle with your knowledge.  

Moneo...this is not a dig.  I just thought the thread was funny with your waryness...

Cheers all....keep coding...
Logged
Nemesis
Forum Regular
**
Posts: 118



« Reply #17 on: January 31, 2005, 12:53:39 AM »

Quote

I understand what your code does...it goes to the mem location where the command line exists and retrieves it.


You could just write a little routine to PEEK into memory and retrieve it that way also... try it  :wink:

Cya,

Nemesis
Logged
DrV
Na_th_an
*****
Posts: 1553



WWW
« Reply #18 on: January 31, 2005, 09:17:33 PM »

That's what Plasma's code does.  The int is needed to get the location of the DTA to figure out where to PEEK.
Logged
Nemesis
Forum Regular
**
Posts: 118



« Reply #19 on: February 02, 2005, 05:01:26 AM »

Quote from: "DrV"
That's what Plasma's code does.  The int is needed to get the location of the DTA to figure out where to PEEK.


Why do you mention this?
Maybe you wanted to inform anyone who didn't get it?  :Huh:
See, I guess it's just one of my natural abilities to understand everyones programming knowledge just from reading their posts, code, etc...
I guess this type of perception is not one of your stronger traits  :roll:
But, yes I completely understand what Plasma's code does, along with 99% of the forum, since it was relayed 3 or 4 times, and I even quoted someones explaination my last post, thinking no one
would misunderstand me... Oh well, let me explain what I meant...
Write a small routine , which scans memory to find COMMAND$. It was just an alternative to using an interrupt! Hope this clears up my intention.

Nemesis
Logged
Pages: 1 [2]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.21 | SMF © 2015, Simple Machines Valid XHTML 1.0! Valid CSS!