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


-- 
To unsubscribe from this list, just send an email to
[EMAIL PROTECTED] with unsubscribe as the subject.

Reply via email to