-
How do I create propery with list values?
Nothing critical, just looking for a better way to do something.
I added a property to one of my forms that will hold a default color.
I currently set it by using Thisform.MyProperty = RGB(0,0,0)
I like the way that VFP accepts values for its color properties
better: e.g., Forecolor = 0,0,0
Is there a simple way for me to use this method of setting multiple
values? Obviously, this is just a wish list type thing, not critical.
Thanks!
Ignore munged e-mail address above.
If necessary to reply via e-mail, please reply to:
caracal A T caracal D O T net
-
Re: How do I create propery with list values?
Vince,
You can use an Assign method for the property. Note though that when making
the assignment on the property sheet will not cause the Assign to trigger
when the object instantiates, so you need to put code like:
this.MyColorProperty = this.MyColorProperty
in the Init()
--
df - (Microsoft FoxPro MVP) http://www.geocities.com/df_FoxPro/
"Vince Teachout" <SendJunkMailTo@hotmail.com> wrote in message
news qibfsc2t6s8h01hifiaoa51cimliqb57c@4ax.com...
> Nothing critical, just looking for a better way to do something.
>
> I added a property to one of my forms that will hold a default color.
>
> I currently set it by using Thisform.MyProperty = RGB(0,0,0)
>
> I like the way that VFP accepts values for its color properties
> better: e.g., Forecolor = 0,0,0
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks