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 one

2017-05-27 Thread Jeffrey Kain via 4D_Tech
Here are a few of mine:

- Debugger: in the method you are debugging, you can right click on any line of 
code and select "Run to cursor" -- easier than setting a breakpoint.

- Debugger: Execute commands, not just evaluate expressions. One very useful 
one -- type SET TEXT TO PASTEBOARD (Json stringify($oObject)) to get an 
object's text into the clipboard (and then on to http://json.parser.online.fr 
... super useful web site for examining objects).

- Find in design: In the Find Results window, you can click on the gear icon 
and select "Replace in content"... you can replace your find string with 
something else -- super easy to do bulk replacements in the code such as 
creating a wrapper.

- Explorer: Right click on a method and select Rename. It will rename all 
occurrences of that method in the code (except when referenced as a string 
parameter, i.e. in an EXECUTE FORMULA or New Process).
**
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
**