I agree with your logic, John. A well-spoken and thoughtful reply.
I also used ALP for many years; back in the ‘dinosaur’ days before list boxes
were not even thought of. Seemed for many years 4D was content to leave that
aspect of the UI to ALP, which it filled most admirably. I built a signifi
I can't think of a single instance where iterating in reverse is even
necessary. If you're deleting elements of a collection, simply build a new
collection of the ones you want to delete. If you do it right, that's
easier to read, anyway.
Doug
On Sat, May 2, 2020 at 12:10 AM Aparajita Fishman via
-Original Message-
From: 4D_Tech <4d_tech-boun...@lists.4d.com> On Behalf Of Bernard Escaich via
4D_Tech
Sent: Wednesday, May 6, 2020 2:16 AM
To: 4D iNug Technical <4d_tech@lists.4d.com>
Cc: Bernard Escaich
Subject: Re: Object notation replacement for use of Self in a script —
Why not use Form event.objectName ?
I find it very useful ; I use it and write in form method :
Case of
:(Form event.code=On data change)
Case of
:(Form event.objectName="Name)
Object get pointer(Object named;"Name")->:=MyMethodUppercase(
Object get pointer(Object n
You are correct and I have used it, I just forgot even though I was looking at
the documentation while writing that email.
Jim Crate
> On May 5, 2020, at 3:02 PM, Jeremy Roussak via 4D_Tech <4d_tech@lists.4d.com>
> wrote:
>
> Doesn’t the option until/while syntax fit the bill for early exit?
Doesn’t the option until/while syntax fit the bill for early exit? I agree an
automatically-maintained index would be nice, though.
Jeremy
> On 5 May 2020, at 19:13, James Crate via 4D_Tech <4d_tech@lists.4d.com> wrote:
>
> In 4D, when enumerating collections or entity selections, about half th
On May 2, 2020, at 1:10 AM, Aparajita Fishman via 4D_Tech
<4d_tech@lists.4d.com> wrote:
>
>> "Don’t be so quick to complain; you finally got ‘for each’ 10 years after
>> the rest of the world (including Active4D).”
>> Good point. So…you’re thinking that the feature set is complete?
>
> Absolutel
Jim:
"This is pretty much the same way you enumerate in reverse order in the
other languages I use.”
Thank you for posting that.
I brought this up on the Forum a while back and I even brought it up in a
tech support call but…nada.
Interesting thread -
https://forums.4d.com/Post/EN/34415270/1/344
Aparajita:
"Absolutely. In fact it is more complete than most implementations, you can
specify and begin and end index for ordered collections.”
Sorry for the confusion. I was referring to 4D implementation, not A4D.
--
Douglas von Roeder
949-910-4084
On Fri, May 1, 2020 at 10:10 PM Aparajita F
This is always a no brainer for me. Arealist every time.
It’s just far more professional looking and performing IMO. I use listboxes a
lot for testing - I really use them quite intensively for that, but then I go
and do the production version with Arealist since I still find list boxes
clunky a
First off, this is in no way an attempt to bash AreaList Pro. It is one
of the best and most solid plugins available. Price is write and support
continues to be great. If any plugin fits your needs by all means stick with
it. Some of yoI have may remember that in the old days I always a
It would be too bad (and very time consuming) to get rid of all your hard work
instead of just following AreaList Pro's evolution.
The main ListBox features are basically AreaList Pro v6-7, IOW they (almost) do
what AreaList Pro did 20 years ago.
4 versions (and many years) later there is still
>
> -Original Message-
> From: 4D_Tech <4d_tech-boun...@lists.4d.com> On Behalf Of Kirk Brooks via
> 4D_Tech
> Sent: Friday, May 1, 2020 3:13 PM
> To: 4D iNug Technical <4d_tech@lists.4d.com>
> Cc: Kirk Brooks
> Subject: Re: Object notation replacement
> On May 1, 2020, at 1:13 PM, James Crate via 4D_Tech <4d_tech@lists.4d.com>
> wrote:
>
>> Here is an idea which seems to work, but needs more evaluation. What if you
>> named the form object with the property path in the form data? Even if
>> periods are not allowed (they seem to be), anothe
> Le 2 mai 2020 à 07:10, Aparajita Fishman via 4D_Tech <4d_tech@lists.4d.com> a
> écrit :
>
>> This could be 4D’s chance to be a trendsetter!
>
> I don’t think it's worth it. Iterating in reverse is not a common operation.
I don't think i've used reversed loops except to remove items from arr
ooks
Subject: Re: Object notation replacement for use of Self in a script — v18
Lahav,
On Fri, May 1, 2020 at 1:51 PM lists via 4D_Tech <4d_tech@lists.4d.com>
wrote:
> I have one word that will do all of what we are after : "This"
>
Damn - I wish I'd said that.
>
Lahav,
not 'That', 'This' :)
Chip
>
>> I have one word that will do all of what we are after : "This"
>>
> Damn - I wish I'd said that.
Hell is other people
Jean-Paul Sartre
**
4D Internet Users Group (4D i
> "Don’t be so quick to complain; you finally got ‘for each’ 10 years after
> the rest of the world (including Active4D).”
> Good point. So…you’re thinking that the feature set is complete?
Absolutely. In fact it is more complete than most implementations, you can
specify and begin and end index
On Apr 30, 2020, at 9:36 PM, Douglas von Roeder via 4D_Tech
<4d_tech@lists.4d.com> wrote:
>
> Another WTF is that you can’t iterate from the end of a collection to the
> start. You can reorder the collection and then run a For each loop but
> that’s a complete kludge.
For each ($item;$collection
On May 1, 2020, at 3:44 PM, Kirk Brooks via 4D_Tech <4d_tech@lists.4d.com>
wrote:
>
> I have not had any great joy attempting to use pop-ups with object
> references. Haven't tried in v18 so maybe it's improved.
In V17, popups work with form object expressions. If you set the expression to
“For
-boun...@lists.4d.com> On Behalf Of Kirk Brooks via
> 4D_Tech
> Sent: Friday, May 1, 2020 1:21 PM
> To: 4D iNug Technical <4d_tech@lists.4d.com>
> Cc: Kirk Brooks
> Subject: Re: Object notation replacement for use of Self in a script — v18
>
> Chris,
>
> On
Hi Kirk,
Thanks for replying.
I think I stated this much earlier in this thread, but the project I am working
on is ENTIRELY orda / object based. I do not mix ‘classic’ into it; except I
would say some 4D commands basically still are ‘classic-oriented’ but they are
working on ‘ORDA-izing’ it. I
Lahav,
On Fri, May 1, 2020 at 1:51 PM lists via 4D_Tech <4d_tech@lists.4d.com>
wrote:
> I have one word that will do all of what we are after : "This"
>
Damn - I wish I'd said that.
> Again, I don't think anyone on this thread is complaining, we are just
> trying to understand how to use the
Aparajita:
"Don’t be so quick to complain; you finally got ‘for each’ 10 years after
the rest of the world (including Active4D).”
Good point. So…you’re thinking that the feature set is complete?
"I don’t know of a single language (and I have used at least 6) where ‘for
each’ is reversible.”
This
Original Message-
From: 4D_Tech <4d_tech-boun...@lists.4d.com> On Behalf Of Kirk Brooks via
4D_Tech
Sent: Friday, May 1, 2020 1:21 PM
To: 4D iNug Technical <4d_tech@lists.4d.com>
Cc: Kirk Brooks
Subject: Re: Object notation replacement for use of Self in a script — v18
Chris,
>> Another WTF is that you can’t iterate from the end of a collection to the
>> start. You can reorder the collection and then run a For each loop but
>> that’s a complete kludge.
Don’t be so quick to complain; you finally got ‘for each’ 10 years after the
rest of the world (including Active4D).
Tim Nevels wrote:
>if you want to use entities or use collections AreaList Pro is out of the
>picture.
As posted on e-node’s forum two weeks ago: “ALP v11 will definitely support
entity selections and collections. Mostly it seems to already work in ALP
11.0a5"
It may not do everything you wan
Jim,
On Fri, May 1, 2020 at 11:53 AM James Crate via 4D_Tech <
4d_tech@lists.4d.com> wrote:
> Suppose you have a section on the form with labels/fields for payment
> info. You have a popup with payment type, and fields for credit card, ACH
> (bank name/acct number), check, cash. When you choose a
Chris,
On Tue, Apr 28, 2020 at 10:53 PM Chris Belanger via 4D_Tech <
4d_tech@lists.4d.com> wrote:
> Generic programming of vars on a form is very complicated when one uses
> object attributes for the data source.
>
> For example, on screen you make a simple text input object named
> “enCompany”.
On May 1, 2020, at 2:23 PM, Kirk Brooks via 4D_Tech <4d_tech@lists.4d.com>
wrote:
>
> On Fri, May 1, 2020 at 11:14 AM James Crate via 4D_Tech <
> 4d_tech@lists.4d.com> wrote:
>
>> The problem with this approach, as others have mentioned, is that you can
>> no longer use object name prefixes to s
Jim,
On Fri, May 1, 2020 at 11:14 AM James Crate via 4D_Tech <
4d_tech@lists.4d.com> wrote:
> The problem with this approach, as others have mentioned, is that you can
> no longer use object name prefixes to show/hide/enable/etc groups of form
> objects.
>
Why do you say that?
In v18R2 I'm usin
On May 1, 2020, at 10:07 AM, John DeSoi via 4D_Tech <4d_tech@lists.4d.com>
wrote:
> Here is an idea which seems to work, but needs more evaluation. What if you
> named the form object with the property path in the form data? Even if
> periods are not allowed (they seem to be), another character
Here is an idea which seems to work, but needs more evaluation. What if you
named the form object with the property path in the form data? Even if periods
are not allowed (they seem to be), another character could be used. I think the
maximum length of an object name is 255 characters which shou
On Apr 30, 2020, at 10:00 PM, Douglas von Roeder wrote:
> Another WTF is that you can’t iterate from the end of a collection to the
> start. You can reorder the collection and then run a For each loop but
> that’s a complete kludge. Dollars to doughnuts, 4D will eventually add a
> parameter to the
ems have 100% of their space already occupied by classic
> code
> >
> > The use of the Form object offers so much that I am resigned to let go
> of some generic code, not happy, but willing to pay that price.
> >
> > Lahav
> >
> > -Original Message--
D_Tech
> Sent: Thursday, April 30, 2020 5:51 PM
> To: 4D iNug Technical <4d_tech@lists.4d.com>
> Cc: Douglas von Roeder
> Subject: Re: Object notation replacement for use of Self in a script — v18
>
> Randy:
>
> "If there is such an issue trying to get object val
From: 4D_Tech <4d_tech-boun...@lists.4d.com> On Behalf Of Keisuke Miyako via
> 4D_Tech
> Sent: Thursday, April 30, 2020 3:20 PM
> To: 4D iNug Technical <4d_tech@lists.4d.com>
> Cc: Keisuke Miyako
> Subject: Re: Object notation replacement for use of Self in a script —
..@lists.4d.com> On Behalf Of Douglas von Roeder
> via 4D_Tech
> Sent: Thursday, April 30, 2020 5:51 PM
> To: 4D iNug Technical <4d_tech@lists.4d.com>
> Cc: Douglas von Roeder
> Subject: Re: Object notation replacement for use of Self in a script — v18
>
> Randy:
>
Hi Chris,
What we really need is a way to access a Form Object's "Variable or
Expression". There's a Command named "Object Get Data Source" which was
added in v14, but it only returns a Pointer if "Variable or Expression" is
a Variable. If it's an Expression it returns Nil.
If we could get the
Lahav
-Original Message-
From: 4D_Tech <4d_tech-boun...@lists.4d.com> On Behalf Of Douglas von Roeder
via 4D_Tech
Sent: Thursday, April 30, 2020 5:51 PM
To: 4D iNug Technical <4d_tech@lists.4d.com>
Cc: Douglas von Roeder
Subject: Re: Object notation replacement for use of Self
Randy:
"If there is such an issue trying to get object values to work right,
what’s the reason to use them at all?”
The new language is extremely powerful and I found it quite easy to pick up
(mostly). The fact that it doesn’t give us 100% backward compatibility is
not unexpected.
"I know everyon
> On Apr 30, 2020, at 4:43 PM, lists via 4D_Tech <4d_tech@lists.4d.com> wrote:
>
> OK, based on this design, we are back to using variables (or dynamic
> variables) for data entry of anything that needs any kind of processing done
> to it after an entry, having to load the values to these data
...
Lahav
-Original Message-
From: 4D_Tech <4d_tech-boun...@lists.4d.com> On Behalf Of Keisuke Miyako via
4D_Tech
Sent: Thursday, April 30, 2020 3:20 PM
To: 4D iNug Technical <4d_tech@lists.4d.com>
Cc: Keisuke Miyako
Subject: Re: Object notation replacement for use of Self in a sc
ug Technical <4d_tech@lists.4d.com>
Cc: kculotta
Subject: Re: Object notation replacement for use of Self in a script — v18
Sorry, meant to say the pointer that results from the Object Get name is to the
entity
> On Apr 30, 2020, at 3:59 PM, kculotta via 4D_Tech <4d_tech@lists.4d.
I can only share how I would design my user interface,
but in short, I would not have this problem
> (Object get name).prettyFormat()
and here's why.
I see that the form object should either be bound to (=managed automatically by
4D)
or divorced from (managed by me) its data source.
the obje
>
> But that is not quite what we need to be truly generic
>
> Lahav
>
> -Original Message-
> From: 4D_Tech <4d_tech-boun...@lists.4d.com> On Behalf Of kculotta via 4D_Tech
> Sent: Thursday, April 30, 2020 2:29 PM
> To: 4D iNug Technical <4d_tech@li
)]:=DoWhatever(Form[Object get
>>> name(object current)])
>>>
>>> But that is not quite what we need to be truly generic
>>>
>>> Lahav
>>>
>>> -Original Message-
>>> From: 4D_Tech <4d_tech-boun...@lists.4d.co
h
> Sent: Thursday, April 30, 2020 2:50 PM
> To: 4D iNug Technical <4d_tech@lists.4d.com>
> Cc: kculotta
> Subject: Re: Object notation replacement for use of Self in a script — v18
>
> Yes, I'm using it, but it really seems like an artificial way to get an
> entity fi
To: 4D iNug Technical <4d_tech@lists.4d.com>
Cc: kculotta
Subject: Re: Object notation replacement for use of Self in a script — v18
Yes, I'm using it, but it really seems like an artificial way to get an entity
field's displayed contents.
I'll explore your example.
Keith -
iNug Technical <4d_tech@lists.4d.com>
> Cc: kculotta
> Subject: Re: Object notation replacement for use of Self in a script — v18
>
> This example does not avoid having to carefully name form objects and the
> form object must have "matching" variable and object nam
Cc: kculotta
Subject: Re: Object notation replacement for use of Self in a script — v18
This example does not avoid having to carefully name form objects and the form
object must have "matching" variable and object names: variable entity.MyName
with its object name of "MyName&qu
>> -Original Message-
>> From: 4D_Tech <4d_tech-boun...@lists.4d.com> On Behalf Of Keisuke Miyako via
>> 4D_Tech
>> Sent: Wednesday, April 29, 2020 10:14 AM
>> To: 4D iNug Technical <4d_tech@lists.4d.com>
>> Cc: Keisuke Miyako
>>
This example does not avoid having to carefully name form objects and
the form object must have "matching" variable and object names: variable
entity.MyName with its object name of "MyName"
// the object method
a_test (OBJECT Get name(Object current))
// a_Test
$ent:=OBJECT Get pointer(Object n
4d.com> On Behalf Of Keisuke Miyako via
> 4D_Tech
> Sent: Wednesday, April 29, 2020 10:14 AM
> To: 4D iNug Technical <4d_tech@lists.4d.com>
> Cc: Keisuke Miyako
> Subject: Re: Object notation replacement for use of Self in a script — v18
>
> my feeling is that generic
I don’t wish to imply that I ‘prefer’ pointers; in fact, I am not using a
single process variable, interprocess variable, or any other ‘vestiges’ of 4D
Classic. I am ‘fully committed’ to object notation. I also use Storage
extensively for system-wide values, and really love it.
The problem I des
4d.com> On Behalf Of Keisuke Miyako
> via 4D_Tech
> Sent: Wednesday, April 29, 2020 10:14 AM
> To: 4D iNug Technical <4d_tech@lists.4d.com>
> Cc: Keisuke Miyako
> Subject: Re: Object notation replacement for use of Self in a script — v18
>
> my feeling is that generi
nal Message-
From: 4D_Tech <4d_tech-boun...@lists.4d.com> On Behalf Of Keisuke Miyako via
4D_Tech
Sent: Wednesday, April 29, 2020 10:14 AM
To: 4D iNug Technical <4d_tech@lists.4d.com>
Cc: Keisuke Miyako
Subject: Re: Object notation replacement for use of Self in a script — v18
my
my feeling is that generic coding is very much possible in object notation,
but we need to accept that the approach is different.
if you prefer to use pointers such as "Self",
I think it's best to avoid object notation,
at least if your goal is to make the code generic.
it's not a defect of ob
*OBJECT Get pointer*(Object named;"")
does return the Form object.
If you standardise your naming convention of the form field objects you
could determine the sub object and attribute you're looking for.
example:
FormObj_Wrap_Trim("en_company";"name")
FormObj_Wrap_Trim:
$vT_Object:=*$1*
$vT
quite simple actually, just get a pointer to the actual form element
in the object method just call:
OBJECT GET POINTER (object current)
you can even go one further und just put all that into the form method:
If (Form event code=On Data Change)
$p_entry:=OBJECT Get pointer(Object with fo
Generic programming of vars on a form is very complicated when one uses object
attributes for the data source.
For example, on screen you make a simple text input object named “enCompany”.
It’s data source is Form.en_Company.Name ( i.e. [Company]Name )
In ‘classic 4d”, where the data source w
61 matches
Mail list logo