[REBOL] Rugby: function's definition too complicated?
From: fvzv:ibelgique at: 15-Nov-2003 21:25
Hello,
Hello, i am new to rugby and I have the following problem: i defined the
follwing function:
set 'dao-find-cases function [
user [object!]
/first-name fn [string!]
/last-name ln [string!]
] [] [ ... some code ....]
This function is on the server side and made public through rugby. But
when I called the function from the client:
dao-find-cases/first-name/last-name current-user "Vanzeveren" "François"
I get the following error:
** Script Error: dao-find-cases expected fn argument of type: string!
** Near: dao-find-cases/first-name/last-name
make object! [
initials: "syb"
office-id: "bdl"
first-name: "Sybil"
last-name: "Broughton"
office-name: "Boondael"
to-string: func [/local str] [
str: make string! ""
append str reduce ["initials [" initials "]"]
append str reduce [", office-id [" office-id "]"]
append str reduce [", first name [" first-name "]"]
append str reduce [", last name [" last-name "]"]
append str reduce [", office name [" office-name "]"]
]
]
it looks like rugby can not handle a mix of mandatory arguments and
refinement's arguments. Could some help me with this issue?
Regards
François
_____________________________________________________________________
Un mot doux à envoyer? Une sortie ciné à organiser? Faites le en temps
réel avec MSN Messenger! C'est gratuit! http://ifrance.com/_reloc/m