[survey] All object properties programatically available?

View: New views
4 Messages — Rating Filter:   Alert me  

[survey] All object properties programatically available?

by Chip Scheide :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

email me off list with Yea or nay

I propose 2 commands :
 
Set Object Property({*;}Object/variable;property;value)
 object/variable is an object (with the appropriate leading asterisk),
or a variable reference.
 Property - is a string/text which is the property name (as appears in
the property list).
 Value - is a string/text of the value you want to set the property to.

ex:
Set Object Property(my_Listbox_column;"Sortable";"False")

second
Get Object Property({*;}Obejct/variable;property) -> value
 object/variable is an object (with the appropriate leading asterisk),
or a variable reference.
 Property - is a string/text which is the property name (as appears in
the property list).
 Value - is a string/text of the current value of the property.

ex:
$Current_Setting:=Get Object Property(my_Listbox_Column;"Expression")
`returns the data source


Why:
- there are MANY properties that can not be accessed via code.
- a Generic/general property accesor like the above will stop the
proliferation of SET THIS, and GET THAT; alternatively
the language will get (has already gotten?) too over burdened with SET
THIS, and GET THAT commands.
- We as developers really **NEED** access to a lot of these properties,
programatically. Especially as 4D moves to allowing us to do more and
more things dynamically (like listboxes).
**********************************************************************
Get the speed and power of 4D v11 SQL
before upgrade prices increase - http://www.4d.com
   

4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4D.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4D_Tech-Unsubscribe@...
**********************************************************************

Parent Message unknown Re: [survey] All object properties programatically available?

by Ortwin Zillgen :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

that' scheduled for V12: Getters and Setters
<http://www.4d.com/blog/summit-keynote-highlights-part-one.html>

very helpful indeed



Regards
Ortwin Zillgen
___________________________________________________
Stadt Land Fluß * Geographic Informationsystems
<mailto:info@...>   <http://dddd.mettre.de?4713>
RSS <feed://dddd.mettre.de/dddd.xml>
RSS <feed://dddd.mettre.de/f/DDDD_Links.xml>



**********************************************************************
Get the speed and power of 4D v11 SQL
before upgrade prices increase - http://www.4d.com


4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4D.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4D_Tech-Unsubscribe@...
**********************************************************************

Re: [survey] All object properties programatically available?

by Chip Scheide :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Actually - yes and no

I specifically asked about this at the closing session.

Not an exact quote but a close approximation :
There will be setters and getters for all *existing* setters and getters
New ones will eventually be added.

However, as I recall, there was no specific time frame for the exposing
of **ALL** object properties, of all objects.

I would like, given enough feed back from this thread, to put together
a proposal for 4D including ideas about useful functionality - such as
being able to get all object properties (for a specific object) into an
array.

get all object properties({*;}Object/variable;
arrtxt_Property_Names;arrtxt_Property_Type)

where all properties and their types are placed into the arrays.

My hope is that this concept can be pushed up the priority list a bit,
maybe enough for v12.
Probably hoping for too much... but what the hell..  :)

On Thu, 29 Oct 2009 00:16:43 +0100, Ortwin Zillgen wrote:

> that' scheduled for V12: Getters and Setters
> <http://www.4d.com/blog/summit-keynote-highlights-part-one.html>
>
> very helpful indeed
>
>
>
> Regards
> Ortwin Zillgen
> ___________________________________________________
> Stadt Land Fluß * Geographic Informationsystems
> <mailto:info@...>   <http://dddd.mettre.de?4713>
> RSS <feed://dddd.mettre.de/dddd.xml>
> RSS <feed://dddd.mettre.de/f/DDDD_Links.xml>
>
>
>
> **********************************************************************
> Get the speed and power of 4D v11 SQL
> before upgrade prices increase - http://www.4d.com
>  
> 4D Internet Users Group (4D iNUG)
> FAQ:  http://lists.4d.com/faqnug.html
> Archive:  http://lists.4D.com/archives.html
> Options: https://lists.4d.com/mailman/options/4d_tech
> Unsub:  mailto:4D_Tech-Unsubscribe@...
> **********************************************************************
>
**********************************************************************
Get the speed and power of 4D v11 SQL
before upgrade prices increase - http://www.4d.com


4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4D.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4D_Tech-Unsubscribe@...
**********************************************************************

Re: [survey] All object properties programatically available?

by David Weinberg-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Chip,

Yes. A Visual Studio approach where everything is possible in code, even
designing forms would be ideal. I would not actually design in code but just
the ability to tweak the code is very powerful way to fine tune sometimes.

--
David Weinberg
Lead 4D Developer
Kaplan IT Services
Direct Line: 020 7939 9851

2009/10/28 Chip Scheide <4d_Only@...>

> email me off list with Yea or nay
>
> I propose 2 commands :
>
> Set Object Property({*;}Object/variable;property;value)
>  object/variable is an object (with the appropriate leading asterisk),
> or a variable reference.
>  Property - is a string/text which is the property name (as appears in
> the property list).
>  Value - is a string/text of the value you want to set the property to.
>
> ex:
> Set Object Property(my_Listbox_column;"Sortable";"False")
>
> second
> Get Object Property({*;}Obejct/variable;property) -> value
>  object/variable is an object (with the appropriate leading asterisk),
> or a variable reference.
>  Property - is a string/text which is the property name (as appears in
> the property list).
>  Value - is a string/text of the current value of the property.
>
> ex:
> $Current_Setting:=Get Object Property(my_Listbox_Column;"Expression")
> `returns the data source
>
>
> Why:
> - there are MANY properties that can not be accessed via code.
> - a Generic/general property accesor like the above will stop the
> proliferation of SET THIS, and GET THAT; alternatively
> the language will get (has already gotten?) too over burdened with SET
> THIS, and GET THAT commands.
> - We as developers really **NEED** access to a lot of these properties,
> programatically. Especially as 4D moves to allowing us to do more and
> more things dynamically (like listboxes).
>
>
**********************************************************************
Get the speed and power of 4D v11 SQL
before upgrade prices increase - http://www.4d.com
   

4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4D.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4D_Tech-Unsubscribe@...
**********************************************************************