Re: No Object Auto-Completion for 4D Commands?

2019-08-02 Thread Jeremy French via 4D_Tech
Member functions are case sensitive, like attributes.

> On Aug 2, 2019, at 2:21 PM, Jim Crate via 4D_Tech <4d_tech@lists.4d.com> 
> wrote:
> 
> if member functions are case sensitive like attribute names,

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

Re: No Object Auto-Completion for 4D Commands?

2019-08-02 Thread Narinder Chandi via 4D_Tech
Tim,

Hi. I had only seen mention of this new Project format in passing so I've just 
taken a moment to read both of those Blog posts. Certainly this an interesting 
new feature and sets 4D moving in the right direction for source control 
integration. I will have to find some time to play with this after my current 
v17 migration project is finished.

Regards,
 
Narinder Chandi,
ToolBox Systems Ltd.
-- 

-Original Message-
From: Timothy Penner 
Date: Friday, 2 August 2019 at 19:03
To: 4D Tech Mailing List <4d_tech@lists.4d.com>
Cc: Narinder Chandi <4dtechmailingl...@toolbox.uk.com>
Subject: RE: No Object Auto-Completion for 4D Commands?

Hi Narrinder,

> it to needs to shake off the legacy of storing everything in its own 
proprietary internal format in the structure
...
> Hopefully things will improve but it will be a while I guess...

Did you see the blog posts regarding the new Project format and how this 
opens up new possibilities with Source control?
https://blog.4d.com/convert-an-existing-database-into-a-project/
https://blog.4d.com/4d-projects-embrace-the-new-era-of-collaboration/

-Tim



Timothy Penner
Senior Technical Services Engineer

4D Inc
95 S. Market Street, Suite #240
San Jose,CA 95113
United States

Telephone: +1-408-557-4600
Fax:   +1-408-271-5080
Email: tpen...@4d.com
Web:   www.4d.com




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

Re: No Object Auto-Completion for 4D Commands?

2019-08-02 Thread Chip Scheide via 4D_Tech
and complex searching options:
Find A & B 
or
Find A but # B


On Fri, 2 Aug 2019 10:43:54 -0700, Kirk Brooks via 4D_Tech wrote:
> It can hang on to it for a long time, though.
> I really wish we have a REGEX option for Find in Design.
> 
> On Fri, Aug 2, 2019 at 10:39 AM Tim Nevels via 4D_Tech 
> <4d_tech@lists.4d.com>
> wrote:
> 
>> On Aug 2, 2019, at 12:24 PM, Jeffrey Kain wrote:
>> 
>>> And if you misspell a property (or get the case wrong), it will suggest
>> that to you forever as well.  So don't make a mistake... ever! :)
>> 
>> I don’t think it does it “forever”.The way I understand it works 
>> is every
>> method that you open is scanned for dot notation and it grabs all attribute
>> names and stores them. It remembers until you quit.
>> 
>> Are you seeing it work differently, or are you just having some fun
>> scaring people on Friday. :)
>> 
>> Tim
>> 
>> *
>> Tim Nevels
>> Innovative Solutions
>> 785-749-3444
>> timnev...@mac.com
>> *
>> 
>> **
>> 4D Internet Users Group (4D iNUG)
>> Archive:  http://lists.4d.com/archives.html
>> Options: https://lists.4d.com/mailman/options/4d_tech
>> Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
>> **
> 
> 
> 
> -- 
> Kirk Brooks
> San Francisco, CA
> ===
> 
> What can be said, can be said clearly,
> and what you can’t say, you should shut up about
> 
> *Wittgenstein and the Computer *
> **
> 4D Internet Users Group (4D iNUG)
> Archive:  http://lists.4d.com/archives.html
> Options: https://lists.4d.com/mailman/options/4d_tech
> Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
> **
---
Gas is for washing parts
Alcohol is for drinkin'
Nitromethane is for racing 
**
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: No Object Auto-Completion for 4D Commands?

2019-08-02 Thread Jim Crate via 4D_Tech
What’s even better is when you have a field named “First”, and you’ve used that 
attribute on an entity, every time after that you type .first(), it 
“autocompletes” to .First() when you type the first parentheses. 

I haven’t tested yet to see if member functions are case sensitive like 
attribute names, so maybe it would work anyway?

Jim Crate

