realbasic-nug
[Top] [All Lists]

Re: [Solved] Re: Calling method with or without parameter

To: realbasic-nug at lists dot realsoftware dot com
Subject: Re: [Solved] Re: Calling method with or without parameter
From: "Theodore H.Smith" <delete at elfdata dot com>
Date: Mon, 28 Feb 2005 00:07:17 +0000
Delivered-to: realbasic-nug at lists dot realsoftware dot com
References: <20050227234749 dot 13E1F764D36 at lists dot realsoftware dot com>

On 27 Feb 2005, at 23:47, realbasic-nug-request at lists dot realsoftware dot com wrote:

Subject:
From: Ronald Vogelaar <enter at rovosoft dot com>
Date: Sun, 27 Feb 2005 19:53:46 +0100

Okay, I just found out. The solution was to create two methods:
GetLang(lang as string) as string
GetLang() as string

And just call GetLang either with or without parameter. The right method
is executed automagically.

I'm sure many of you knew that already, but I'm still discovering new
tricks every day ;-)

That's one way. Also look at optional params.

getlang(lang as string="en") as string

--
   Theodore H. Smith - www.elfdata.com/plugin/ - www.elfdata.com/forum/
   ElfData: Industrial strength string processing, made easy.
"All things are logical. Putting free-will in the slot for premises in
a logical system, makes all of life both understandable, and free."

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

<Prev in Thread] Current Thread [Next in Thread>