Re: Need help identifying a crash source

2017-07-21 Thread Ronald Rosell via 4D_Tech
Kirk, something seems odd about this code. Toward the end you have: If ($key#"") QUERY([KVP];[KVP]key=$key;*) QUERY([KVP]; & ;[KVP]dir=$dir;*) QUERY([KVP]) End if That last Query([Table]) would bring up the query editor. I’ve never tried doing that at the end of a string of Query paramete

Need help identifying a crash source

2017-07-21 Thread Kirk Brooks via 4D_Tech
I need some ideas on a problem. I'm getting a crash when a method runs. The method itself isn't the issue, I think, because it gets called literally hundreds of times in a given session. Here it is: C_TEXT($1;$2;$dir;$key) $key:=$1 $dir:="" If (Count parameters=2) $dir:=$2 End if ASSERT($ke

Re: Use of Objects vs Global Variables (Was 'Arrays vs Objects...)

2017-07-21 Thread David Adams via 4D_Tech
On Sat, Jul 22, 2017 at 12:56 PM, John Baughman via 4D_Tech < 4d_tech@lists.4d.com> wrote: > Lacking a computer science background ...me too. > My point is that none of the hammers are evil nor should any “be avoided > like the plague”. Each has a place in my tool shed. I have a very basic > u

Re: Use of Objects vs Global Variables (Was 'Arrays vs Objects...)

2017-07-21 Thread John Baughman via 4D_Tech
I always get amused whenever the discussion on the NUG turns to the evils of global variables. Lacking a computer science background most of the discussions in this vain go way over my head. I am a self taught 4D guy who over the years, for reasons I know not why, have taken a minimalist approac

Re: Use of Objects vs Global Variables (Was 'Arrays vs Objects...)

2017-07-21 Thread Robert McKeever via 4D_Tech
I doubt that they would let you through customs, David. > On Jul 21, 2017, at 6:01 AM, David Adams via 4D_Tech <4d_tech@lists.4d.com> > wrote: > > On Fri, Jul 21, 2017 at 10:35 PM, Pat Bensky via 4D_Tech < > 4d_tech@lists.4d.com> wrote: > >> My 2 cents: >> >> According to a recent 4D blog entr

Re: Resizing Window in Code keeping Background Image centered

2017-07-21 Thread Robert Livingston via 4D_Tech
Thanks for jumping in, Tim. I am actually using V16 and so I generally use the V16 documentation. But the link that Keisuke provided me to explain RESIZE FORM WINDOW happened to be a link to V15.4 documentation, immediately before CALL FORM arrived on the scene. So I was in that link when I the

Re: Put a button in an email that won't open a web page

2017-07-21 Thread Jim Labos - infobase via 4D_Tech
My bad I misunderstood your question. It seems what you want is for the user to be able to click on the button in the email and only sent an email and be taken to a webpage that first time. After that any click on button in the email would only send an email. Yes the URL will send the user to a b

Re: [off] Age bracket of this group (USA) :)

2017-07-21 Thread Tom Dillon via 4D_Tech
Chip Scheide via 4D_Tech wrote: >Robert Fripp, and King Crismon are touring! They're playing with Trapeze here in Moab. Or maybe I've just been out in the sun too much this summer. -- -- Tom Dillon

Re: [off] Age bracket of this group (USA) :)

2017-07-21 Thread Chip Scheide via 4D_Tech
BTW - one of my favorite eno albums : My life in the bush of ghosts https://www.youtube.com/watch?v=JOXbk1GYkxE particularly : The Jezebel spirit (safe for work) https://www.youtube.com/watch?v=Ifriiv3DIw8 (Video NSFW official video) https://www.youtube.com/watch?v=FWQdKkk4Xr0 On Sat, 22 Jul 201

Re: Put a button in an email that won't open a web page

2017-07-21 Thread Jim Hays via 4D_Tech
Hi Jim, How do you avoid responding with a web page? Can you give a simple example for me to start with? For example, the first time they click the Confirm button in an email, we might still open a web page to give them some feedback. Then, they can decide they don't want the extra feedback of th

Re: Put a button in an email that won't open a web page

2017-07-21 Thread Jim Labos - infobase via 4D_Tech
Without knowing the details of what you are doing I can only say that the button will just act like any URL to a server. What you do with the URL and respond to it is entirely up to how the server responds. I regularly send out emails with buttons linked to a URL. I use 4D Webserver and trap the U

RE: Resizing Window in Code keeping Background Image centered

2017-07-21 Thread Timothy Penner via 4D_Tech
> CALL FORM is capitalized so as to suggest to me that it is a command in 4D. > But I can find no such command. CALL FORM is a v16 command (first created in v15R5): http://livedoc.4d.com/4Dv16/help/Command/en/page1391.html -Tim **

RE: [off] Age bracket of this group (USA) :)

2017-07-21 Thread Dennis, Neil via 4D_Tech
> here come the warm jets - full album I must be younger of the older group... I think I was 4 when this album was released :) Neil -- Privacy Disclaimer: This message contains confidential information and is intended only for the named addressee. If you are not the named addressee you sho

Re: Use of Objects vs Global Variables (Was 'Arrays vs Objects...)

2017-07-21 Thread Kirk Brooks via 4D_Tech
Nigel, Nice post. I very much agree with pretty much all your points. A few things I'll add: Functions: yes! A lot of IP vars I see in old code are used to make values available that used to take measurable time to derive. Lots of them can be replaced with a short function to just go get the curre

Re: [off] Age bracket of this group (USA) :)

2017-07-21 Thread Chip Scheide via 4D_Tech
btw - here : https://www.youtube.com/watch?v=efnAzvDw_nw here come the warm jets - full album :) On Sat, 22 Jul 2017 01:51:51 +1000, David Adams via 4D_Tech wrote: >> Robert Fripp, and King Crimson are touring! > > Chip, > > Dang, that takes me back. Amazing guitar player in concert..but I hav

Re: [off] Age bracket of this group (USA) :)

