Re: How to detect EOL character in text file

2017-05-15 Thread Alan Chan via 4D_Tech
Replace String($text;lf;cr) -> all lf becomes cr including crlf becoming crcr Replace string($text;crlf;cr) -> none would be found That's why you need to run Replace String($text;crlf;cr) first. Alan Chan 4D iNug Technical <4d_tech@lists.4d.com> writes: >That should have read replace string of

Re: Limit input into alpha characters into variable

2017-05-15 Thread Keith White via 4D_Tech
Hi Many thanks for those answers. Whilst I'll be using a workaround, I've also logged a feature request. http://forums.4d.fr/Post/EN/19424825/1/19424826#19424826 Best regards Keith White Synergist Express Ltd, UK. ** 4D

Re: Schemes for record level access control

2017-05-15 Thread Alan Chan via 4D_Tech
Like I said, many developers don't like 4D access system, in fact, any 4D inbuilt-tools such as QR editor, Query Editor, Label Editor, Sequence Number, Triggers etc. I'm weird and kept using them intensively even after developing on 4D for 27 years. I'm happily remained to be amature:-)

Re: Schemes for record level access control

2017-05-15 Thread Kirk Brooks via 4D_Tech
David, Thanks for throwing this in. It really does make more sense to use a longint even if it is (currently) only a binary choice. On Fri, May 12, 2017 at 6:03 PM, David Adams via 4D_Tech < 4d_tech@lists.4d.com> wrote: > Just as a simple point, it's nice to have access values as a number: > > 1

Re: ON ERR CALL: Comments & Seeking Comments

2017-05-15 Thread Sannyasin Siddhanathaswami via 4D_Tech
Great tip! I’ll check it out for sure. Sannyasin Siddhanathaswami On May 14, 2017, 7:07 PM -1000, wrote: Seriously though, if you want a chance to develop more consistent and coherent code, you can't doo better than to read (or re-read) "Code Complete." (There's a second edition now, for those

Re: Schemes for record level access control

2017-05-15 Thread Jörg Knebel via 4D_Tech
Hi Kirk, > On 16 May 2017, at 24:59 AEST, Kirk Brooks via 4D_Tech <4d_tech@lists.4d.com> > wrote: > > Thanks much for taking the time to share. The immediate situation I'm > trying to work with isn't as formally hierarchical as your example plus I > need to exclude 'restricted' data from even

Re: Option drag and drop vs Sierra

2017-05-15 Thread Cannon Smith via 4D_Tech
I just tried in v16.1 with Sierra 10.12.4. Options dragging some text around in the method editor copied the text to the new position just as I would expect. Regular drag and drop within the method editor also worked. FWIW. -- Cannon.Smith Synergy Farm Solutions Inc. Hill Spring, AB Canada

Option drag and drop vs Sierra

2017-05-15 Thread John Baughman via 4D_Tech
Anyone running OS X Sierra, pleas test in the Method Editor. For me Option drag and drop does not work. Tried it in v14 and v16. Anyone know if this is already a reported bug? John ** 4D Internet Users Group (4D iNUG) FAQ:

Re: Schemes for record level access control

2017-05-15 Thread Douglas von Roeder via 4D_Tech
On Mon, May 15, 2017 at 8:01 AM, Kirk Brooks via 4D_Tech < 4d_tech@lists.4d.com> wrote: > David, > Thanks for throwing this in. It really does make more sense to use a > longint even if it is (currently) only a binary choice. > Kirk: If you're using a number to represent a hierarchy, the surest

Re: Option drag and drop vs Sierra

2017-05-15 Thread John Baughman via 4D_Tech
Hmmm. I am using 16.1 and Sierra 10.12.4, but option dragging moves the selected text. The cursor does not change to a plus symbol either. A long time ago I had this same problem in 4D when I had Quicken set to automatically download from my bank. Turned the Quicken auto download off and 4D

Re: Schemes for record level access control

2017-05-15 Thread Kirk Brooks via 4D_Tech
Hi Jorg, Thanks much for taking the time to share. The immediate situation I'm trying to work with isn't as formally hierarchical as your example plus I need to exclude 'restricted' data from even Read Only. I'm managing the table & field access separately. ie. permission to even see a given table

Here's one for the archives: Incompatible argument list error with a compiled component

2017-05-15 Thread David Adams via 4D_Tech
For those of you following my tedious reports on components, the latest chapter! I've consolidated my two components into one because, well, it's a whole lot easier that way. I'm putting that into a host database where it makes life simpler. Instead of my zillions of methods, you see just a few.

Controlling the Menus when executing the EDIT ACCESS command

2017-05-15 Thread Scott Staley via 4D_Tech
I’m having some difficulties with menu management when converting from version 13 or 15 to version 16. My problem is that in version 16 when I execute the EDIT ACCESS command I am presented with the Design Menu. In earlier versions I am able to manage the menu’s and when I execute the EDIT