> On Aug 2, 2019, at 10:43, Kirk Brooks via 4D_Tech <4d_tech@lists.4d.com> 
> wrote:
> 
> It can hang on to it for a long time, though.
> I really wish we have a REGEX option for Find in Design.
> 
> On Fri, Aug 2, 2019 at 10:39 AM Tim Nevels via 4D_Tech <4d_tech@lists.4d.com>
> wrote:
> 
>>> On Aug 2, 2019, at 12:24 PM, Jeffrey Kain wrote:
>>> 
>>> And if you misspell a property (or get the case wrong), it will suggest
>> that to you forever as well.  So don't make a mistake... ever! :)
>> 
>> I don’t think it does it “forever”.The way I understand it works is every
>> method that you open is scanned for dot notation and it grabs all attribute
>> names and stores them. It remembers until you quit.
>> 
>> Are you seeing it work differently, or are you just having some fun
>> scaring people on Friday. :)
>> 
>> Tim
>> 
>> *
>> Tim Nevels
>> Innovative Solutions
>> 785-749-3444
>> timnev...@mac.com
>> *
>> 
>> **
>> 4D Internet Users Group (4D iNUG)
>> Archive:  http://lists.4d.com/archives.html
>> Options: https://lists.4d.com/mailman/options/4d_tech
>> Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
>> **
> 
> 
> 
> -- 
> Kirk Brooks
> San Francisco, CA
> ===
> 
> What can be said, can be said clearly,
> and what you can’t say, you should shut up about
> 
> *Wittgenstein and the Computer *
> **
> 4D Internet Users Group (4D iNUG)
> Archive:  http://lists.4d.com/archives.html
> Options: https://lists.4d.com/mailman/options/4d_tech
> Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
> **
**
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: No Object Auto-Completion for 4D Commands?

2019-08-02 Thread Tom Benedict via 4D_Tech
And Thomas Maul’s recent post on the forums regarding SCM with GIT from either 
Export structure files or Project format. 

https://forums.4d.com/Post/EN/30825681/1/3056#30825682 
 

Export structure files is available in 17R3 and Project format in 17R5.

We’re getting very close…

Tom Benedict

> On Aug 2, 2019, at 11:03, Timothy Penner via 4D_Tech <4d_tech@lists.4d.com> 
> wrote:
> 
> Hi Narinder,
> 
>> it to needs to shake off the legacy of storing everything in its own 
>> proprietary internal format in the structure
> ...
>> Hopefully things will improve but it will be a while I guess...
> 
> Did you see the blog posts regarding the new Project format and how this 
> opens up new possibilities with Source control?
> https://blog.4d.com/convert-an-existing-database-into-a-project/
> https://blog.4d.com/4d-projects-embrace-the-new-era-of-collaboration/
> 
> -Tim

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

RE: No Object Auto-Completion for 4D Commands?

2019-08-02 Thread Timothy Penner via 4D_Tech
Hi Narrinder,

> it to needs to shake off the legacy of storing everything in its own 
> proprietary internal format in the structure
...
> Hopefully things will improve but it will be a while I guess...

Did you see the blog posts regarding the new Project format and how this opens 
up new possibilities with Source control?
https://blog.4d.com/convert-an-existing-database-into-a-project/
https://blog.4d.com/4d-projects-embrace-the-new-era-of-collaboration/

-Tim



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

Re: No Object Auto-Completion for 4D Commands?

2019-08-02 Thread Narinder Chandi via 4D_Tech
I think 4D is finally facing up to the reality that to move forwards in a 
meaningful way it to needs to shake off the legacy of storing everything in its 
own proprietary internal format in the structure - that is the single reason 
why we have been kept waiting for so long for proper integration with source 
code control systems. CVS and Subversion have been around for 20+ years whilst 
Git has been the de-facto choice for many years now.

4D's Method Editor quite frankly is and always has been a very, very basic 
editor. Hopefully things will improve but it will be a while I guess...

Regards,
 
Narinder Chandi,
ToolBox Systems Ltd.
-- 

-Original Message-
From: 4D_Tech <4d_tech-boun...@lists.4d.com> on behalf of 4D Tech Mailing List 
<4d_tech@lists.4d.com>
Reply-To: 4D Tech Mailing List <4d_tech@lists.4d.com>
Date: Friday, 2 August 2019 at 18:42
To: 4D Tech Mailing List <4d_tech@lists.4d.com>
Cc: Kirk Brooks 
Subject: Re: No Object Auto-Completion for 4D Commands?

Narinder,
This is a good point. Previously 4D has been sort of development
environment with its own editors and so forth.
But now we are starting to look for it to be more of an IDE. Especially
with the Projects option coming where the 4D part is all stored in text
files.

On Fri, Aug 2, 2019 at 10:37 AM Narinder Chandi via 4D_Tech <
4d_tech@lists.4d.com> wrote:

> Yup, that is _exactly_ the behaviour I would expect from an IDE.
> Obviously, 4D's Method Editor isn't there yet...
>

-- 
Kirk Brooks
San Francisco, CA
===

What can be said, can be said clearly,
and what you can’t say, you should shut up about

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


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

Re: No Object Auto-Completion for 4D Commands?

2019-08-02 Thread Kirk Brooks via 4D_Tech
It can hang on to it for a long time, though.
I really wish we have a REGEX option for Find in Design.

On Fri, Aug 2, 2019 at 10:39 AM Tim Nevels via 4D_Tech <4d_tech@lists.4d.com>
wrote:

