For some reason this is not working when I run this applicaton and I type th word AGREE and press enter.
Re: This is not workingfrom the "This is my truth, tell me yours" album.
By: Phil to All on Sat Aug 25 2007 20:45:00
For some reason this is not working when I run this applicaton and I type
th word AGREE and press enter.
You have an awful lot of END_CMDs and no END_IFs at all!
Also, may I draw your atention to section 3.1 of the BAJA docs?
---
Playing: "S.Y.M.M" by "Manic Street Preachers"
For some reason this is not working when I run this applicaton and I type th word AGREE and press enter.
!INCLUDE ERRNO.INC
!INCLUDE FILE_IO.INC
!INCLUDE USERDEFS.INC
!INCLUDE SBBSDEFS.INC
!INCLUDE NODEDEFS.INC
CLS
printfile "c:\sbbs\text\validate.txt"
PRINT "\r\n"
PRINT "\r\n"
print "\r\nI agree to abide by the follow terms and conditions (AGREE Or Typ NO ): "
STR INFO
GETSTR INFO 5 K_UPPER
COMPARE_STR "AGREE"
This is not even working. When I tyepe in AGREE its not catching it.
STR INFO
GETSTR INFO 5 K_UPPER
COMPARE_STR "AGREE"
Re: This is not workingBy: Phil to All on Sat Aug 25 2007 08:45 pm
For some reason this is not working when I run this applicaton and I type
th word AGREE and press enter.
!INCLUDE ERRNO.INC
!INCLUDE FILE_IO.INC
!INCLUDE USERDEFS.INC
!INCLUDE SBBSDEFS.INC
!INCLUDE NODEDEFS.INC
CLS
printfile "c:\sbbs\text\validate.txt"
PRINT "\r\n"
PRINT "\r\n"
print "\r\nI agree to abide by the follow terms and conditions (AGREE Or Typ NO ): "
STR INFO
GETSTR INFO 5 K_UPPER
COMPARE_STR "AGREE"
I think you meant to write: COMPARE INFO "AGREE"
Snapple "Real Fact" #146:ž Synchronet ž Vertrauen ž Home of Synchronet ž telnet://vert.synchro.net
The smallest county in America is New York County, better known as Manhattan
Norco, CA WX: 73.2ųF, 56% humidity, 0 mph SSE wind, 0.00 inches rain/24hrs -
Re: Re: This is not workingBy: Phil to Angus McLeod on Sat Aug 25 2007 22:53:00
from the "(What's the story) Morning glory" album.This is not even working. When I tyepe in AGREE its not catching it.
STR INFO
GETSTR INFO 5 K_UPPER
COMPARE_STR "AGREE"
You are storing the input in 'INFO' but comparing the stringconst with the work string.
---
Playing: "The swamp song (version 1)" by "Oasis"
FLAG 1E if_false TOGGLE_USER_FLAG 1E TOGGLE_USER_FLAG
2E end_cmd compare_ars FLAG 1F if_false TOGGLE_USER_FLAG
I think you meant to write: COMPARE INFO "AGREE"
I did this and its still not working.
!INCLUDE ERRNO.INC
!INCLUDE FILE_IO.INC
!INCLUDE USERDEFS.INC
!INCLUDE SBBSDEFS.INC
!INCLUDE NODEDEFS.INC
!global info
CLS
printfile "c:\sbbs\text\validate.txt"
PRINT "\r\n"
PRINT "\r\n"
print "\r\nI agree to abide by the follow terms and conditions (AGREE Or Typ NO ): "
STR INFO
GETSTR INFO 5 K_UPPER
COMPARE INFO "AGREE"
IF_TRUE
print "\r\nThe Word Agree was typed in"
print "\r\n"Press Enter"
GETSTR INFO 5 K_UPPER
END_IF
STR INFO
Can you please give me working example?
No. I'm going to twit you for top-posting instead.
Re: Re: This is not workingBy: Phil to Digital Man on Sun Aug 26 2007 02:49 am
Please (for the umpteenth time), please post your replies *below* the quoted
text!
I did this and its still not working.
!INCLUDE ERRNO.INC
!INCLUDE FILE_IO.INC
!INCLUDE USERDEFS.INC
!INCLUDE SBBSDEFS.INC
!INCLUDE NODEDEFS.INC
!global info
CLS
printfile "c:\sbbs\text\validate.txt"
PRINT "\r\n"
PRINT "\r\n"
print "\r\nI agree to abide by the follow terms and conditions (AGREE Or Typ NO ): "
STR INFO
GETSTR INFO 5 K_UPPER
COMPARE INFO "AGREE"
IF_TRUE
print "\r\nThe Word Agree was typed in"
print "\r\n"Press Enter"
GETSTR INFO 5 K_UPPER
END_IF
STR INFO
Well I compiled your little code there and ran it and here is the result:
File not found.
c:\sbbs\text\validate.txt
I agree to abide by the follow terms and conditions (AGREE Or Type NO ): AGR----------------------------------------------------------------------------
The Word Agree was typed in
What more do you want it to do? Looks like it's working to me. <shrug>
Snapple "Real Fact" #145:ž Synchronet ž Vertrauen ž Home of Synchronet ž telnet://vert.synchro.net
Lake Superior is the world's largest lake.
Norco, CA WX: 78.0ųF, 60% humidity, 0 mph S wind, 0.00 inches rain/24hrs ---
Re: Re: This is not workingBy: Phil to Angus McLeod on Sun Aug 26 2007 10:34:00
from "The Evolution of Robin Thicke" album.Can you please give me working example?
No. I'm going to twit you for top-posting instead.
---
Playing: "Teach U A Lesson" by "Robin Thicke"
No. I'm going to twit you for top-posting instead.
uhm, excuse me, what does getting "twit'ed" mean?
Why, I do not do anything wrong and it was a valid question.
Phil
Why, I do not do anything wrong and it was a valid question.
Ok, this is interesting. I typed baja validate.src and its not working for m
Phil
post on the fucking bottom
Re: Re: This is not working
By: Phil to Angus McLeod on Mon Aug 27 2007 10:39 am
PHIL WILL YOU PLEASE POST ON THE FREAKING BOTTOM??????????????
Re: Re: This is not working
By: Jas Hud to Phil on Fri Aug 31 2007 11:32 pm
Re: Re: This is not working
By: Phil to Angus McLeod on Mon Aug 27 2007 10:39 am
PHIL WILL YOU PLEASE POST ON THE FREAKING BOTTOM??????????????
HAHAHAH
Phil, Start the revolution!
Blahahaha
Blahahaha
Don't do it, Phil! Join us.. life is good posting at the bottom..
Join us.. Join us..
Sysop: | Ree |
---|---|
Location: | Toronto, ON |
Users: | 2 |
Nodes: | 10 (0 / 10) |
Uptime: | 131:22:19 |
Calls: | 377 |
Calls today: | 2 |
Files: | 2 |
Messages: | 38,904 |