Re: Favorite tricks and keystrokes: Please take one and leave on

2017-05-30 Thread Bob Finnerty via 4D_Tech
Dave,

Along those lines, objects have made passing long parameter lists to
methods a joy. 8 parameters => 1 object with 8 attributes, optional
parameters don't have to be at the end, etc.

Another trick: create constants for object attributes of commonly used
objects, to wit:

Constants Theme: Users
Constant: USR User name attribute (notice the unique constant group name
USR, for typeahead)
Value: user_name
Constant: USR user ID attribute
Value: user_id
Constant: USR user alias attribute
Value: user_alias

This allows typeahead, eliminates typo & case bugs in object attributes
(object attributes are case sensitive). Creates lots of constants but, hey:
who's counting?

On Sat, May 27, 2017 at 6:29 PM, David Adams via 4D_Tech <
4d_tech@lists.4d.com> wrote:

> Cannon,
>
> Nice one on the hidden object array, really smart.
>
>
> > P.S. Having such an array is a bit like what is requested here, but on a
> listbox row level:
>
> >
>
> Okay people, if you haven't given this request of Cannon's a 4 star vote
> already, please do so now. Cannon's idea is so good that my brain is
> *continuously* trying to rewrite my memories to convince me that it was my
> idea. It wasn't. But it's just so good I badly want to steal it.
>
> If you understand what the feature request would give us, then you'll have
> no problem giving it 4 stars. If it's not immediately clear to you what
> it's about, trust us - you'll love it.
>
> Right now if you want to make a really efficient, reliable and
> easy-to-extend form code manager, there's quite a bit of infrastructure to
> put in place. That means you need to understand what you need to build in
> advance and then have to put the time into doing so. With Cannon's feature
> in place, the price of admission to really excellent form code in 4D drops
> by, I don't know, a factor of 10. Or, to make it look more impressive, it
> makes coding forms take 9.0374% of the effort that it does today. (You
> *know* it must be true when a number goes out to four decimal places.)
>
> Cannon's idea is super simple: Have 4D maintain a little C_OBJECT to the
> form itself and every object on the form. Use the object name as the way to
> get at the C_OBJECT. Use it when you want, ignore it when you don't.
> [Important: 4D should allow these dictionaries to be addressed before
> objects have run their On Load scripts.]
>
> I was so proud when I thought this up ;-)  I'm doing it again!
>
> https://www.urbandictionary.com/define.php?term=kleptonesia
>
> As my ancestors said, "vote early, vote often."
>
>  Seriously, it's the best feature request of the year. Better than the 31
> character limit one, as important a that is.
>
> On Sun, May 28, 2017 at 11:08 AM, Cannon Smith via 4D_Tech <
> 4d_tech@lists.4d.com> wrote:
>
> > One of my favorite new techniques is to use an object array as a hidden
> > column in a listbox array. In the old days (before v15 r something or the
> > other) I often had array based list boxes which had a bunch of hidden
> > columns to store data that I wanted to do something with when the row was
> > selected. Now I only need a single hidden column. Each element of the
> > object array can store a wealth of additional information about the row.
> > And it is really easy to extend what is stored in the object in the
> future.
> > No more adding additional columns and making sure they are updated in all
> > the right places. So nice!
> >
> > P.S. Having such an array is a bit like what is requested here, but on a
> > listbox row level:
> >
> > 
> >
> > --
> > Cannon.Smith
> > Synergy Farm Solutions Inc.
> > Hill Spring, AB Canada
> > 403-626-3236
> > 
> > 
> >
> >
> > > On May 26, 2017, at 6:33 PM, David Adams via 4D_Tech <
> > 4d_tech@lists.4d.com> wrote:
> > >
> > > In honor of National Take-a-Penny/Leave-a-Penny Day, I thought it would
> > be
> > > nice to start a thread to collect people's favorite 4D tricks and
> > keystroke
> > > combos.
> >
> > **
> > 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
> > **
> >
> **
> 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
> **
>



-- 
Bob Finnerty
Exodus Software
**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.

Re: Favorite tricks and keystrokes: Please take one and leave on

2017-05-30 Thread Janie Marlow via 4D_Tech
Another workaround might be to have both the method open and the 
Explorer open, with the method selected in the Explorer and the 
Explorer expanded to Preview?


---
- the split pane feature
Workaround = copy the code to a dummy method and have it open beside 
the real method.

**
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
**

Re: Favorite tricks and keystrokes: Please take one and leave on

2017-05-30 Thread Koen Van Hooreweghe via 4D_Tech
Hi everybody,

Op 29-mei-2017, om 15:11 heeft Tim Nevels via 4D_Tech <4d_tech@lists.4d.com> 
het volgende geschreven:

> I miss the split pane feature too. So useful in long methods. Wish they would 
> bring it back. 
> 
If you have access to the 4D forum, please vote on Davids feature request post: 
http://forums.4d.fr/Post/EN/19482991/1/19482992#19482992
It seems that more than 17 4-star votes are needed.