> On Aug 2, 2019, at 12:24 PM, Jeffrey Kain wrote:
>
> > And if you misspell a property (or get the case wrong), it will suggest
> that to you forever as well.  So don't make a mistake... ever! :)
>
> I don’t think it does it “forever”.The way I understand it works is every
> method that you open is scanned for dot notation and it grabs all attribute
> names and stores them. It remembers until you quit.
>
> Are you seeing it work differently, or are you just having some fun
> scaring people on Friday. :)
>
> Tim
>
> *
> Tim Nevels
> Innovative Solutions
> 785-749-3444
> timnev...@mac.com
> *
>
> **
> 4D Internet Users Group (4D iNUG)
> Archive:  http://lists.4d.com/archives.html
> Options: https://lists.4d.com/mailman/options/4d_tech
> Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
> **



-- 
Kirk Brooks
San Francisco, CA
===

What can be said, can be said clearly,
and what you can’t say, you should shut up about

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

Re: No Object Auto-Completion for 4D Commands?

2019-08-02 Thread Kirk Brooks via 4D_Tech
Narinder,
This is a good point. Previously 4D has been sort of development
environment with its own editors and so forth.
But now we are starting to look for it to be more of an IDE. Especially
with the Projects option coming where the 4D part is all stored in text
files.

On Fri, Aug 2, 2019 at 10:37 AM Narinder Chandi via 4D_Tech <
4d_tech@lists.4d.com> wrote:

> Yup, that is _exactly_ the behaviour I would expect from an IDE.
> Obviously, 4D's Method Editor isn't there yet...
>

-- 
Kirk Brooks
San Francisco, CA
===

What can be said, can be said clearly,
and what you can’t say, you should shut up about

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

Re: No Object Auto-Completion for 4D Commands?

2019-08-02 Thread Tim Nevels via 4D_Tech
On Aug 2, 2019, at 12:24 PM, Jeffrey Kain wrote:

> And if you misspell a property (or get the case wrong), it will suggest that 
> to you forever as well.  So don't make a mistake... ever! :)

I don’t think it does it “forever”.The way I understand it works is every 
method that you open is scanned for dot notation and it grabs all attribute 
names and stores them. It remembers until you quit. 

Are you seeing it work differently, or are you just having some fun scaring 
people on Friday. :)

Tim

*
Tim Nevels
Innovative Solutions
785-749-3444
timnev...@mac.com
*

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

Re: No Object Auto-Completion for 4D Commands?

2019-08-02 Thread Narinder Chandi via 4D_Tech
Urghhh!

Regards,
 
Narinder Chandi,
ToolBox Systems Ltd.
-- 

-Original Message-
From: 4D_Tech <4d_tech-boun...@lists.4d.com> on behalf of 4D Tech Mailing List 
<4d_tech@lists.4d.com>
Reply-To: 4D Tech Mailing List <4d_tech@lists.4d.com>
Date: Friday, 2 August 2019 at 18:24
To: 4D Tech Mailing List <4d_tech@lists.4d.com>
Cc: Jeffrey Kain 
Subject: Re: No Object Auto-Completion for 4D Commands?

And if you misspell a property (or get the case wrong), it will suggest 
that to you forever as well.  So don't make a mistake... ever! :)

> On Aug 2, 2019, at 1:10 PM, Narinder Chandi via 4D_Tech 
<4d_tech@lists.4d.com> wrote:
> 
> This current behaviour as is means that there is a great chance of mixing 
properties from multiple different objects within a given Method that can and 
will result in unexpected coding errors. I guess for now it's simply a case of 
"programmer beware"!
> 
> Having used other IDEs, in particular those from JetBrains, 4D still has 
a ways to go to provide the "expected" behaviours for proper OOP style object 
property auto-completion. Maybe in the future...

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


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

Re: No Object Auto-Completion for 4D Commands?

2019-08-02 Thread Narinder Chandi via 4D_Tech
Chip,

Yup, that is _exactly_ the behaviour I would expect from an IDE. Obviously, 
4D's Method Editor isn't there yet...

Regards,
 
Narinder Chandi,
ToolBox Systems Ltd.
-- 

-Original Message-
From: Chip Scheide <4d_o...@pghrepository.org>
Date: Friday, 2 August 2019 at 18:14
To: 4D Tech Mailing List <4d_tech@lists.4d.com>
Cc: Narinder Chandi <4dtechmailingl...@toolbox.uk.com>
Subject: Re: No Object Auto-Completion for 4D Commands?

Narinder,
are you asking 4D to 'look inside' of the object for properties, then 
allow those to be used in auto complete?

On Fri, 02 Aug 2019 18:10:09 +0100, Narinder Chandi via 4D_Tech wrote:
> 
> Having used other IDEs, in particular those from JetBrains, 4D still 
> has a ways to go to provide the "expected" behaviours for proper OOP 
> style object property auto-completion. Maybe in the future...
---
Gas is for washing parts
Alcohol is for drinkin'
Nitromethane is for racing 



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

Re: No Object Auto-Completion for 4D Commands?

2019-08-02 Thread Jeffrey Kain via 4D_Tech
And if you misspell a property (or get the case wrong), it will suggest that to 
you forever as well.  So don't make a mistake... ever! :)

