> Le 16 sept. 2016 à 02:38, David Adams <dpad...@gmail.com> a écrit :
> 
> 4D should have a constants editor, just like it has the list editor. 

Hi David, 
I do agree… 
Using constants is really uneasy when working in C/S. 
Since a long time I took a bad habit, I use functions:

    //K_myFavoriteColor_l -> long
    //no comment, read the name
  c_longint($0)
  $0:=0x00FF0000

- type ahead
- colleagues working with me can use it at once 
- help tip is welcome
- can be altered inside for testing purpose 
[$0:=Choose(userLevel;value1;value2…)]
- easy to rename, replace 
…

I'm supposed to replace these methods by "true" constants later… sometimes I 
do. 

-- 
Arnaud de Montard 



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

Reply via email to