Yes. this works:
My string constants:
*Constants_AddString* ($oParams;"kCity")
*Constants_AddString* ($oParams;"kPhone")
*Constants_AddString* ($oParams;"kOffice")
*Constants_AddString* ($oParams;"kHome")
On the form:
Form.kPhone.kCity
Form.kPhone.kOffice
Form.kPhone.kHome
My Method:
*C_OBJECT*($obj)
$obj:=*New object*
$obj.kCity:="London" //creates the city property and sets its value to
"London"
$obj.kCity:="Paris" //modifies the city property
$obj.kPhone:=*New object*(kOffice;"123456789";kHome;"0011223344")
*DIALOG*("myForm";$obj)
And everything appears correctly!
And I use the constants to create the localized xlif strings...
On Sun, Oct 14, 2018 at 4:02 PM Jim Dorrance <[email protected]> wrote:
> No, does not work
>
> On Sun, Oct 14, 2018 at 4:00 PM Jim Dorrance <[email protected]>
> wrote:
>
>> Thanks.
>>
>> Does form[constnt] work as a dynamic form object?
>>
>> On Sun, Oct 14, 2018 at 3:03 PM John DeSoi via 4D_Tech <
>> [email protected]> wrote:
>>
>>> Only the bracketed expression form, e.g. myObject[constant].
>>>
>>> John DeSoi, Ph.D.
>>>
>>>
>>> > On Oct 14, 2018, at 1:56 AM, Jim Dorrance via 4D_Tech <
>>> [email protected]> wrote:
>>> >
>>> > Constants cannot be used with dot notation?
>>>
>>> **********************************************************************
>>> 4D Internet Users Group (4D iNUG)
>>> Archive: http://lists.4d.com/archives.html
>>> Options: https://lists.4d.com/mailman/options/4d_tech
>>> Unsub: mailto:[email protected]
>>> **********************************************************************
>>
>>
>>
>> --
>> Jim Dorrance
>> [email protected]
>> [email protected]
>> www.4d.dorrance.eu
>>
>> PS: If you know of anyone that needs an experienced 4D programmer to add
>> energy and experience to their team, please let me know. I have
>> experience in many areas. Reasonable rates. Remote or Paris only.
>>
>
>
> --
> Jim Dorrance
> [email protected]
> [email protected]
> www.4d.dorrance.eu
>
> PS: If you know of anyone that needs an experienced 4D programmer to add
> energy and experience to their team, please let me know. I have
> experience in many areas. Reasonable rates. Remote or Paris only.
>
--
Jim Dorrance
[email protected]
[email protected]
www.4d.dorrance.eu
PS: If you know of anyone that needs an experienced 4D programmer to add
energy and experience to their team, please let me know. I have
experience in many areas. Reasonable rates. Remote or Paris only.
**********************************************************************
4D Internet Users Group (4D iNUG)
Archive: http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub: mailto:[email protected]
**********************************************************************