> On Aug 2, 2019, at 1:10 PM, Narinder Chandi via 4D_Tech 
> <4d_tech@lists.4d.com> wrote:
> 
> This current behaviour as is means that there is a great chance of mixing 
> properties from multiple different objects within a given Method that can and 
> will result in unexpected coding errors. I guess for now it's simply a case 
> of "programmer beware"!
> 
> Having used other IDEs, in particular those from JetBrains, 4D still has a 
> ways to go to provide the "expected" behaviours for proper OOP style object 
> property auto-completion. Maybe in the future...

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

Re: No Object Auto-Completion for 4D Commands?

2019-08-02 Thread Chip Scheide via 4D_Tech
Narinder,
are you asking 4D to 'look inside' of the object for properties, then 
allow those to be used in auto complete?

On Fri, 02 Aug 2019 18:10:09 +0100, Narinder Chandi via 4D_Tech wrote:
> 
> Having used other IDEs, in particular those from JetBrains, 4D still 
> has a ways to go to provide the "expected" behaviours for proper OOP 
> style object property auto-completion. Maybe in the future...
---
Gas is for washing parts
Alcohol is for drinkin'
Nitromethane is for racing 
**
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: No Object Auto-Completion for 4D Commands?

2019-08-02 Thread Tim Nevels via 4D_Tech
On Aug 2, 2019, at 11:56 AM, Narinder Chandi wrote:

> Thanks, but I actually have that article open in a browser window and had 
> referred to it prior to posting. It didn't answer my specific question that I 
> posted about with regards to auto-complete for 4D commands that return 
> objects. Can you or anybody else advise on that specific point? Thanks.

What you are wanting is not available yet. 

What I’ve heard is they are working on a much improved autocomplete system. 
Right now it does not know about 4D command object attributes. It could do this 
like it does when suggesting constants for 4D commands, but it does not do it 
yet. Look for it in a future version.

Tim

*
Tim Nevels
Innovative Solutions
785-749-3444
timnev...@mac.com
*

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

Re: No Object Auto-Completion for 4D Commands?

2019-08-02 Thread Narinder Chandi via 4D_Tech
Ah, ok that was what I had assumed but it didn't seem or feel right or 
intuitive.

This current behaviour as is means that there is a great chance of mixing 
properties from multiple different objects within a given Method that can and 
will result in unexpected coding errors. I guess for now it's simply a case of 
"programmer beware"!

Having used other IDEs, in particular those from JetBrains, 4D still has a ways 
to go to provide the "expected" behaviours for proper OOP style object property 
auto-completion. Maybe in the future...

Regards,
 
Narinder Chandi,
ToolBox Systems Ltd.
-- 

-Original Message-
From: Timothy Penner 
Date: Friday, 2 August 2019 at 18:03
To: 4D Tech Mailing List <4d_tech@lists.4d.com>
Cc: Narinder Chandi <4dtechmailingl...@toolbox.uk.com>
Subject: RE: No Object Auto-Completion for 4D Commands?

Hi Narrinder,

"Each time you open a method, or edit some code, the method editor collects 
the attributes used in your code and proposes them in the list of suggestions."

What this means is that it parses the typed code and collects the 
properties that are written in the code. If you haven’t typed the property into 
the method editor yet then the method editor won't suggest it, regardless of 
where the property came from.

-Tim



-Original Message-
From: 4D_Tech <4d_tech-boun...@lists.4d.com> On Behalf Of Narinder Chandi 
via 4D_Tech
Sent: Friday, August 02, 2019 9:57 AM
To: 4D iNug Technical <4d_tech@lists.4d.com>
Cc: Narinder Chandi <4dtechmailingl...@toolbox.uk.com>
Subject: Re: No Object Auto-Completion for 4D Commands?

Tim,

Thanks, but I actually have that article open in a browser window and had 
referred to it prior to posting. It didn't answer my specific question that I 
posted about with regards to auto-complete for 4D commands that return objects. 
Can you or anybody else advise on that specific point? Thanks.

Regards,
 
Narinder Chandi,
ToolBox Systems Ltd.
-- 

-Original Message-
From: Timothy Penner 
Date: Friday, 2 August 2019 at 17:51
To: 4D Tech Mailing List <4d_tech@lists.4d.com>
Cc: Narinder Chandi <4dtechmailingl...@toolbox.uk.com>
Subject: RE: No Object Auto-Completion for 4D Commands?

Hello,

> What gives? Tell me I made a basic mistake somewhere?!

Here is the blog post regarding the feature:
https://blog.4d.com/autocomplete-function-expanded-to-object-attributes

TL/DR - Each time you open a method, or edit some code, the method 
editor collects the attributes used in your code and proposes them in the list 
of suggestions.

-Tim







Timothy Penner
Senior Technical Services Engineer

4D Inc
95 S. Market Street, Suite #240
San Jose,CA 95113
United States

Telephone: +1-408-557-4600
Fax:   +1-408-271-5080
Email: tpen...@4d.com
Web:   www.4d.com

