Xojo Developer Conference
25/27th April 2018 in Denver.
MBS Xojo Conference
6/7th September 2018 in Munich, Germany.

Function Pointers? (Real Studio network user group Mailinglist archive)

Back to the thread list
Previous thread: Insert indented row in hierarchical listbox
Next thread: Re: Alternate Control Color Combinations?


Win32 API Declares   -   Berg, Heath
  Function Pointers?   -   Phil M
   Re: Function Pointers?   -   Charles Yeomans
   Re: Function Pointers?   -   Norman Palardy

Function Pointers?
Date: 01.08.06 19:30 (Tue, 1 Aug 2006 14:30:47 -0400)
From: Phil M
Obviously not part of the REALbasic language, but I would like to
simulate "function pointers" for calls from RBScripts and dialog
boxes. Any ideas?

_______________________________________________
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>

Re: Function Pointers?
Date: 01.08.06 19:32 (Tue, 1 Aug 2006 14:32:43 -0400)
From: Charles Yeomans

On Aug 1, 2006, at 2:30 PM, Phil M wrote:

> Obviously not part of the REALbasic language, but I would like to
> simulate "function pointers" for calls from RBScripts and dialog
> boxes. Any ideas?

Class interfaces and the Command pattern come to mind.

Charles Yeomans
_______________________________________________
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>

Re: Function Pointers?
Date: 01.08.06 19:51 (Tue, 1 Aug 2006 12:51:48 -0600)
From: Norman Palardy

On Aug 01, 2006, at 12:30 PM, Phil M wrote:

> Obviously not part of the REALbasic language, but I would like to
> simulate "function pointers" for calls from RBScripts and dialog
> boxes. Any ideas?

No function pointers required.
Use an interface.
Then you can pass in instance of an object that implements the
interface and simply call the method defined in the interface.

_______________________________________________
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>