2017-07-21 Thread Chip Scheide via 4D_Tech
tickets went on (pre) sale here this morning at 9am for Nov 20th show I bought at about 10:30 - mostly sold out already probably sold out by the time the public offering is available. On Fri, 21 Jul 2017 09:59:14 -0400, Chip Scheide via 4D_Tech wrote: > To all, > Since the age bracket of this gro

Re: [off] Age bracket of this group (USA) :)

2017-07-21 Thread Chip Scheide via 4D_Tech
I do know that song and album :) love it! Chip On Sat, 22 Jul 2017 01:51:51 +1000, David Adams via 4D_Tech wrote: >> Robert Fripp, and King Crimson are touring! > > Chip, > > Dang, that takes me back. Amazing guitar player in concert..but I haven't > seen him in any lineup since the 1980's. Ton

Re: [off] Age bracket of this group (USA) :)

2017-07-21 Thread Kirk Brooks via 4D_Tech
Some friends saw them here recently and said the show was very good. The album they are supporting is on iTunes - you can stream it with a subscription. Esp. interesting as I'm reading Weigel's book, "the Show That Never Ends." Cranky, perfectionistic old bastard Fripp - would fit right in here. O

Re: [off] Age bracket of this group (USA) :)

2017-07-21 Thread David Adams via 4D_Tech
> Robert Fripp, and King Crimson are touring! Chip, Dang, that takes me back. Amazing guitar player in concert..but I haven't seen him in any lineup since the 1980's. Tony Levin is great on base, of course. Fripp grew up on Polka music, which explains (in part) why his guitar sound is so unusual.

[off] Age bracket of this group (USA) :)