-Original Message-
From: 4D_Tech <4d_tech-boun...@lists.4d.com> On Behalf Of Narinder 
Chandi via 4D_Tech
Sent: Friday, August 02, 2019 9:42 AM
To: 4D Tech Mailing List <4d_tech@lists.4d.com>
    Cc: Narinder Chandi <4dtechmailingl...@toolbox.uk.com>
Subject: No Object Auto-Completion for 4D Commands?

So, I'm in the final phase of a v15 to v17.2 upgrade and 
eliminating/replacing all the remaining _o_ prefixed obsolete 4D commands. I 
came across some Method Editor behaviour that I totally didn't expect... btw, 
this is my very first foray into using C_OBJECT and 4D commands that return 
objects!

Let me illustrate with the following very simple example:

C_OBJECT($object)

$object:=Path to object(Get 4D folder)

Now, when I type $object into the Method Editor, I expected the 
auto-completion to show me available object properties such as parentFolder, 
name and extension but it didn't. I then modified the code to:

$object:=New object
$object:=Path to object(Get 4D folder)

But that didn't yield anything more - I had assumed in the first 
example that the 4D command would implicitly initialise the object internally. 
So, I have a couple questions a this point:
* for 4D commands that return an object is object initialisation 
implicit or must "New object" always be called first?
* is it the case that there is actually no auto-completion for 4D 
Commands that return objects? That would be a real disappointment :((

Note that I also tested the above in a completely new 4D v17 database 
just in

RE: No Object Auto-Completion for 4D Commands?

2019-08-02 Thread Timothy Penner via 4D_Tech
Hi Narrinder,

"Each time you open a method, or edit some code, the method editor collects the 
attributes used in your code and proposes them in the list of suggestions."

What this means is that it parses the typed code and collects the properties 
that are written in the code. If you haven’t typed the property into the method 
editor yet then the method editor won't suggest it, regardless of where the 
property came from.

-Tim






-Original Message-
From: 4D_Tech <4d_tech-boun...@lists.4d.com> On Behalf Of Narinder Chandi via 
4D_Tech
Sent: Friday, August 02, 2019 9:57 AM
To: 4D iNug Technical <4d_tech@lists.4d.com>
Cc: Narinder Chandi <4dtechmailingl...@toolbox.uk.com>
Subject: Re: No Object Auto-Completion for 4D Commands?

Tim,

Thanks, but I actually have that article open in a browser window and had 
referred to it prior to posting. It didn't answer my specific question that I 
posted about with regards to auto-complete for 4D commands that return objects. 
Can you or anybody else advise on that specific point? Thanks.

Regards,

Narinder Chandi,
ToolBox Systems Ltd.
--

-Original Message-
From: Timothy Penner 
Date: Friday, 2 August 2019 at 17:51
To: 4D Tech Mailing List <4d_tech@lists.4d.com>
Cc: Narinder Chandi <4dtechmailingl...@toolbox.uk.com>
Subject: RE: No Object Auto-Completion for 4D Commands?

Hello,

> What gives? Tell me I made a basic mistake somewhere?!

Here is the blog post regarding the feature:
https://blog.4d.com/autocomplete-function-expanded-to-object-attributes

TL/DR - Each time you open a method, or edit some code, the method editor 
collects the attributes used in your code and proposes them in the list of 
suggestions.

-Tim







Timothy Penner
Senior Technical Services Engineer

4D Inc
95 S. Market Street, Suite #240
San Jose,CA 95113
United States

Telephone: +1-408-557-4600
Fax:   +1-408-271-5080
Email: tpen...@4d.com
Web:   www.4d.com

-Original Message-
From: 4D_Tech <4d_tech-boun...@lists.4d.com> On Behalf Of Narinder Chandi 
via 4D_Tech
Sent: Friday, August 02, 2019 9:42 AM
To: 4D Tech Mailing List <4d_tech@lists.4d.com>
Cc: Narinder Chandi <4dtechmailingl...@toolbox.uk.com>
Subject: No Object Auto-Completion for 4D Commands?

So, I'm in the final phase of a v15 to v17.2 upgrade and 
eliminating/replacing all the remaining _o_ prefixed obsolete 4D commands. I 
came across some Method Editor behaviour that I totally didn't expect... btw, 
this is my very first foray into using C_OBJECT and 4D commands that return 
objects!

Let me illustrate with the following very simple example:

C_OBJECT($object)

$object:=Path to object(Get 4D folder)

Now, when I type $object into the Method Editor, I expected the 
auto-completion to show me available object properties such as parentFolder, 
name and extension but it didn't. I then modified the code to:

$object:=New object
$object:=Path to object(Get 4D folder)

But that didn't yield anything more - I had assumed in the first example 
that the 4D command would implicitly initialise the object internally. So, I 
have a couple questions a this point:
* for 4D commands that return an object is object initialisation implicit 
or must "New object" always be called first?
* is it the case that there is actually no auto-completion for 4D Commands 
that return objects? That would be a real disappointment :((

Note that I also tested the above in a completely new 4D v17 database just 
in case there was something up with a converted database. I also checked that 
the auto-complete settings in Preferences were setup correctly - they are 
identical in both the converted v17 and new v17 databases.

I also tested this example:

C_OBJECT($object1)
C_OBJECT($object2)

$object1:=New object
$object1:=Path to object(Get 4D folder)

$object2:=New object
$object2.foo:="foo"
$object2.bar:="bar"

In this case I get auto-completion of "object1.foo" as well as 
"object2.foo" which is really not what I would expect at all! It seems to me 
that the Method Editor is wholly indiscriminate about what the auto-completion 
options are!

What gives? Tell me I made a basic mistake somewhere?!

Regards,

Narinder Chandi,
ToolBox Systems Ltd.
--


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



**
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/arch

Re: No Object Auto-Completion for 4D Commands?

2019-08-02 Thread Narinder Chandi via 4D_Tech
Tim,

Thanks, but I actually have that article open in a browser window and had 
referred to it prior to posting. It didn't answer my specific question that I 
posted about with regards to auto-complete for 4D commands that return objects. 
Can you or anybody else advise on that specific point? Thanks.

Regards,
 
Narinder Chandi,
ToolBox Systems Ltd.
-- 

-Original Message-
From: Timothy Penner 
Date: Friday, 2 August 2019 at 17:51
To: 4D Tech Mailing List <4d_tech@lists.4d.com>
Cc: Narinder Chandi <4dtechmailingl...@toolbox.uk.com>
Subject: RE: No Object Auto-Completion for 4D Commands?

Hello,

> What gives? Tell me I made a basic mistake somewhere?!

Here is the blog post regarding the feature:
https://blog.4d.com/autocomplete-function-expanded-to-object-attributes

TL/DR - Each time you open a method, or edit some code, the method editor 
collects the attributes used in your code and proposes them in the list of 
suggestions.

-Tim







Timothy Penner
Senior Technical Services Engineer

4D Inc
95 S. Market Street, Suite #240
San Jose,CA 95113
United States

Telephone: +1-408-557-4600
Fax:   +1-408-271-5080
Email: tpen...@4d.com
Web:   www.4d.com

-Original Message-
From: 4D_Tech <4d_tech-boun...@lists.4d.com> On Behalf Of Narinder Chandi 
via 4D_Tech
Sent: Friday, August 02, 2019 9:42 AM
To: 4D Tech Mailing List <4d_tech@lists.4d.com>
Cc: Narinder Chandi <4dtechmailingl...@toolbox.uk.com>
Subject: No Object Auto-Completion for 4D Commands?

So, I'm in the final phase of a v15 to v17.2 upgrade and 
eliminating/replacing all the remaining _o_ prefixed obsolete 4D commands. I 
came across some Method Editor behaviour that I totally didn't expect... btw, 
this is my very first foray into using C_OBJECT and 4D commands that return 
objects!

Let me illustrate with the following very simple example:

C_OBJECT($object)

$object:=Path to object(Get 4D folder)

Now, when I type $object into the Method Editor, I expected the 
auto-completion to show me available object properties such as parentFolder, 
name and extension but it didn't. I then modified the code to:

$object:=New object
$object:=Path to object(Get 4D folder)

But that didn't yield anything more - I had assumed in the first example 
that the 4D command would implicitly initialise the object internally. So, I 
have a couple questions a this point:
* for 4D commands that return an object is object initialisation implicit 
or must "New object" always be called first?
* is it the case that there is actually no auto-completion for 4D Commands 
that return objects? That would be a real disappointment :((

Note that I also tested the above in a completely new 4D v17 database just 
in case there was something up with a converted database. I also checked that 
the auto-complete settings in Preferences were setup correctly - they are 
identical in both the converted v17 and new v17 databases.

I also tested this example:

C_OBJECT($object1)
C_OBJECT($object2)

$object1:=New object
$object1:=Path to object(Get 4D folder)

$object2:=New object
$object2.foo:="foo"
$object2.bar:="bar"

In this case I get auto-completion of "object1.foo" as well as 
"object2.foo" which is really not what I would expect at all! It seems to me 
that the Method Editor is wholly indiscriminate about what the auto-completion 
options are!

What gives? Tell me I made a basic mistake somewhere?!

Regards,

Narinder Chandi,
ToolBox Systems Ltd.
--


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



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

Re: No Object Auto-Completion for 4D Commands?

2019-08-02 Thread Kirk Brooks via 4D_Tech
My bad - I mis-read what he was asking about.

On Fri, Aug 2, 2019 at 9:51 AM Timothy Penner via 4D_Tech <
4d_tech@lists.4d.com> wrote:

> Hello,
>
> > What gives? Tell me I made a basic mistake somewhere?!
>
> Here is the blog post regarding the feature:
> https://blog.4d.com/autocomplete-function-expanded-to-object-attributes
>
> TL/DR - Each time you open a method, or edit some code, the method editor
> collects the attributes used in your code and proposes them in the list of
> suggestions.
>
> -Tim
>
>
>
>
>
>
>
> -Original Message-
> From: 4D_Tech <4d_tech-boun...@lists.4d.com> On Behalf Of Narinder Chandi
> via 4D_Tech
> Sent: Friday, August 02, 2019 9:42 AM
> To: 4D Tech Mailing List <4d_tech@lists.4d.com>
> Cc: Narinder Chandi <4dtechmailingl...@toolbox.uk.com>
> Subject: No Object Auto-Completion for 4D Commands?
>
> So, I'm in the final phase of a v15 to v17.2 upgrade and
> eliminating/replacing all the remaining _o_ prefixed obsolete 4D commands.
> I came across some Method Editor behaviour that I totally didn't expect...
> btw, this is my very first foray into using C_OBJECT and 4D commands that
> return objects!
>
> Let me illustrate with the following very simple example:
>
> C_OBJECT($object)
>
> $object:=Path to object(Get 4D folder)
>
> Now, when I type $object into the Method Editor, I expected the
> auto-completion to show me available object properties such as
> parentFolder, name and extension but it didn't. I then modified the code to:
>
> $object:=New object
> $object:=Path to object(Get 4D folder)
>
> But that didn't yield anything more - I had assumed in the first example
> that the 4D command would implicitly initialise the object internally. So,
> I have a couple questions a this point:
> * for 4D commands that return an object is object initialisation implicit
> or must "New object" always be called first?
> * is it the case that there is actually no auto-completion for 4D Commands
> that return objects? That would be a real disappointment :((
>
> Note that I also tested the above in a completely new 4D v17 database just
> in case there was something up with a converted database. I also checked
> that the auto-complete settings in Preferences were setup correctly - they
> are identical in both the converted v17 and new v17 databases.
>
> I also tested this example:
>
> C_OBJECT($object1)
> C_OBJECT($object2)
>
> $object1:=New object
> $object1:=Path to object(Get 4D folder)
>
> $object2:=New object
> $object2.foo:="foo"
> $object2.bar:="bar"
>
> In this case I get auto-completion of "object1.foo" as well as
> "object2.foo" which is really not what I would expect at all! It seems to
> me that the Method Editor is wholly indiscriminate about what the
> auto-completion options are!
>
> What gives? Tell me I made a basic mistake somewhere?!
>
> Regards,
>
> Narinder Chandi,
> ToolBox Systems Ltd.
> --
>
>
> **
> 4D Internet Users Group (4D iNUG)
> Archive:  http://lists.4d.com/archives.html
> Options: https://lists.4d.com/mailman/options/4d_tech
> Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
> **
> **
> 4D Internet Users Group (4D iNUG)
> Archive:  http://lists.4d.com/archives.html
> Options: https://lists.4d.com/mailman/options/4d_tech
> Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
> **



-- 
Kirk Brooks
San Francisco, CA
===

What can be said, can be said clearly,
and what you can’t say, you should shut up about

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

RE: No Object Auto-Completion for 4D Commands?

2019-08-02 Thread Timothy Penner via 4D_Tech
Hello,

> What gives? Tell me I made a basic mistake somewhere?!

Here is the blog post regarding the feature:
https://blog.4d.com/autocomplete-function-expanded-to-object-attributes

TL/DR - Each time you open a method, or edit some code, the method editor 
collects the attributes used in your code and proposes them in the list of 
suggestions.

-Tim







-Original Message-
From: 4D_Tech <4d_tech-boun...@lists.4d.com> On Behalf Of Narinder Chandi via 
4D_Tech
Sent: Friday, August 02, 2019 9:42 AM
To: 4D Tech Mailing List <4d_tech@lists.4d.com>
Cc: Narinder Chandi <4dtechmailingl...@toolbox.uk.com>
Subject: No Object Auto-Completion for 4D Commands?

So, I'm in the final phase of a v15 to v17.2 upgrade and eliminating/replacing 
all the remaining _o_ prefixed obsolete 4D commands. I came across some Method 
Editor behaviour that I totally didn't expect... btw, this is my very first 
foray into using C_OBJECT and 4D commands that return objects!

Let me illustrate with the following very simple example:

C_OBJECT($object)

$object:=Path to object(Get 4D folder)

Now, when I type $object into the Method Editor, I expected the auto-completion 
to show me available object properties such as parentFolder, name and extension 
but it didn't. I then modified the code to:

$object:=New object
$object:=Path to object(Get 4D folder)

But that didn't yield anything more - I had assumed in the first example that 
the 4D command would implicitly initialise the object internally. So, I have a 
couple questions a this point:
* for 4D commands that return an object is object initialisation implicit or 
must "New object" always be called first?
* is it the case that there is actually no auto-completion for 4D Commands that 
return objects? That would be a real disappointment :((

Note that I also tested the above in a completely new 4D v17 database just in 
case there was something up with a converted database. I also checked that the 
auto-complete settings in Preferences were setup correctly - they are identical 
in both the converted v17 and new v17 databases.

I also tested this example:

C_OBJECT($object1)
C_OBJECT($object2)

$object1:=New object
$object1:=Path to object(Get 4D folder)

$object2:=New object
$object2.foo:="foo"
$object2.bar:="bar"

In this case I get auto-completion of "object1.foo" as well as "object2.foo" 
which is really not what I would expect at all! It seems to me that the Method 
Editor is wholly indiscriminate about what the auto-completion options are!

What gives? Tell me I made a basic mistake somewhere?!

Regards,

Narinder Chandi,
ToolBox Systems Ltd.
--


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

Re: No Object Auto-Completion for 4D Commands?

2019-08-02 Thread Kirk Brooks via 4D_Tech
Narinder,
I just pasted your example into a new db in 17.2 (Mac) and it worked as
expected.

I'd suggest dragging the $object var into the debugger pane. Though it
worked for me typing in the variable as well.

On Fri, Aug 2, 2019 at 9:41 AM Narinder Chandi via 4D_Tech <
4d_tech@lists.4d.com> wrote:

> So, I'm in the final phase of a v15 to v17.2 upgrade and
> eliminating/replacing all the remaining _o_ prefixed obsolete 4D commands.
> I came across some Method Editor behaviour that I totally didn't expect...
> btw, this is my very first foray into using C_OBJECT and 4D commands that
> return objects!
>
> Let me illustrate with the following very simple example:
>
> C_OBJECT($object)
>
> $object:=Path to object(Get 4D folder)
>
> Now, when I type $object into the Method Editor, I expected the
> auto-completion to show me available object properties such as
> parentFolder, name and extension but it didn't. I then modified the code to:
>
> $object:=New object
> $object:=Path to object(Get 4D folder)
>
> But that didn't yield anything more - I had assumed in the first example
> that the 4D command would implicitly initialise the object internally. So,
> I have a couple questions a this point:
> * for 4D commands that return an object is object initialisation implicit
> or must "New object" always be called first?
> * is it the case that there is actually no auto-completion for 4D Commands
> that return objects? That would be a real disappointment :((
>
> Note that I also tested the above in a completely new 4D v17 database just
> in case there was something up with a converted database. I also checked
> that the auto-complete settings in Preferences were setup correctly - they
> are identical in both the converted v17 and new v17 databases.
>
> I also tested this example:
>
> C_OBJECT($object1)
> C_OBJECT($object2)
>
> $object1:=New object
> $object1:=Path to object(Get 4D folder)
>
> $object2:=New object
> $object2.foo:="foo"
> $object2.bar:="bar"
>
> In this case I get auto-completion of "object1.foo" as well as
> "object2.foo" which is really not what I would expect at all! It seems to
> me that the Method Editor is wholly indiscriminate about what the
> auto-completion options are!
>
> What gives? Tell me I made a basic mistake somewhere?!
>
> Regards,
>
> Narinder Chandi,
> ToolBox Systems Ltd.
> --
>
>
> **
> 4D Internet Users Group (4D iNUG)
> Archive:  http://lists.4d.com/archives.html
> Options: https://lists.4d.com/mailman/options/4d_tech
> Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
> **



-- 
Kirk Brooks
San Francisco, CA
===

What can be said, can be said clearly,
and what you can’t say, you should shut up about

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

No Object Auto-Completion for 4D Commands?

2019-08-02 Thread Narinder Chandi via 4D_Tech
So, I'm in the final phase of a v15 to v17.2 upgrade and eliminating/replacing 
all the remaining _o_ prefixed obsolete 4D commands. I came across some Method 
Editor behaviour that I totally didn't expect... btw, this is my very first 
foray into using C_OBJECT and 4D commands that return objects!

Let me illustrate with the following very simple example:

C_OBJECT($object)

$object:=Path to object(Get 4D folder)

Now, when I type $object into the Method Editor, I expected the auto-completion 
to show me available object properties such as parentFolder, name and extension 
but it didn't. I then modified the code to:

$object:=New object
$object:=Path to object(Get 4D folder)

But that didn't yield anything more - I had assumed in the first example that 
the 4D command would implicitly initialise the object internally. So, I have a 
couple questions a this point:
* for 4D commands that return an object is object initialisation implicit or 
must "New object" always be called first?
* is it the case that there is actually no auto-completion for 4D Commands that 
return objects? That would be a real disappointment :((

Note that I also tested the above in a completely new 4D v17 database just in 
case there was something up with a converted database. I also checked that the 
auto-complete settings in Preferences were setup correctly - they are identical 
in both the converted v17 and new v17 databases.

I also tested this example:

C_OBJECT($object1)
C_OBJECT($object2)

$object1:=New object
$object1:=Path to object(Get 4D folder)

$object2:=New object
$object2.foo:="foo"
$object2.bar:="bar"

In this case I get auto-completion of "object1.foo" as well as "object2.foo" 
which is really not what I would expect at all! It seems to me that the Method 
Editor is wholly indiscriminate about what the auto-completion options are!

What gives? Tell me I made a basic mistake somewhere?!

Regards,
 
Narinder Chandi,
ToolBox Systems Ltd.
-- 


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