[Tutor] How to set up dispatch function

Alan Gauld alan.gauld at btinternet.com
Fri Jun 20 19:37:34 CEST 2008


"Tyler Rutschman" <trutch at gmail.com> wrote 

> set up a dispatch function to find the proper report format for the
> indicated configuration. 

Sounds like a job for a dictionary.

Just find the key and access the corresponding function.

Do you know how to do that? (Use a dictionary to strore functions?) 
or is it the derivation of the key thats the issue?

Alan G



More information about the Tutor mailing list