http://www.axaptapedia.com/index.php/Singleton_pattern


15.02.06 в 21:08 Zappia Alessandro в своём письме писал(а):

> Hi everyone,
>
> i'm asking for your help because I'd like to create a static class (to
> be instanced only once when the user logs on). This class should hold
> some global data (as if it were a single-record table...).
>
> In axapta such classes seems already to exist (the info, session,
> application classes..and so on). I'd like to create something like them.
>
> I've also tried to add some variables to the "info" class (thing that is
> obviously possible), and this would work fine for my intentions, but
> when I try to access them (both R/W) I get a runtime error, and watched
> in debug those variables have non-sense values (are treated and
> displayed as strings even if declared as Boolean, and so wickedly on).
>
> I tried to compile (more and more times) the class and even all the AOT,
> with no luck. The problem seems to be related to the fact that "Info"
> extends "xInfo", which is a hidden system class...
>
> Anyone has a suggestion?Or there is a way to declare "single instance"
> classes?
>
>
> As usual, thank you very very much
>
>
>
> Zappia Alessandro
>
> Cluster Reply S.r.l
> Via Galileo Galilei, 2
> Silea (TV)
> cell: 3480323803
> e-mail: [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
>
>
>
>
>
> [Non-text portions of this message have been removed]
>
>
>
>
>
> Yahoo! Groups Links
>
>
>
>
>



-- 
Написано в почтовом клиенте браузера Opera: http://www.opera.com/mail/





 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/development-axapta/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to