Maybe this is what you mean....
I don't know how you did it, but I can't get the date$ command in Qbasic output a date with SAT or MON before it. Anyways, if u want just to extract the thirst three letters and make out of SUN sunday, in the middle of the screen... that's not so hard; here's the code. You have to fill in the x and the y for the locate statement yourself, caus' it depends on the screen resolution your using.
As I told you before, I don't know how you did the day-stuff. But you'll have to store this as a string, for example; mystring$. So you got this string, e.g. "SAT 09-09-2000" ok?. Than do this:
locate x,y 'middle of the screen
if right$(mystring$,3) = "SUN" then print "Sunday"
if right$(mystring$,3) = "MON" then print "Monday"
etcetera etcetera etcetera
Or, if you wanna safe space:
locate x,y
day$ = right$(mystring$,3)
if day$ = "SUN" then print "SUNDAY"
if day$ = "MON" then print "MONDAY"
etcetera etcetera etcetera
I don't know if this is what you're looking for, but anyways... damn... did i really talked this much?!
Re: Maybe this is what you mean....
Quote:
Originally posted by Skateboarder
[B]I don't know how you did it, but I can't get the date$ command in Qbasic output a date with SAT or MON before it.
that's what i was talking about.
if you type date at the prompt the bios shows it, but i
can't get qbasic to do it without some heavy coding.
i already tried many variations of the code you posted,
but can't make anything work that's short like that.
thanks anyway.
i gave up on anyone replying to this post so i gave up
qbasic for a while and went back to VBing for a while
Thanks so much for replying !!!
1 Attachment(s)
THE ATTATCHMENT IS HERE..
forgot to attatch :D
(25 kb download)