realbasic-plugins
[Top] [All Lists]

Dynamic Access and the Variant

To: REALbasic Plugins <realbasic-plugins at lists dot realsoftware dot com>
Subject: Dynamic Access and the Variant
From: Alfred Van Hoek <vanhoek at mac dot com>
Date: Tue, 28 Mar 2006 09:00:12 -0500
Delivered-to: realbasic-plugins at lists dot realsoftware dot com
Given the fast pace of changes to intrinsic (belonging to the rb runtime) classes, dynamic access over other forms of access becomes really critical.

While one can create a variant using "REALNewVariantColor", retrieving a color from it like:

UInt32 Variant_GetColor(REALobject self)
{
        long value;
        if (REALGetPropValue(self, "ColorValue", &value))
                return value;
        else
        {
                MSG(DYNAMIC ACCESS FAILURE: Variant_GetColor)
                return Variant_VariantToColor(self);
        }
}

simply fails. What's the exact syntax? We do not have problems with other variant properties.

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