> I never use bookmarks. Does anyone?

Nope. Tried it, but gave up quickly. Using the submenu from the menu bar is too 
much hassle, the bookmark items are at the bottom of the context menu which 
needs too much mousing and I just keep on forgetting the keyboard shortcuts... 

Kind regards,
Koen


Compass bvba
Koen Van Hooreweghe
Kloosterstraat 65
9910 Knesselare
Belgium
tel +32 495 511.653

**
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
**

Re: Favorite tricks and keystrokes: Please take one and leave on

2017-05-29 Thread Chip Scheide via 4D_Tech
type the command + (
and the command and parameters display at the bottom of the window


> 
> - Need a quick reminder of command parameters? Just hover the mouse 
> over the 4D command name and wait for the tool tip to appear. 

Hell is other people 
 Jean-Paul Sartre
**
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
**

Re: Favorite tricks and keystrokes: Please take one and leave on

2017-05-29 Thread Kirk Brooks via 4D_Tech
On Mon, May 29, 2017 at 3:16 PM, David Adams via 4D_Tech <
4d_tech@lists.4d.com> wrote:

> On Mon, May 29, 2017 at 11:11 PM, Tim Nevels via 4D_Tech <
> 4d_tech@lists.4d.com> wrote:
> > I miss the split pane feature too. So useful in long methods. Wish they
> > would bring it back.
> >
> I also miss it. So much.
>
​Me too - I was thinking about this just the other day.​

​Why did they take it out?​

-- 
Kirk Brooks
San Francisco, CA
===

*The only thing necessary for the triumph of evil is for good men to do
nothing.*

*- Edmund Burke*
**
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
**

Re: Favorite tricks and keystrokes: Please take one and leave on

2017-05-29 Thread Keith Goebel via 4D_Tech
I don’t have any that haven’t already been mentioned, but I *really* miss:

from Arnaud:
- cmd+click on fold/unfold arrows (collapse/expand current level), came with 
v11 and gone with v12. 

Having this back would save me some time every day now spent manually 
closing/opening arrows so the required hierarchy shows - close all or expand 
mostly doesn’t do what I need.
No workaround.

from Koen:
- the split pane feature
Workaround = copy the code to a dummy method and have it open beside the real 
method.

I wish wish wish it was possible for 4D to restore that functionality.
**
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
**

Re: Favorite tricks and keystrokes: Please take one and leave on

2017-05-29 Thread David Adams via 4D_Tech
On Mon, May 29, 2017 at 11:11 PM, Tim Nevels via 4D_Tech <
4d_tech@lists.4d.com> wrote:


>
> I miss the split pane feature too. So useful in long methods. Wish they
> would bring it back.
>

I also miss it. So much.


> I never use bookmarks. Does anyone?
>

What's a bookmark? I've not heard of this feature before this thread.
**
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
**

Re: Favorite tricks and keystrokes: Please take one and leave on

2017-05-29 Thread Tim Nevels via 4D_Tech
On May 29, 2017, at 10:56 AM,Koen Van Hooreweghe wrote:

> And while we're at it, the thing I miss the most is the split pane in the 
> method editor. Unfortunately 4D eliminated this feature a few years ago. IMHO 
> bookmarks are not a valid alternative.

I miss the split pane feature too. So useful in long methods. Wish they would 
bring it back. 

I never use bookmarks. Does anyone?

Tim

Sent from my iPhone!
**
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
**

Re: Favorite tricks and keystrokes: Please take one and leave on

2017-05-29 Thread Koen Van Hooreweghe via 4D_Tech
Hi all,

My all time favorite is of course: cmd-Z.

But related to 4D, I love the alt-arrow up or down in the method editor. To 
move a line or a block of lines up/down in the code.

And while we're at it, the thing I miss the most is the split pane in the 
method editor. Unfortunately 4D eliminated this feature a few years ago. IMHO 
bookmarks are not a valid alternative.

Kind regards,
Koen

Op 27-mei-2017, om 02:33 heeft David Adams via 4D_Tech <4d_tech@lists.4d.com> 
het volgende geschreven:

> In honor of National Take-a-Penny/Leave-a-Penny Day, I thought it would be
> nice to start a thread to collect people's favorite 4D tricks and keystroke
> combos




Compass bvba
Koen Van Hooreweghe
Kloosterstraat 65
9910 Knesselare
Belgium
tel +32 495 511.653

**
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
**

Re: Favorite tricks and keystrokes: Please take one and leave on

2017-05-29 Thread Arnaud de Montard via 4D_Tech

> Le 29 mai 2017 à 08:10, Bernd Fröhlich via 4D_Tech <4d_tech@lists.4d.com> a 
> écrit :
> 
> My favorite trick:
> moving a selection of code with alt+uparrow/downarrow

Yes, nice one. It seems it slows down in proportion of number of opened windows 
in design. 

-- 
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
**

Re: Favorite tricks and keystrokes: Please take one and leave on

2017-05-28 Thread Bernd Fröhlich via 4D_Tech
Douglas von Roeder:

> I *do* like how it works - if something's selected, Ctrl-k will go to its
> definition

Yup, works. I like that and use it quite often.

> but if nothing's selected, Ctrl-k opens the Explorer.

Nope, not in V16.1 on macOS 10.12.5


My favorite trick:
moving a selection of code with alt+uparrow/downarrow

Greetings from Germany,
Bernd Fröhlich
**
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
**

Re: Favorite tricks and keystrokes: Please take one and leave on

2017-05-28 Thread Keisuke Miyako via 4D_Tech
- grab a window anywhere and move
control+left click+right click on Windows; control+command+drag on macOS

- trace a process
alt+shift+right click on Windows; option+command+right click on macOS

- skip On Startup
edit "*.4DLink" file: skip_onstartup_method="true"

- launch multiple instances of 4D Remote and connect to the same server
create "ClientLocal" folder adjacent to 4D

- display information about a form object in application mode
control+shift+mouse over

- display Runtime Explorer as a palette
control/command+shift+F9

- reset window positioning
delete Get 4D folder/4D Windows Bounds v{version}

---

built-in log features

SET DATABASE PARAMETER
{
Debug log recording,
Diagnostic log recording,
4D Server log recording,
4D Client log recording
}

built-in analytic features

LOG EVENT
DESCRIBE QUERY EXECUTION
GET MEMORY STATISTICS
FLUSH BUFFERS(*) / FLUSH CACHE(bytes)
GET ACTIVITY SNAPSHOT
Get locked records info
Get database measures



**
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
**

Re: Favorite tricks and keystrokes: Please take one and leave on

2017-05-28 Thread Arnaud de Montard via 4D_Tech

> Le 28 mai 2017 à 21:27, Tim Nevels via 4D_Tech <4d_tech@lists.4d.com> a écrit 
> :
> 
> [...]
> 
> Need a quick reminder of command parameters? Just hover the mouse over the 4D 
> command name and wait for the tool tip to appear. 

tip always vanishes when I reach end of line 2  :-(

-- 
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
**

Re: Favorite tricks and keystrokes: Please take one and leave on

2017-05-28 Thread Jeffrey Kain via 4D_Tech
Nice... didn't know these three after all these years thanks!

> On May 28, 2017, at 3:27 PM, Tim Nevels via 4D_Tech <4d_tech@lists.4d.com> 
> wrote:
> 
> - Right click process or IP process variable in a method and choose Rename. 
> Does what it says with the option of doing it everywhere in the database. 
> 
> - Right click a local variable and choose "Rename" to do that in current 
> method only. 
> 
> - Right click method name and choose "Rename" to do that everywhere in the 
> database. 

**
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
**

Re: Favorite tricks and keystrokes: Please take one and leave on

2017-05-28 Thread Tim Nevels via 4D_Tech
- Click on a 4D command, no need to highlight it all, in the method editor and 
press F1 to open the documentation page for the command. This is automatically 
version specific so if you are in v14 you get v14 docs. (Remember on macOS you 
probably need to press and hold the "Fn" key and then F1 for it to work.)

- Need a quick reminder of command parameters? Just hover the mouse over the 4D 
command name and wait for the tool tip to appear. 

- Need a quick reminder of parameters for a method, hover the mouse over the 
method name. If you have something in the method "Comments" tab it displays the 
first few lines; otherwise it shows the first few lines of method comments in 
the method code. 

So stop the old habit of beginning all your methods with "If (false)" and 
putting  comments inside. That kills this feature. Always start your method 
with comments that include the list of parameters.

- Always put parameter info at the top of the "Comments" tab for shared 
component methods. Then when you hover the mouse over a component method name 
it shows the first few lines and you will know about the parameters. 

- Right click process or IP process variable in a method and choose Rename. 
Does what it says with the option of doing it everywhere in the database. 

- Right click a local variable and choose "Rename" to do that in current method 
only. 

- Right click method name and choose "Rename" to do that everywhere in the 
database. 

Tim

Sent from my iPad

**
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
**

Re: Favorite tricks and keystrokes: Please take one and leave on

2017-05-28 Thread Kirk Brooks via 4D_Tech
Cannon,
Yes! Big plus 1 on this.

I discovered it last year. It's really a huge boon to using array based
listboxes especially if you've also developed a schema for representing the
data objects the listbox displays. Like you say in the past if I wanted to
allow a user to do data entry that was going to involve more data each of
those had to be in a separate array. And if I wanted to let the user
configure which columns of data they wanted to see it just got more
complicated.

Now all the data are in the object array, I can easily allow the user to
choose the fields they want to display (adding or removing from the
listbox) and building the calculations is standardized since there is one,
well defined object to refer to.

As a final feature any changes can be held in the object array until the
user saves or commits them. Useful in some situations.

On Sat, May 27, 2017 at 7:08 PM, Cannon Smith via 4D_Tech <
4d_tech@lists.4d.com> wrote:

> One of my favorite new techniques is to use an object array as a hidden
> column in a listbox array. In the old days (before v15 r something or the
> other) I often had array based list boxes which had a bunch of hidden
> columns to store data that I wanted to do something with when the row was
> selected. Now I only need a single hidden column. Each element of the
> object array can store a wealth of additional information about the row.
> And it is really easy to extend what is stored in the object in the future.
> No more adding additional columns and making sure they are updated in all
> the right places. So nice!
>
>
-- 
Kirk Brooks
San Francisco, CA
===

*The only thing necessary for the triumph of evil is for good men to do
nothing.*

*- Edmund Burke*
**
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
**

Re: Favorite tricks and keystrokes: Please take one and leave on

2017-05-28 Thread Chip Scheide via 4D_Tech
Not strictly 4D...

on either platform
if you can not get a key stroke to do .. something..
find a keystroke macro program, Keyboard Maestro for example.

This can automate (read : type a single key combination) just about anything 
you can want.

Also - on Mac, not sure about windows, WindowMizer.
it allows you to minimize windows IN PLACE (like the old mac OS 9).
Basically it 'rolls up' the window into the title bar leaving the title bar in 
place.

No more chasing into the dock/task bar to retrieve a minimized window!!
If you combine with KeyboardMaestro you can setup a key combination to minimize 
1 or all windows into their title bars.



> favourite keystroke: cmd+B; very often parent of cmd+C. 
> 
> Bookmarks in editor: I know it exists, always forget the shortcuts, 
> think I should make an effort…
> 
> In desperate need of cmde+click on fold/unfold arrows 
> (collapse/expand current level), came with v11 and gone with v12. 

Hell is other people 
 Jean-Paul Sartre
**
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
**

Re: Favorite tricks and keystrokes: Please take one and leave on

2017-05-28 Thread Chip Scheide via 4D_Tech
should unless you have redefined it (which I have)

> Doesn't alway work though :(
> 
> On Sat, 27 May 2017 at 23:57, Chip Scheide via 4D_Tech 
> <4d_tech@lists.4d.com>
> wrote:
> 
>> command - K
>> 
>>> On Sat, May 27, 2017 at 12:08 PM, Douglas von Roeder via 4D_Tech <
>>> 4d_tech@lists.4d.com> wrote:
>>> 
 A recent discovery for me was a quick way to open the explorer.
 
 Put the insertion point in the method editor on an empty line and press
 Ctrl-k.
>>> 
>>> 
>>> Sounds handy. I just tried Control-Click and Command-Click in OS X using
>>> 16.1 and got nothing :( Any idea what the macOS version of this trick
>> might
>>> be?
>>> **
>>> 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
>>> **
>> 
>> Hell is other people
>>  Jean-Paul Sartre
>> **
>> 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
>> **

Hell is other people 
 Jean-Paul Sartre
**
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
**

Re: Favorite tricks and keystrokes: Please take one and leave on

2017-05-28 Thread Arnaud de Montard via 4D_Tech
favourite keystroke: cmd+B; very often parent of cmd+C. 

Bookmarks in editor: I know it exists, always forget the shortcuts, think I 
should make an effort…

In desperate need of cmde+click on fold/unfold arrows (collapse/expand current 
level), came with v11 and gone with v12. 

-- 
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
**

Re: Favorite tricks and keystrokes: Please take one and leave on

2017-05-27 Thread David Adams via 4D_Tech
Another one I like, this time a new(ish) command:

Current process name
http://doc.4d.com/4Dv16/4D/16.1/Current-process-name.301-3375214.en.html

...not that you'll need the docs for this one
**
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
**

Re: Favorite tricks and keystrokes: Please take one and leave on

2017-05-27 Thread David Adams via 4D_Tech
Cannon,

Nice one on the hidden object array, really smart.


> P.S. Having such an array is a bit like what is requested here, but on a
listbox row level:

>

Okay people, if you haven't given this request of Cannon's a 4 star vote
already, please do so now. Cannon's idea is so good that my brain is
*continuously* trying to rewrite my memories to convince me that it was my
idea. It wasn't. But it's just so good I badly want to steal it.

If you understand what the feature request would give us, then you'll have
no problem giving it 4 stars. If it's not immediately clear to you what
it's about, trust us - you'll love it.

Right now if you want to make a really efficient, reliable and
easy-to-extend form code manager, there's quite a bit of infrastructure to
put in place. That means you need to understand what you need to build in
advance and then have to put the time into doing so. With Cannon's feature
in place, the price of admission to really excellent form code in 4D drops
by, I don't know, a factor of 10. Or, to make it look more impressive, it
makes coding forms take 9.0374% of the effort that it does today. (You
*know* it must be true when a number goes out to four decimal places.)

Cannon's idea is super simple: Have 4D maintain a little C_OBJECT to the
form itself and every object on the form. Use the object name as the way to
get at the C_OBJECT. Use it when you want, ignore it when you don't.
[Important: 4D should allow these dictionaries to be addressed before
objects have run their On Load scripts.]

I was so proud when I thought this up ;-)  I'm doing it again!

https://www.urbandictionary.com/define.php?term=kleptonesia

As my ancestors said, "vote early, vote often."

 Seriously, it's the best feature request of the year. Better than the 31
character limit one, as important a that is.

On Sun, May 28, 2017 at 11:08 AM, Cannon Smith via 4D_Tech <
4d_tech@lists.4d.com> wrote:

> One of my favorite new techniques is to use an object array as a hidden
> column in a listbox array. In the old days (before v15 r something or the
> other) I often had array based list boxes which had a bunch of hidden
> columns to store data that I wanted to do something with when the row was
> selected. Now I only need a single hidden column. Each element of the
> object array can store a wealth of additional information about the row.
> And it is really easy to extend what is stored in the object in the future.
> No more adding additional columns and making sure they are updated in all
> the right places. So nice!
>
> P.S. Having such an array is a bit like what is requested here, but on a
> listbox row level:
>
> 
>
> --
> Cannon.Smith
> Synergy Farm Solutions Inc.
> Hill Spring, AB Canada
> 403-626-3236
> 
> 
>
>
> > On May 26, 2017, at 6:33 PM, David Adams via 4D_Tech <
> 4d_tech@lists.4d.com> wrote:
> >
> > In honor of National Take-a-Penny/Leave-a-Penny Day, I thought it would
> be
> > nice to start a thread to collect people's favorite 4D tricks and
> keystroke
> > combos.
>
> **
> 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
> **
>
**
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
**

Re: Favorite tricks and keystrokes: Please take one and leave on

2017-05-27 Thread Cannon Smith via 4D_Tech
One of my favorite new techniques is to use an object array as a hidden column 
in a listbox array. In the old days (before v15 r something or the other) I 
often had array based list boxes which had a bunch of hidden columns to store 
data that I wanted to do something with when the row was selected. Now I only 
need a single hidden column. Each element of the object array can store a 
wealth of additional information about the row. And it is really easy to extend 
what is stored in the object in the future. No more adding additional columns 
and making sure they are updated in all the right places. So nice!

P.S. Having such an array is a bit like what is requested here, but on a 
listbox row level:



--
Cannon.Smith
Synergy Farm Solutions Inc.
Hill Spring, AB Canada
403-626-3236




> On May 26, 2017, at 6:33 PM, David Adams via 4D_Tech <4d_tech@lists.4d.com> 
> wrote:
> 
> In honor of National Take-a-Penny/Leave-a-Penny Day, I thought it would be
> nice to start a thread to collect people's favorite 4D tricks and keystroke
> combos.

**
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
**

Re: Favorite tricks and keystrokes: Please take one and leave on

2017-05-27 Thread Sujit Shah via 4D_Tech
Did not put a cancel or accept button on a form and close box event not
handled

- debug
- type cancel in debugger

( in fact you can type a few things in the debugger )
😜


On Sun, 28 May 2017 at 3:05 am, Douglas von Roeder via 4D_Tech <
4d_tech@lists.4d.com> wrote:

> Steve:
>
> R2 works with the default shortcuts keys so 4D might have just stopped
> supporting the shortcut that I stumbled across.
>
> I *do* like how it works - if something's selected, Ctrl-k will go to its
> definition but if nothing's selected, Ctrl-k opens the Explorer.
>
> --
> Douglas von Roeder
> 949-336-2902
>
> On Sat, May 27, 2017 at 9:27 AM, Stephen J. Orth via 4D_Tech <
> 4d_tech@lists.4d.com> wrote:
>
> > Doug,
> >
> > Obviously I misspoke, V16R3 is still in beta.  Also, as you pointed out,
> > R3 also does not open the Explorer when on a blank line.
> >
> > I'm curious if anyone has filed a bug report?
> >
> >
> > Steve
> >
> >
> > -Original Message-
> > From: 4D_Tech [mailto:4d_tech-boun...@lists.4d.com] On Behalf Of Stephen
> > J. Orth via 4D_Tech
> > Sent: Saturday, May 27, 2017 11:15 AM
> > To: '4D iNug Technical' <4d_tech@lists.4d.com>
> > Cc: Stephen J. Orth 
> > Subject: RE: Favorite tricks and keystrokes: Please take one and leave on
> >
> > Doug,
> >
> > Well, V16R2 is still beta and not sure if that is why?
> >
> >
> > Steve
> >
> >
> >
> > **
> > 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
> > **
> >
> **
> 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
> **

-- 

xxx
"There must be ingenuity as well as intention, strategy as well as
strength. "
**
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
**

Re: Favorite tricks and keystrokes: Please take one and leave on

2017-05-27 Thread Douglas von Roeder via 4D_Tech
Steve:

R2 works with the default shortcuts keys so 4D might have just stopped
supporting the shortcut that I stumbled across.

I *do* like how it works - if something's selected, Ctrl-k will go to its
definition but if nothing's selected, Ctrl-k opens the Explorer.

--
Douglas von Roeder
949-336-2902

On Sat, May 27, 2017 at 9:27 AM, Stephen J. Orth via 4D_Tech <
4d_tech@lists.4d.com> wrote:

> Doug,
>
> Obviously I misspoke, V16R3 is still in beta.  Also, as you pointed out,
> R3 also does not open the Explorer when on a blank line.
>
> I'm curious if anyone has filed a bug report?
>
>
> Steve
>
>
> -Original Message-
> From: 4D_Tech [mailto:4d_tech-boun...@lists.4d.com] On Behalf Of Stephen
> J. Orth via 4D_Tech
> Sent: Saturday, May 27, 2017 11:15 AM
> To: '4D iNug Technical' <4d_tech@lists.4d.com>
> Cc: Stephen J. Orth 
> Subject: RE: Favorite tricks and keystrokes: Please take one and leave on
>
> Doug,
>
> Well, V16R2 is still beta and not sure if that is why?
>
>
> Steve
>
>
>
> **
> 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
> **
>
**
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
**

RE: Favorite tricks and keystrokes: Please take one and leave on

2017-05-27 Thread Stephen J. Orth via 4D_Tech
Doug,

Obviously I misspoke, V16R3 is still in beta.  Also, as you pointed out, R3 
also does not open the Explorer when on a blank line.

I'm curious if anyone has filed a bug report?


Steve


-Original Message-
From: 4D_Tech [mailto:4d_tech-boun...@lists.4d.com] On Behalf Of Stephen J. 
Orth via 4D_Tech
Sent: Saturday, May 27, 2017 11:15 AM
To: '4D iNug Technical' <4d_tech@lists.4d.com>
Cc: Stephen J. Orth 
Subject: RE: Favorite tricks and keystrokes: Please take one and leave on

Doug,

Well, V16R2 is still beta and not sure if that is why?


Steve



**
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
**

RE: Favorite tricks and keystrokes: Please take one and leave on

2017-05-27 Thread Stephen J. Orth via 4D_Tech
Doug,

Well, V16R2 is still beta and not sure if that is why?


Steve


-Original Message-
From: 4D_Tech [mailto:4d_tech-boun...@lists.4d.com] On Behalf Of Douglas von 
Roeder via 4D_Tech
Sent: Saturday, May 27, 2017 11:12 AM
To: 4D iNug Technical <4d_tech@lists.4d.com>
Cc: Douglas von Roeder 
Subject: Re: Favorite tricks and keystrokes: Please take one and leave on

Cmd-k works for me on 10.11.6 + 15.4 but not on 16R2.

With 16R2 Cmd-k "show definition" (open the method, open the docs for the
command, etc.) if an item is selected or it the insertion point is in the
"object" but it doesn't open the Explorer on an empty line.

If Cmd-k isn't working, the default Shift-Opt-Cmd-e does the trick.


And then there's the Alt/Opt + hover the cursor trick that works in newer
versions of 4D.



--
Douglas von Roeder
949-336-2902


**
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
**

Re: Favorite tricks and keystrokes: Please take one and leave on

2017-05-27 Thread Douglas von Roeder via 4D_Tech
Cmd-k works for me on 10.11.6 + 15.4 but not on 16R2.

With 16R2 Cmd-k "show definition" (open the method, open the docs for the
command, etc.) if an item is selected or it the insertion point is in the
"object" but it doesn't open the Explorer on an empty line.

If Cmd-k isn't working, the default Shift-Opt-Cmd-e does the trick.


And then there's the Alt/Opt + hover the cursor trick that works in newer
versions of 4D.



--
Douglas von Roeder
949-336-2902

On Sat, May 27, 2017 at 8:25 AM, Stephen J. Orth via 4D_Tech <
4d_tech@lists.4d.com> wrote:

> Wayne,
>
> Give me an example on where it does not work, as I use this extensively
> and it's one of the best things 4D has done for programmers.
>
> You can literally use this feature to automatically navigate to the source
> definition of what you cursor is in.
>
> Best,
>
>
> Steve
>
>
> -Original Message-
> From: 4D_Tech [mailto:4d_tech-boun...@lists.4d.com] On Behalf Of Wayne
> Stewart via 4D_Tech
> Sent: Saturday, May 27, 2017 9:30 AM
> To: 4D iNug Technical <4d_tech@lists.4d.com>
> Cc: Wayne Stewart 
> Subject: Re: Favorite tricks and keystrokes: Please take one and leave on
>
> Doesn't alway work though :(
>
> On Sat, 27 May 2017 at 23:57, Chip Scheide via 4D_Tech <
> 4d_tech@lists.4d.com>
> wrote:
>
>
> **
> 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
> **
>
**
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
**

RE: Favorite tricks and keystrokes: Please take one and leave on

2017-05-27 Thread Stephen J. Orth via 4D_Tech
Wayne,

Give me an example on where it does not work, as I use this extensively and 
it's one of the best things 4D has done for programmers.

You can literally use this feature to automatically navigate to the source 
definition of what you cursor is in.

Best,


Steve


-Original Message-
From: 4D_Tech [mailto:4d_tech-boun...@lists.4d.com] On Behalf Of Wayne Stewart 
via 4D_Tech
Sent: Saturday, May 27, 2017 9:30 AM
To: 4D iNug Technical <4d_tech@lists.4d.com>
Cc: Wayne Stewart 
Subject: Re: Favorite tricks and keystrokes: Please take one and leave on

Doesn't alway work though :(

On Sat, 27 May 2017 at 23:57, Chip Scheide via 4D_Tech <4d_tech@lists.4d.com>
wrote:


**
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
**

Re: Favorite tricks and keystrokes: Please take one and leave on

2017-05-27 Thread Wayne Stewart via 4D_Tech
Doesn't alway work though :(

On Sat, 27 May 2017 at 23:57, Chip Scheide via 4D_Tech <4d_tech@lists.4d.com>
wrote:

> command - K
>
> > On Sat, May 27, 2017 at 12:08 PM, Douglas von Roeder via 4D_Tech <
> > 4d_tech@lists.4d.com> wrote:
> >
> >> A recent discovery for me was a quick way to open the explorer.
> >>
> >> Put the insertion point in the method editor on an empty line and press
> >> Ctrl-k.
> >
> >
> > Sounds handy. I just tried Control-Click and Command-Click in OS X using
> > 16.1 and got nothing :( Any idea what the macOS version of this trick
> might
> > be?
> > **
> > 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
> > **
> 
> Hell is other people
>  Jean-Paul Sartre
> **
> 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
> **

-- 

Regards,

Wayne


[image: --]
Wayne Stewart
[image: http://]about.me/waynestewart

**
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
**

Re: Favorite tricks and keystrokes: Please take one and leave on

2017-05-27 Thread Chip Scheide via 4D_Tech
command - K

> On Sat, May 27, 2017 at 12:08 PM, Douglas von Roeder via 4D_Tech <
> 4d_tech@lists.4d.com> wrote:
> 
>> A recent discovery for me was a quick way to open the explorer.
>> 
>> Put the insertion point in the method editor on an empty line and press
>> Ctrl-k.
> 
> 
> Sounds handy. I just tried Control-Click and Command-Click in OS X using
> 16.1 and got nothing :( Any idea what the macOS version of this trick might
> be?
> **
> 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
> **

Hell is other people 
 Jean-Paul Sartre
**
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
**

Re: Favorite tricks and keystrokes: Please take one and leave on

2017-05-27 Thread David Adams via 4D_Tech
On Sat, May 27, 2017 at 12:08 PM, Douglas von Roeder via 4D_Tech <
4d_tech@lists.4d.com> wrote:

> A recent discovery for me was a quick way to open the explorer.
>
> Put the insertion point in the method editor on an empty line and press
> Ctrl-k.


Sounds handy. I just tried Control-Click and Command-Click in OS X using
16.1 and got nothing :( Any idea what the macOS version of this trick might
be?
**
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
**

Re: Favorite tricks and keystrokes: Please take one and leave on

2017-05-26 Thread Douglas von Roeder via 4D_Tech
A recent discovery for me was a quick way to open the explorer.

Put the insertion point in the method editor on an empty line and press
Ctrl-k.



--
Douglas von Roeder
949-336-2902

On Fri, May 26, 2017 at 6:06 PM, Chip Scheide via 4D_Tech <
4d_tech@lists.4d.com> wrote:

> @
>
> [t@1]f@1:=seq@n@
> can result in:
> [table_1]Field_1 := Sequence Number
>
> it is amazing how short a line of code can be, before it is expanded
> - then you have to go back and ad the '\' to make it readable.  :)
>
> You can use the @ to shortcut any tokenizable item. Commands, tables,
> fields, (your) method names. Any line of code as it is typed can include
> any number of @s, sometimes I have as many @s as other characters.
>
> Chip
>
>
>
> > In honor of National Take-a-Penny/Leave-a-Penny Day, I thought it would
> be
> > nice to start a thread to collect people's favorite 4D tricks and
> keystroke
> > combos. How this came up is that Wayne Stewart and I recently joined
> Damon
> > Carley in giving some presentations in Sydney and New Zealand. One of the
> > biggest crowed pleasers?
> >
> > SELECTION TO ARRAY(\
> >   [Customer]ID;$customer_ids_at;\
> >   [Customer]LastName;$last_names_at)
> >
> > The "\" line break/continuation character. It's been out there for about
> 10
> > years, but not everyone knows about it. It's great! It's great for array
> > sort, selection to array/array to selection, and a lot of OB SET kind of
> > stuff. Great!
> >
> > Someone said "I'm sure that's in the docs somewhere, but how would you
> find
> > it?" Good point, I guess you just look for / ;-) Quite a few people
> started
> > sharing their favorite tips and it turns out that there are *tons* of
> them.
> >
> > So, here's mine:
> >
> > -
> > Code Line Break Character
> > -
> > You can break a single line of code into multiple lines to simplify
> reading
> > and editing using the / character.
> >
> > So, if you found that useful or if it reminds you of one of your
> favorites,
> > please post another one. I'm sure no one knows all of the good ones but
> > everyone must know a few.
> >
> > If anyone wants to post links to the docs, that's more than welcome.
> (Tim &
> > Miyako, we're looking at you because you've each spoiled us with good
> links
> > down the years),
> > **
> > 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
> > **
> 
> Hell is other people
>  Jean-Paul Sartre
> **
> 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
> **
>
**
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
**

Re: Favorite tricks and keystrokes: Please take one and leave on

2017-05-26 Thread Chip Scheide via 4D_Tech
@

[t@1]f@1:=seq@n@
can result in:
[table_1]Field_1 := Sequence Number

it is amazing how short a line of code can be, before it is expanded 
- then you have to go back and ad the '\' to make it readable.  :)

You can use the @ to shortcut any tokenizable item. Commands, tables, fields, 
(your) method names. Any line of code as it is typed can include any number of 
@s, sometimes I have as many @s as other characters.

Chip



> In honor of National Take-a-Penny/Leave-a-Penny Day, I thought it would be
> nice to start a thread to collect people's favorite 4D tricks and keystroke
> combos. How this came up is that Wayne Stewart and I recently joined Damon
> Carley in giving some presentations in Sydney and New Zealand. One of the
> biggest crowed pleasers?
> 
> SELECTION TO ARRAY(\
>   [Customer]ID;$customer_ids_at;\
>   [Customer]LastName;$last_names_at)
> 
> The "\" line break/continuation character. It's been out there for about 10
> years, but not everyone knows about it. It's great! It's great for array
> sort, selection to array/array to selection, and a lot of OB SET kind of
> stuff. Great!
> 
> Someone said "I'm sure that's in the docs somewhere, but how would you find
> it?" Good point, I guess you just look for / ;-) Quite a few people started
> sharing their favorite tips and it turns out that there are *tons* of them.
> 
> So, here's mine:
> 
> -
> Code Line Break Character
> -
> You can break a single line of code into multiple lines to simplify reading
> and editing using the / character.
> 
> So, if you found that useful or if it reminds you of one of your favorites,
> please post another one. I'm sure no one knows all of the good ones but
> everyone must know a few.
> 
> If anyone wants to post links to the docs, that's more than welcome. (Tim &
> Miyako, we're looking at you because you've each spoiled us with good links
> down the years),
> **
> 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
> **

Hell is other people 
 Jean-Paul Sartre
**
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
**

Favorite tricks and keystrokes: Please take one and leave on

2017-05-26 Thread David Adams via 4D_Tech
In honor of National Take-a-Penny/Leave-a-Penny Day, I thought it would be
nice to start a thread to collect people's favorite 4D tricks and keystroke
combos. How this came up is that Wayne Stewart and I recently joined Damon
Carley in giving some presentations in Sydney and New Zealand. One of the
biggest crowed pleasers?

SELECTION TO ARRAY(\
  [Customer]ID;$customer_ids_at;\
  [Customer]LastName;$last_names_at)

The "\" line break/continuation character. It's been out there for about 10
years, but not everyone knows about it. It's great! It's great for array
sort, selection to array/array to selection, and a lot of OB SET kind of
stuff. Great!

Someone said "I'm sure that's in the docs somewhere, but how would you find
it?" Good point, I guess you just look for / ;-) Quite a few people started
sharing their favorite tips and it turns out that there are *tons* of them.

So, here's mine:

-
Code Line Break Character
-
You can break a single line of code into multiple lines to simplify reading
and editing using the / character.

So, if you found that useful or if it reminds you of one of your favorites,
please post another one. I'm sure no one knows all of the good ones but
everyone must know a few.

If anyone wants to post links to the docs, that's more than welcome. (Tim &
Miyako, we're looking at you because you've each spoiled us with good links
down the years),
**
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
**