Author | Topic: hybrid compile error "error XBT0251: Reserved keyword" | |
---|---|---|
hanpedro | hybrid compile error "error XBT0251: Reserved keyword" on Fri, 07 Sep 2007 09:45:39 +0900 I have a hybrid compile error "error XBT0251: Reserved keyword" The error message is, main.prg(129:0): error XBT0251: Reserved keyword And the line is, 126 CASE LEVEL1 = 2 127 @ 24,39 CLEAR TO 24,80 128 @ 24,33 SAY "복구작업이 종료 될때까지 기다려 주세요." 129 DO RECOVER 130 DO BELLT 131 @ 11,19 SAY " FILE 복구가 완료 되었습니다 ... " And, 4 wanrnings main.prg(314:0): warning XBT0106: Procedure MAIN does not end with RETURN - 314 line: * RIGHTENTER.PRG * FUNC.prg(0:0): warning XBT0105: Function DATE_IN does not end with RETURN - 0 line: ??? FUNC.prg(48:0): warning XBT0105: Function PUSER9 does not end with RETURN - 48line: * BOX() 지정된 박스를 그린다. * FUNC.prg(130:0): warning XBT0100: RETURN statement with no value in function - 130line: RETURN Any comment are appreciated. | |
James Loughner | Re: hybrid compile error "error XBT0251: Reserved keyword" on Thu, 06 Sep 2007 21:31:36 -0400 I believe that RECOVER is the key word. rename the procedure The warnings are probably triggered by the first error. They will go away once you fix the error. Jim hanpedro wrote: > I have a hybrid compile error "error XBT0251: Reserved keyword" > > The error message is, > > main.prg(129:0): error XBT0251: Reserved keyword > > And the line is, > > 126 CASE LEVEL1 = 2 > 127 @ 24,39 CLEAR TO 24,80 > 128 @ 24,33 SAY "ë³µêµ¬ìž‘ì—…ì´ ì¢…ë£Œ ë 때까지 ê¸°ë‹¤ë ¤ > 주세요." > 129 DO RECOVER > 130 DO BELLT > 131 @ 11,19 SAY " FILE 복구가 완료 ë˜ì—ˆìŠµë‹ˆë‹¤ ... " > > And, 4 wanrnings > > main.prg(314:0): warning XBT0106: Procedure MAIN does not end with RETURN > - 314 line: > * RIGHTENTER.PRG * > > FUNC.prg(0:0): warning XBT0105: Function DATE_IN does not end with RETURN > - 0 line: ??? > > > FUNC.prg(48:0): warning XBT0105: Function PUSER9 does not end with RETURN > - 48line: > * BOX() ì§€ì •ëœ ë°•ìŠ¤ë¥¼ 그린다. * > > FUNC.prg(130:0): warning XBT0100: RETURN statement with no value in > function > - 130line: > RETURN > > > Any comment are appreciated. > > | |
hanpedro | Re: hybrid compile error "error XBT0251: Reserved keyword" on Fri, 07 Sep 2007 10:49:56 +0900 Dear Jim, Thanks for your kind comment for my question. But I could not understand "I believe that RECOVER is the key word. rename the procedure" Please comment more for my understanding, if possible, show me an example. regards, "James Loughner" <jwrl@suddenlink.net> 님이 다음 메시지를 작성했습니다. news:2d2d39b$2cdea609$35456d@news.alaska-software.com... >I believe that RECOVER is the key word. rename the procedure > > The warnings are probably triggered by the first error. They will go > away once you fix the error. > > Jim > > > > hanpedro wrote: >> I have a hybrid compile error "error XBT0251: Reserved keyword" >> >> The error message is, >> >> main.prg(129:0): error XBT0251: Reserved keyword >> >> And the line is, >> >> 126 CASE LEVEL1 = 2 >> 127 @ 24,39 CLEAR TO 24,80 >> 128 @ 24,33 SAY "ë³µêµ¬ìž‘ì—…ì´ ì¢…ë£Œ ë 때까지 >> ê¸°ë‹¤ë ¤ >> 주세요." >> 129 DO RECOVER >> 130 DO BELLT >> 131 @ 11,19 SAY " FILE 복구가 완료 >> ë˜ì—ˆìŠµë‹ˆë‹¤ ... " >> >> And, 4 wanrnings >> >> main.prg(314:0): warning XBT0106: Procedure MAIN does not end with RETURN >> - 314 line: >> * RIGHTENTER.PRG * >> >> FUNC.prg(0:0): warning XBT0105: Function DATE_IN does not end with RETURN >> - 0 line: ??? >> >> >> FUNC.prg(48:0): warning XBT0105: Function PUSER9 does not end with RETURN >> - 48line: >> * BOX() ì§€ì •ëœ ë°•ìŠ¤ë¥¼ 그린다. * >> >> FUNC.prg(130:0): warning XBT0100: RETURN statement with no value in >> function >> - 130line: >> RETURN >> >> >> Any comment are appreciated. >> >> | |
James Loughner | Re: hybrid compile error "error XBT0251: Reserved keyword" on Thu, 06 Sep 2007 22:21:23 -0400 You are calling a procedure which you named Recover but recover is a key word used in error recovery see "on error" in the Doc's. Change the name of the procedure and the problem will go away. See Doc's search for the word recover. Jim hanpedro wrote: > Dear Jim, > > Thanks for your kind comment for my question. > > But I could not understand "I believe that RECOVER is the key word. > rename the procedure" > > Please comment more for my understanding, if possible, show me an example. > > regards, > > "James Loughner" <jwrl@suddenlink.net> ë‹˜ì´ ë‹¤ìŒ ë©”ì‹œì§€ë¥¼ > 작성했습니다. > news:2d2d39b$2cdea609$35456d@news.alaska-software.com... >> I believe that RECOVER is the key word. rename the procedure >> >> The warnings are probably triggered by the first error. They will go >> away once you fix the error. >> >> Jim >> >> >> >> hanpedro wrote: >>> I have a hybrid compile error "error XBT0251: Reserved keyword" >>> >>> The error message is, >>> >>> main.prg(129:0): error XBT0251: Reserved keyword >>> >>> And the line is, >>> >>> 126 CASE LEVEL1 = 2 >>> 127 @ 24,39 CLEAR TO 24,80 >>> 128 @ 24,33 SAY "복구작업ì´ >>> 종료 ë ë•Œê¹Œì§€ 기다ë ¤ >>> 주세ìšâ€." >>> 129 DO RECOVER >>> 130 DO BELLT >>> 131 @ 11,19 SAY " FILE 복구가 완료 >>> ë˜었습니다 ... " >>> >>> And, 4 wanrnings >>> >>> main.prg(314:0): warning XBT0106: Procedure MAIN does not end with >>> RETURN >>> - 314 line: >>> * RIGHTENTER.PRG * >>> >>> FUNC.prg(0:0): warning XBT0105: Function DATE_IN does not end with >>> RETURN >>> - 0 line: ??? >>> >>> >>> FUNC.prg(48:0): warning XBT0105: Function PUSER9 does not end with >>> RETURN >>> - 48line: >>> * BOX() 지ì •ëÂÅ“ 박스를 >>> 그린다. * >>> >>> FUNC.prg(130:0): warning XBT0100: RETURN statement with no value in >>> function >>> - 130line: >>> RETURN >>> >>> >>> Any comment are appreciated. >>> >>> > | |
hanpedro | Compiled successfully! but....... on Fri, 07 Sep 2007 11:47:19 +0900 Compiled successfully! Thans Jim for your kind instruction. I compiled successfully!, but I coud not find exe file. And, warning messages are still showing. main.prg(314:0): warning XBT0106: Procedure MAIN does not end with RETURN FUNC.prg(0:0): warning XBT0105: Function DATE_IN does not end with RETURN FUNC.prg(48:0): warning XBT0105: Function PUSER9 does not end with RETURN FUNC.prg(130:0): warning XBT0100: RETURN statement with no value in function regards, "James Loughner" <jwrl@suddenlink.net> 님이 다음 메시지를 작성했습니다. news:3e6d3f4d$4ab8121c$35457a@news.alaska-software.com... > You are calling a procedure which you named Recover but recover is a key > word used in error recovery see "on error" in the Doc's. Change the name > of the procedure and the problem will go away. See Doc's search for the > word recover. > > > > Jim > > hanpedro wrote: >> Dear Jim, >> >> Thanks for your kind comment for my question. >> >> But I could not understand "I believe that RECOVER is the key word. >> rename the procedure" >> >> Please comment more for my understanding, if possible, show me an >> example. >> >> regards, >> >> "James Loughner" <jwrl@suddenlink.net> ë‹˜ì´ ë‹¤ìŒ ë©”ì‹œì§€ë¥¼ >> >> 작성했습니다. >> news:2d2d39b$2cdea609$35456d@news.alaska-software.com... >>> I believe that RECOVER is the key word. rename the procedure >>> >>> The warnings are probably triggered by the first error. They will go >>> away once you fix the error. >>> >>> Jim >>> >>> >>> >>> hanpedro wrote: >>>> I have a hybrid compile error "error XBT0251: Reserved keyword" >>>> >>>> The error message is, >>>> >>>> main.prg(129:0): error XBT0251: Reserved keyword >>>> >>>> And the line is, >>>> >>>> 126 CASE LEVEL1 = 2 >>>> 127 @ 24,39 CLEAR TO 24,80 >>>> 128 @ 24,33 SAY "복구작업ì´ >>>> 종료 ë ë•Œê¹Œì§€ >>>> 기다ë ¤ >>>> 주세ìšâ€." >>>> 129 DO RECOVER >>>> 130 DO BELLT >>>> 131 @ 11,19 SAY " FILE 복구가 완료 >>>> ë˜었습니다 ... " >>>> >>>> And, 4 wanrnings >>>> >>>> main.prg(314:0): warning XBT0106: Procedure MAIN does not end with >>>> RETURN >>>> - 314 line: >>>> * RIGHTENTER.PRG * >>>> >>>> FUNC.prg(0:0): warning XBT0105: Function DATE_IN does not end with >>>> RETURN >>>> - 0 line: ??? >>>> >>>> >>>> FUNC.prg(48:0): warning XBT0105: Function PUSER9 does not end with >>>> RETURN >>>> - 48line: >>>> * BOX() 지ì •ëÂÅ“ 박스를 >>>> 그린다. * >>>> >>>> FUNC.prg(130:0): warning XBT0100: RETURN statement with no value in >>>> function >>>> - 130line: >>>> RETURN >>>> >>>> >>>> Any comment are appreciated. >>>> >>>> >> | |
Thomas Braun | Re: Compiled successfully! but....... on Fri, 07 Sep 2007 08:41:22 +0200 hanpedro wrote: > Compiled successfully! > > Thans Jim for your kind instruction. > > I compiled successfully!, but I coud not find exe file. Show us your project file (if you don't have one, please read the documentation first to find out how to create it). > And, warning messages are still showing. > > main.prg(314:0): warning XBT0106: Procedure MAIN does not end with RETURN > FUNC.prg(0:0): warning XBT0105: Function DATE_IN does not end with RETURN > FUNC.prg(48:0): warning XBT0105: Function PUSER9 does not end with RETURN > FUNC.prg(130:0): warning XBT0100: RETURN statement with no value in function Quite easy, put RETURNS where needed. I would also recommend reading the documentation, especially the part about the differences between Clipper and Xbase++ regards Thomas | |
hanpedro | I don't have project file..... on Fri, 07 Sep 2007 17:57:17 +0900 Dear Thomas Braun, I am surprized you know I don't have project file. I will read the document and study it, and I wiil post further question here. And, thanks very much for your kind comments. regards, "Thomas Braun" <spam@software-braun.de> 님이 다음 메시지를 작성했습니다. news:zx1z9rwyrdsq.m9jycca6ugcn$.dlg@40tude.net... > hanpedro wrote: > >> Compiled successfully! >> >> Thans Jim for your kind instruction. >> >> I compiled successfully!, but I coud not find exe file. > > Show us your project file (if you don't have one, please read the > documentation first to find out how to create it). > >> And, warning messages are still showing. >> >> main.prg(314:0): warning XBT0106: Procedure MAIN does not end with RETURN >> FUNC.prg(0:0): warning XBT0105: Function DATE_IN does not end with RETURN >> FUNC.prg(48:0): warning XBT0105: Function PUSER9 does not end with RETURN >> FUNC.prg(130:0): warning XBT0100: RETURN statement with no value in >> function > > Quite easy, put RETURNS where needed. > > I would also recommend reading the documentation, especially the part > about > the differences between Clipper and Xbase++ > > regards > Thomas | |
Thomas Braun | Re: I don't have project file..... on Fri, 07 Sep 2007 12:16:16 +0200 hanpedro wrote: > I am surprized you know I don't have project file. regards Thomas | |
James Loughner | Re: Compiled successfully! but....... on Fri, 07 Sep 2007 12:41:02 -0400 In which case you need to add returns to the end of those procedures. Though it is just a warning it is best to do things correctly. Some programmers in Clipper were lazy and did not add the returns. For the line 130 problem a function should always return a value. Jim hanpedro wrote: > Compiled successfully! > > Thans Jim for your kind instruction. > > I compiled successfully!, but I coud not find exe file. > > And, warning messages are still showing. > > main.prg(314:0): warning XBT0106: Procedure MAIN does not end with RETURN > FUNC.prg(0:0): warning XBT0105: Function DATE_IN does not end with RETURN > FUNC.prg(48:0): warning XBT0105: Function PUSER9 does not end with RETURN > FUNC.prg(130:0): warning XBT0100: RETURN statement with no value in > function > > > regards, > > > "James Loughner" <jwrl@suddenlink.net> ë‹˜ì´ ë‹¤ìŒ ë©”ì‹œì§€ë¥¼ > 작성했습니다. > news:3e6d3f4d$4ab8121c$35457a@news.alaska-software.com... >> You are calling a procedure which you named Recover but recover is a key >> word used in error recovery see "on error" in the Doc's. Change the name >> of the procedure and the problem will go away. See Doc's search for the >> word recover. >> >> >> >> Jim >> >> hanpedro wrote: >>> Dear Jim, >>> >>> Thanks for your kind comment for my question. >>> >>> But I could not understand "I believe that RECOVER is the key word. >>> rename the procedure" >>> >>> Please comment more for my understanding, if possible, show me an >>> example. >>> >>> regards, >>> >>> "James Loughner" <jwrl@suddenlink.net> 님ì´ 다ìÂÅ’ >>> ë©â€Ã¬â€¹Å“지를 >>> 작성ֈ습니다. >>> news:2d2d39b$2cdea609$35456d@news.alaska-software.com... >>>> I believe that RECOVER is the key word. rename the procedure >>>> >>>> The warnings are probably triggered by the first error. They will go >>>> away once you fix the error. >>>> >>>> Jim >>>> >>>> >>>> >>>> hanpedro wrote: >>>>> I have a hybrid compile error "error XBT0251: Reserved keyword" >>>>> >>>>> The error message is, >>>>> >>>>> main.prg(129:0): error XBT0251: Reserved keyword >>>>> >>>>> And the line is, >>>>> >>>>> 126 CASE LEVEL1 = 2 >>>>> 127 @ 24,39 CLEAR TO 24,80 >>>>> 128 @ 24,33 SAY >>>>> "복구작ìâ€â€Ã¢â‚¬Â¦ÃƒÂ¬Ã‚´ >>>>> >>>>> 종료 ë >>>>> 때까지 >>>>> 기다ë ¤ >>>>> 주세ìšâ€Â." >>>>> 129 DO RECOVER >>>>> 130 DO BELLT >>>>> 131 @ 11,19 SAY " FILE >>>>> 복구가 >>>>> 완료 >>>>> ë˜ìâ€â€Ã‹â€ ìÅ >>>>> µë‹ˆë‹¤ ... " >>>>> >>>>> And, 4 wanrnings >>>>> >>>>> main.prg(314:0): warning XBT0106: Procedure MAIN does not end with >>>>> RETURN >>>>> - 314 line: >>>>> * RIGHTENTER.PRG * >>>>> >>>>> FUNC.prg(0:0): warning XBT0105: Function DATE_IN does not end with >>>>> RETURN >>>>> - 0 line: ??? >>>>> >>>>> >>>>> FUNC.prg(48:0): warning XBT0105: Function PUSER9 does not end with >>>>> RETURN >>>>> - 48line: >>>>> * BOX() 지ì •ëÂÂÅ“ >>>>> ë°•ìÅ ¤ë¥¼ >>>>> 그린다. * >>>>> >>>>> FUNC.prg(130:0): warning XBT0100: RETURN statement with no value in >>>>> function >>>>> - 130line: >>>>> RETURN >>>>> >>>>> >>>>> Any comment are appreciated. >>>>> >>>>> >>> > | |
Thomas Braun | Re: hybrid compile error "error XBT0251: Reserved keyword" on Fri, 07 Sep 2007 08:37:44 +0200 hanpedro wrote: > But I could not understand "I believe that RECOVER is the key word. rename > the procedure" RECOVER is a reserved key word and can't be used for naming a procedure of function in Xbase++ You have to give the procedure "RECOVER" a different name and change all places where it is called. According to the documentation, the following words are reserved key words: ANNOUNCE ASSIGN BEGIN CASE CLASS DECLARE DO ELSE ELSEIF END ENDCASE ENDCLASS ENDDO ENDIF ENDSEQUENCE EXIT EXIT EXPORTED FIELD FOR FROM FUNCTION HIDDEN IF IN INIT IS LOCAL LOOP MEMVAR METHOD NEXT OTHERWISE PARAMETERS PRIVATE PROCEDURE PROTECTED PUBLIC READONLY RECOVER REQUEST RETURN SEQUENCE SHARED SHARING STATIC STEP TO USING VAR WHILE WITH HTH Thomas |