VS: VS: Naive menu question

Esa Kivelä Esa.Kivela at ncrc.fi
Mon Jan 20 08:44:00 EST 2003


> -----Alkuperäinen viesti-----
> Lähettäjä: Björnke von Gierke [mailto:bvg at mac.com]
> Lähetetty: 20. tammikuuta 2003 15:32
> Vastaanottaja: use-revolution at lists.runrev.com
> Aihe: Re: VS: Naive menu question
> 
> 
> 
> On Montag, Jan 20, 2003, at 14:02 Europe/Zurich, Esa Kivelä wrote:
> 
> > ...
> >
> > if cd fld "wname" is empty and\
> > cd fld "walias" is empty then
> > ...
> 
> there is a space needed before \ :
> 
> > ...
> > if cd fld "wname" is empty and \
> > cd fld "walias" is empty then
> > ...
> 
> There is no handler "menoo". You can call a Handler with its 
> name on a 
> new line, but it must exist somewhere or it generates an error.

Yes ist esxit On menoo and end menoo (sub progam) but where that if then error comes?

here is a sub program:

"
  Werid error message
« on: Today at 7:22am »  Quote  Modify  Remove  

--------------------------------------------------------------------------------
Greetings from Finland  
 
I get wedir error messages when I code som LPmud editor in RR. there is a one button in the weapons info field wich made weapon when ist cliked nut inside that button some subprogeman send werid eror message from subprogam called "menoo": 
 
* There was an Execution Error at 2:55:55 PM 
Error description:  Handler: can't find handler 
Object: card button id 8277 of card id 4067 of stack "C:/mud/MudWizad Editor ver. 0.1.rev" 
-------------------- 
menoo 
-------------------- 
Value: menoo 
 
 * There was a Script Compile Error at 2:53:33 PM 
Error description:  if: missing 'then' 
Object: card button id 8277 of card id 4067 of stack "C:/mud/MudWizad Editor ver. 0.1.rev" 
-------------------- 
if item 1 of the loc of cd button "weapon"" > item 1 of the rect of cd fld "drag&Drop" card "huone" and \ 
-------------------- 
Value:  > item 1 of the rect of cd fld 
 
and heres is the button script: 
 

 
on menoo // HERE SOME WHERE IS THAT ERROR BUT WHERE 
global lainis 
 
---*** NðMð TULEVAT MONSULLE***------------------------------------------------------------- --- 
if item 1 of the loc of cd button "kerran??" > item 1 of the rect of cd fld "drag&Drop" and \ 
item 1 of the loc of cd button "kerran??" < item 3 of the rect of cd fld "drag&Drop" and \ 
item 2 of the loc of cd button "kerran??" > item 2 of the rect of cd fld "drag&Drop" and \ 
item 2 of the loc of cd button "kerran??" < item 4 of the rect of cd fld "drag&Drop" then 
put return & "move_object(" & cd fld "wname" & "," & cd fld "name" & "());" \ 
after last line of cd fld "weapon" 
put return & "}" after last line of cd fld "weapon" 
end if 
 
 
if item 1 of the loc of cd button "weapon"" > item 1 of the rect of cd fld "drag&Drop" card "huone" and \ 
item 1 of the loc of cd button "weapon" < item 3 of the rect of cd fld "drag&Drop" and \ 
item 2 of the loc of cd button "weapon" > item 2 of the rect of cd fld "drag&Drop" and \ 
item 2 of the loc of cd button "weapon" < item 4 of the rect of cd fld "drag&Drop" then 
put return & "move_object(" & cd fld "wname" & "," & cd fld "name" & "());" \ 
after last line of cd fld "weapon" 
put return & "}" after last line of cd fld "weapon" 
end if 
 
 
 
---*** NðMð TULEVAT HUONEESEEN***----------------------------------------------------------- ----- 
 
if (item 1 of the loc of cd button "kerran??" < item 1 of the rect of cd fld "drag&Drop" or \ 
item 2 of the loc of cd button "kerran??" < item 2 of the rect of cd fld "drag&Drop" or \ 
item 2 of the loc of cd button "kerran??" > item 4 of the rect of cd fld "drag&Drop") and item 1 of the loc of cd btn "kerran??" < 516 then 
put return & "move_object(" & cd fld "wname" & ", this_object());"\ 
after last line of cd fld "weapon" 
end if 
 
 
if (item 1 of the loc of cd button "weapon" < item 1 of the rect of cd fld "drag&Drop" or \ 
item 2 of the loc of cd button "weapon" < item 2 of the rect of cd fld "drag&Drop" or \ 
item 2 of the loc of cd button "weapon" > item 4 of the rect of cd fld "drag&Drop") and item 1 of the loc of cd btn "weapon" < 516 then 
put return & "move_object(" & cd fld "wname" & ", this_object());"\ 
after last line of cd fld "weapon" 
end if 
 
 
end menoo"

EsaK

> 



More information about the use-livecode mailing list