to expand....
you can create 1 or more constants files in xlif format.
Inside each constants file you can create 'groups', logic assemblages 
of constants.
i.e. Web_Display, Interface_Colors, Listbox_Properties,  etc.
   
There is a tool in 4DPop (4Dpop constants editor) to help with this 
process.

The constant file(s) are then placed next to the structure in a folder 
titled "Constants". This folder may not already exist and you may have 
to create it. On a Mac you need to open the structure package (show 
package contents) to create/modify the Constants folder.

If you , or anyone else is interested, I have a version of 4DPop 
constants editor that I have modified to include the following 
enhancements (currently in v15 can/should be updatable to any newer 
version):
[send me an email making the request - and I'll send the modified 4DPop 
source code along.]

- open xlif files NOT in the current structure's path. i.e. open any 
xlif file, anywhere.
- drag n drop xlif files (as part of above).
- show all constants as a single list when there are groupings inside 
an xlif file, The constants are Not savable, including full sort order, 
in this 'mode'.
- able to re-load an xlif file, if modified by an outside program (i.e. 
text editor).
- sort (permanently if saved) not only the groupings, but the constants 
inside a group.
- add a comment to any constant.
- create and assign a UUID to each constant to avoid any issue with 
constant ID duplication.

there might be more that I do not remember off the top of my head.

Chip
On Mon, 9 Dec 2019 15:20:05 +0000, Epperlein, Lutz (agendo) via 4D_Tech 
wrote:
> You have to use xliff and you can find an example here:
> https://kb.4d.com/assetid=76583
> 
> Regards
> Lutz
> 
> -----Ursprüngliche Nachricht-----
> Von: 4D_Tech [mailto:[email protected]] Im Auftrag von 
> Eric Naujock via 4D_Tech
> Betreff: Constants in code.
> 
> Good morning,
>       This seem pretty rudimentary, but I don’t seem find anything in the 
> docs for this. 
> 
> Can you define your own Constants? I would like to define constants 
> in my database to cover various groups for permissions. But what I am 
> finding in the docs for v17r6 says they are listed in the constants 
> window. But there does not seem to be anything that tells you how to 
> create your own. Obviously there must be a way to do so since there 
> are constants for plugins. 
> **********************************************************************
> 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]
> **********************************************************************
We have done so much, with so little, for so long;
We are now qualified to anything with nothing <sigh>
  - unknown
**********************************************************************
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]
**********************************************************************

Reply via email to