Login ProductsSalesSupportDownloadsAbout |
Home » Technical Support » Elevate Web Builder Technical Support » Support Forums » Elevate Web Builder General » View Thread |
Messages 1 to 3 of 3 total |
Reflection |
Fri, Oct 26 2012 9:10 AM | Permanent Link |
Robert Devine | Hi Tim
Is there any way to get access to, e.g., getOwnPropertyNames and hasOwnProperty for an object? I need to get an object's property name as a string. Maybe there's another way to do this? Thanks, Bob |
Mon, Oct 29 2012 1:39 PM | Permanent Link |
Tim Young [Elevate Software] Elevate Software, Inc. timyoung@elevatesoft.com | Bob,
<< Is there any way to get access to, e.g., getOwnPropertyNames and hasOwnProperty for an object? I need to get an object's property name as a string. Maybe there's another way to do this? >> There's really no RTTI in EWB, at least not yet. There is JavaScript support for doing this type of thing, but it would be pretty useless to the Object Pascal code because of what the EWB compiler does to identifiers, especially with compression. Per Mark's post - I'll see about adding this to the compiler as part of the 1.03 round of improvements, which will deal primarily with improving the compiler. Tim Young Elevate Software www.elevatesoft.com |
Thu, Nov 15 2012 11:35 AM | Permanent Link |
Robert Devine | Hi Tim
I was able to identify the required field names in the compressed code and get my test working. Does the compressor always use the same generator to create property names? IOW, will "categoryField" always be converted to "ad_fW" - if so then I can get by until some rtti becomes available. Cheers, Bob On 29/10/2012 17:39, Tim Young [Elevate Software] wrote: > Bob, > > << Is there any way to get access to, e.g., getOwnPropertyNames and > hasOwnProperty for an object? I need to get an object's property name as > a string. Maybe there's another way to do this? >> > > There's really no RTTI in EWB, at least not yet. There is JavaScript > support for doing this type of thing, but it would be pretty useless to > the Object Pascal code because of what the EWB compiler does to > identifiers, especially with compression. > > Per Mark's post - I'll see about adding this to the compiler as part of > the 1.03 round of improvements, which will deal primarily with improving > the compiler. > > Tim Young > Elevate Software > www.elevatesoft.com |
This web page was last updated on Tuesday, April 23, 2024 at 08:10 AM | Privacy PolicySite Map © 2024 Elevate Software, Inc. All Rights Reserved Questions or comments ? E-mail us at info@elevatesoft.com |