2017-07-21 Thread Chip Scheide via 4D_Tech
To all, Since the age bracket of this group falls into the correct range... Those of you in the US might want to know, and check your local listings Robert Fripp, and King Crismon are touring! (and apparently have been touring for most of this year. Band line up: Robert Fripp (well... everything

Re: Use of Objects vs Global Variables (Was 'Arrays vs Objects...)

2017-07-21 Thread David Adams via 4D_Tech
> if you have 3 ways to do something I'd go with the way I found easiest and, ideally, made the simplest to understand code. If one of the choices was obviously stupid or inefficient, I'd probably skip it. But, honestly, clear code is super important. I'll leave the fancy stuff for when it's neede

Re: Use of Objects vs Global Variables (Was 'Arrays vs Objects...)

2017-07-21 Thread Peter Jakobsson via 4D_Tech
On 21 Jul 2017, at 16:48, David Adams via 4D_Tech <4d_tech@lists.4d.com> wrote: > * No. You do not need classes. Modules do not require OOP, OO came out of > earlier work and embraced modules and extended them. I'm just talking about > module-level scope and data hiding, not OO Ok, you could be

Re: Use of Objects vs Global Variables (Was 'Arrays vs Objects...)

2017-07-21 Thread David Adams via 4D_Tech
Hey Peter, just a quick response to a couple of things: * Don't really know what you mean by 3G and 4G languages. If memory serves me, this was more of a marketing term from the 1980s or so than any kind of real technical distinction. * No. You do not need classes. Modules do not require OOP, OO

Re: Use of Objects vs Global Variables (Was 'Arrays vs Objects...)

2017-07-21 Thread Peter Jakobsson via 4D_Tech
Well, I’m afraid I’ll have to take the pariah role here and politely disagree with you all :-)) - or at least present an alternative perspective in which “globals” play a very powerful and unique part. Lets think this all through for a moment. As is relevant to this topic, we can notionally co

Re: Put a button in an email that won't open a web page

2017-07-21 Thread Jim Hays via 4D_Tech
Hi Lutz, I agree completely - having the short message pop up is good instant feedback. And although the email is sent immediately, you never know if it might be delayed or blocked. I've made this argument with the customer, but I didn't think of the possibility of delayed or blocked email, which

Re: Use of Objects vs Global Variables (Was 'Arrays vs Objects...)

2017-07-21 Thread Chip Scheide via 4D_Tech
On Fri, 21 Jul 2017 23:01:56 +1000, David Adams via 4D_Tech wrote: > let's take a moment to > remember that speed only matters when things are slow. true. BUT... if you have 3 ways to do something 1 - this works, but takes X time 2 - this works too, take a bit more coding, but takes X/2 time 3 - t

Re: Use of Objects vs Global Variables (Was 'Arrays vs Objects...)

2017-07-21 Thread David Adams via 4D_Tech
On Fri, Jul 21, 2017 at 10:35 PM, Pat Bensky via 4D_Tech < 4d_tech@lists.4d.com> wrote: > My 2 cents: > > According to a recent 4D blog entry, using the new object notation option > will speed up your objects significantly: > Sounds great! Before this becomes the new "for loops are faster", let'

Re: Use of Objects vs Global Variables (Was 'Arrays vs Objects...)

2017-07-21 Thread Pat Bensky via 4D_Tech
My 2 cents: According to a recent 4D blog entry, using the new object notation option will speed up your objects significantly: "Good news, now you have a mean to get rid of all those OB Get and OB SET

Re: Use of Objects vs Global Variables (Was 'Arrays vs Objects...)

2017-07-21 Thread David Adams via 4D_Tech
Nigel, Wow! I haven't read your whole post yet and I look forward to going through it when I have more time and brain power. Just a few quick notes: * Globals are bad. Because science. * 4D's approach to scope iseccentric. * "Global" means "global to all code in the system", which doesn't

Re: Use of Objects vs Global Variables (Was 'Arrays vs Objects...)

2017-07-21 Thread Nigel Greenlee via 4D_Tech
Global Variables. Regardless of the relative merits of Arrays vs Object. I would like to relay my dislike in general of Global variables. I have been working with 4D since before the concept existed-since 4D V2(Globals came in with V3). Yes i am one of the old boys. Back then we did not have m

RE: Put a button in an email that won't open a web page

2017-07-21 Thread Epperlein, Lutz (agendo) via 4D_Tech
Hi Jim, Sorry if this this is not a very helpful answer for you, but .. I think it isn't a very good idea to have a button (in an email or whatever) the user have to press and nothing happens immediately. Some seconds, minutes, hours later the user gets the answer, usually he doesn't realize wh