Re: Calculate values of arrays...

2021-11-01 Thread Kirk Brooks via 4D_Tech
>> You do know what an ARRAY is? Did you go look at the page? On Mon, Nov 1, 2021 at 12:36 PM Jörg Knebel via 4D_Tech < 4d_tech@lists.4d.com> wrote: > > > > On 02 /11 /2021, at 02:24, Joshua Hunter via 4D_Tech < > 4d_tech@lists.4d.com> wrote: > > > > You want the docs for 'On a Series' > >

Re: I'm puzzled...

2021-10-27 Thread Kirk Brooks via 4D_Tech
>> It is time for 4D to declare in detail what direction the kangaroo is hoping to give people the chance to make the right decision on time. That train left the station a long time ago. It's as done as the Power PC. 4D has clearly stated binary will be supported for the foreseeable future but

Re: Where is the trace/debug command?

2021-10-04 Thread Kirk Brooks via 4D_Tech
It's probably not a trace but an error. What's iLB_Hook? Sounds like something there. On Mon, Oct 4, 2021 at 10:59 AM Paul Chernoff via 4D_Tech < 4d_tech@lists.4d.com> wrote: > I am porting some 4D databases from v18.5 to v19.2. What is odd is that > some iLB_Hook procedures are triggering

Re: Living past "End of support"

2021-09-30 Thread Kirk Brooks via 4D_Tech
Rob Here are my thoughts about upgrading. 1) do you own the source code? If so you have the flexibility to update if you want/need to. Whether you do it yourself or hire someone you have the options. If you are running a compiled or built app you will have to interact with the developer. 2) are

Re: Syntax Error in a Compiled Database

2021-09-10 Thread Kirk Brooks via 4D_Tech
e will be more information available in a log > file the next time it occurs. > > Thanks for your assistance. > > Eric > On Sep 9, 2021, at 8:20 PM, Kirk Brooks via 4D_Tech wrote: > > > Eric, > > Sounds like some sort of run time error. Most likely caused when some

Re: Syntax Error in a Compiled Database

2021-09-09 Thread Kirk Brooks via 4D_Tech
Eric, Sounds like some sort of run time error. Most likely caused when some unexpected data type is attempting to be read into an array (one of the arrays managed by a pointer and gets the warning). Running interpreted 4D is very robust as fixing these sort of data type errors but running compiled

Re: [EXTERNAL] Re: Run v15.4 in demo mode

2021-08-25 Thread Kirk Brooks via 4D_Tech
You should be able to open the uncompiled version using whatever version you are using now. You may lose some plugins or components but if all you need is access to data that won't really matter. On Wed, Aug 25, 2021 at 1:56 PM Perkins, Bradley D via 4D_Tech < 4d_tech@lists.4d.com> wrote: > Hi

Re: v15 and any Mac OS newer then 10.13

2021-07-21 Thread Kirk Brooks via 4D_Tech
Hey Chip, It will run on Mojave but not Catalina (10.15). On Wed, Jul 21, 2021 at 10:22 AM nug via 4D_Tech <4d_tech@lists.4d.com> wrote: > Will v15 client run on Mac OS > 10.14? > 10.15? > 11? > > Thanks > Chip > ** > 4D

Re: why is a global boolean not changing

2021-07-14 Thread Kirk Brooks via 4D_Tech
The scope of an IP variable is the machine that it runs on. You are setting the IP variable in a form on the client machine so it only exists on that machine. On web connect runs on the server (most likely) so it doesn't share the same IP vars as the client. This is the same situation with

Re: PING of life...

2021-01-16 Thread Kirk Brooks via 4D_Tech
Arnaud - is that the one labeled: "Camus"? On Sat, Jan 16, 2021 at 5:18 AM Arnaud de Montard via 4D_Tech < 4d_tech@lists.4d.com> wrote: > > > Le 15 janv. 2021 à 16:54, Neil Dennis via 4D_Tech <4d_tech@lists.4d.com> > a écrit : > > > > My last complaint, and it is minor is that I use dark mode on

Re: MILLISECONDS

2020-11-08 Thread Kirk Brooks via 4D_Tech
Ferdinando, > Yes i've need of millesconds these logs is for check the instruments communication. Try this: $ms:=Milliseconds // communicate with instruments $ms:=Milliseconds - $ms $ms is now the delta of when you started. I'm sure you have thought about these things but _where_ you

Re: "Optimal" 4D Server hardware

2020-09-11 Thread Kirk Brooks via 4D_Tech
David, I invite you to check out the new 4D forum at https://discuss.4d.com/ It's a huge improvement over the old forum and this list. Plus a lot more people are active there. But to your point Tom and Randy are both giving you solid advice. I will add that my experience with 4D server is the one

iNug archives are available at the 4D Knowledgebase

2020-08-04 Thread Kirk Brooks via 4D_Tech
A lot of us have built our own database of postings here. My own is in this gmail account and stretches back to 2006. However, you can also search even further back at the KB; https://kb.4d.com/ Note the sidebar on the right: Knowledge Base Articles/iNug Messages. -- Kirk Brooks San Francisco,

Re: Change list values in a listbow coloumn

2020-08-03 Thread Kirk Brooks via 4D_Tech
Ferdinando, > a list when the mouse enter in every row First, do you want: a- the list to automatically popup when the user enters the row b- the list to popup when the user right clicks on the row 'a' is going to be harder to do. Start with enabling the On mouse enter and On mouse exit form

Hey nug - it's Happy Hour

2020-05-29 Thread Kirk Brooks via 4D_Tech
Anyone still around here? If so, knock off for a bit and come hang out with us: https://us02web.zoom.us/j/83731433887?pwd=T1B2UlErek1sRHRrNnYrV1lWYVF0QT09 Going on now -- Kirk Brooks San Francisco, CA == **

Re: Pluggers XL_Plugin Format Question

2020-05-27 Thread Kirk Brooks via 4D_Tech
Ken, Don't hesitate to email Rob if you have a question. I have always found him willing to answer questions. It may take a day but he always gets back to me. On Wed, May 27, 2020 at 7:54 PM Ken Eyring via 4D_Tech <4d_tech@lists.4d.com> wrote: > Thanks for responding Doug. > > I looked at the

Re: Generic code for entity selection projection

2020-05-11 Thread Kirk Brooks via 4D_Tech
Hi Steve, A couple of things to consider. You mention working with an 'entity selection' but then get into talking about collections. To create a collection from an entity selection, or only some properties of it, take a look at .toCollection().

Re: 4D Friday Happy Hour on ZOOM

2020-05-08 Thread Kirk Brooks via 4D_Tech
com> wrote: > Hi guys, > > I saw it too late … but I think this is a great idea! when is the next > Happy Hour? > > > Regards, > > Rudy Mortier > Two Way Communications bv > > > > > > On 23 Apr 2020, at 21:53, Kirk Brooks via 4D_Tech <4d_tech@

Re: iNUG Messages ― Is it time for it to be more than just 'plain text' ???

2020-05-07 Thread Kirk Brooks via 4D_Tech
Paul, On Thu, May 7, 2020 at 2:15 AM Paul Dennis via 4D_Tech <4d_tech@lists.4d.com> wrote: > It would be really useful if 4D were able to archive this > list plus the old 4D forum. Check out the KB: https://kb.4d.com/ In the sidebar on the right, top: "iNug Messages" -- Kirk Brooks San

Re: Object notation replacement for use of Self in a script — v18

2020-05-01 Thread Kirk Brooks via 4D_Tech
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

Re: Object notation replacement for use of Self in a script — v18

2020-05-01 Thread Kirk Brooks via 4D_Tech
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

Re: Object notation replacement for use of Self in a script — v18

2020-05-01 Thread Kirk Brooks via 4D_Tech
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”.

Re: Object notation replacement for use of Self in a script — v18

2020-05-01 Thread Kirk Brooks via 4D_Tech
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

4D Friday Happy Hour on ZOOM - Again! May 1 @ 3:30 PM PDT / 6:30 PM EDT

2020-04-30 Thread Kirk Brooks via 4D_Tech
Hi folks, Last week was fun so we're doing it again tomorrow. >> Please note I pushed the start time back half an hour 'cause 3 is a little early over here on the left coast. It is a work day, after all. Topic: 4D Friday Happy Hour Time: May 1, 2020 03:30 PM Pacific Time (US and Canada) Join

Re: Multple windows within the same process

2020-04-29 Thread Kirk Brooks via 4D_Tech
Pat, To expand a little on the other comments for you to be able to _keep_ windows open when you use the * they must be opened from an existing window. Otherwise they pop open and then close again. Another difference is when you call DIALOG("myForm";*) the method doesn't stop with DIALOG. It

Re: 4D Friday Happy Hour on ZOOM

2020-04-24 Thread Kirk Brooks via 4D_Tech
Lo! I was thinking about you the other day - recalling you stopping by in '16. On Fri, Apr 24, 2020 at 7:37 AM Lo via 4D_Tech <4d_tech@lists.4d.com> wrote: > Hi Kirk > > Yes, some people are just born one beer below normal. > Plenty of time to get that sorted... > > Love and kisses > Lo > > >

Re: 4D v18 — Need methodology to

2020-04-24 Thread Kirk Brooks via 4D_Tech
Hi Chris, On Fri, Apr 24, 2020 at 1:54 AM Chris Belanger via 4D_Tech < 4d_tech@lists.4d.com> wrote: > • Loading a system document into a BLOB, then using BASE64 ENCODE to store > it in a TEXT field; Out of curiosity why not simply blob the document into a blob field? Even if it's a temporary

Re: 4D Friday Happy Hour on ZOOM

2020-04-24 Thread Kirk Brooks via 4D_Tech
Damn - it's that off-by-one problem again... On Thu, Apr 23, 2020 at 10:03 PM Aparajita Fishman via 4D_Tech < 4d_tech@lists.4d.com> wrote: > I may be missing something, but isn’t 3 PM PDT = 6 PM EDT? > > All the best, > > - Aparajita > > > On Apr 23, 2020, at 7:33 PM,

Re: 28 character file name limit for binhex encode SMTP_attachments?

2020-04-23 Thread Kirk Brooks via 4D_Tech
Um - ooops! The place on Miyako's youTube I was referring to is at 21:49. Sorry. On Thu, Apr 23, 2020 at 12:02 PM Kirk Brooks wrote: > If you haven't already take a look at Miyako's presentation: > https://www.youtube.com/watch?v=uEtkh8ePDj0 > Specifically he talks about the new transporter

Re: 4D Friday Happy Hour on ZOOM

2020-04-23 Thread Kirk Brooks via 4D_Tech
; W. C. Fields > > > On Fri, 24 Apr 2020 at 04:37, Kirk Brooks via 4D_Tech < > 4d_tech@lists.4d.com> > wrote: > > > Hey folks, > > > > I’m hosting a 4D Friday Happy Hour tomorrow on ZOOM: > > https://zoom.us/j/91959066132 > > > > Starts

Re: 28 character file name limit for binhex encode SMTP_attachments?

2020-04-23 Thread Kirk Brooks via 4D_Tech
If you haven't already take a look at Miyako's presentation: https://www.youtube.com/watch?v=uEtkh8ePDj0 Specifically he talks about the new transporter starting at 27:30 On Thu, Apr 23, 2020 at 11:56 AM Randy Jaynes via 4D_Tech < 4d_tech@lists.4d.com> wrote: > Yes. > > This is a long-standing

4D Friday Happy Hour on ZOOM

2020-04-23 Thread Kirk Brooks via 4D_Tech
Hey folks, I’m hosting a 4D Friday Happy Hour tomorrow on ZOOM: https://zoom.us/j/91959066132 Starts at 3PM PDT (7 EDT) and will go until I fall asleep or everyone leaves. It’s not as good as hanging out together at the Summit but let’s share what we’re drinking, say hello, laugh at some

Re: 4D Summit Videos

2020-04-23 Thread Kirk Brooks via 4D_Tech
I have watched a number of them. The introduction of actual classes that Laurent Ensault discusses are in v18 beta (or v18r3, I think) and they haven't got the new beta situation sorted out yet. A lot of folks have asked. Very exciting new directions though much (most / all?) of these

Re: Anyone used Twilio SMS?

2020-04-17 Thread Kirk Brooks via 4D_Tech
gt; From: 4D_Tech [mailto:4d_tech-boun...@lists.4d.com] On Behalf Of Kirk > Brooks via 4D_Tech > Sent: Wednesday, April 15, 2020 8:12 AM > To: 4D iNug Technical <4d_tech@lists.4d.com> > Cc: Kirk Brooks > Subject: Anyone used Twilio SMS? > > I'm looking for some feed

Re: Long running reports to disk intermittently disrupted and fail

2020-04-16 Thread Kirk Brooks via 4D_Tech
John, On Thu, Apr 16, 2020 at 1:39 PM John J Foster via 4D_Tech < 4d_tech@lists.4d.com> wrote: > Right now there’s a specific computer where these reports are run from at > the end of each month. And yes they need to run at the end of the last day > of the month and before any new data has been

Re: Long running reports to disk intermittently disrupted and fail

2020-04-16 Thread Kirk Brooks via 4D_Tech
John, I agree with Jim: separate the creation of the file from moving the file to the network. A lot has changed in the last 20 years or so with the way network access is managed and old code like this that looks at a network address as equivalent to a local disk are problematic. We ran into this

Anyone used Twilio SMS?

2020-04-15 Thread Kirk Brooks via 4D_Tech
I'm looking for some feedback and any code you are willing to share. Thanks -- Kirk Brooks San Francisco, CA == ** 4D Internet Users Group (4D iNUG) Archive: http://lists.4d.com/archives.html Options:

Re: 4D Server v18.1LTS - Startup Takes 10-15 Minutes

2020-04-10 Thread Kirk Brooks via 4D_Tech
Tim, This is great info. Thanks for testing it out. On Fri, Apr 10, 2020 at 10:57 AM Tim Nevels via 4D_Tech < 4d_tech@lists.4d.com> wrote: > I also tested editing the text of a method with TextEdit while the Project > was open on 4D Server. The method was not open with 4D Remote. In fact no > 4D

Re: 4D Server v18.1LTS - Startup Takes 10-15 Minutes

2020-04-10 Thread Kirk Brooks via 4D_Tech
This is what I found also. Thinking about it you can see how it makes sense - a Project is simply a collection of text files. They can be edited by 4D Method Editor or a text editor at the same time. On your local machine that's manageable, desirable, but on the server it would be a nightmare. I

Re: Longitude Index: B-Tree or Cluster

2020-04-10 Thread Kirk Brooks via 4D_Tech
John, If absolute raw speed is what you are looking for I would break each value into whole numbers - the integer and the decimal and store them separately as longints. Index the integer with a b-tree and the decimal with a cluster. You sacrifice space (maybe - haven't really done the math on 2

Re: Where Are All The Steppers And Spinners?

2020-04-02 Thread Kirk Brooks via 4D_Tech
On Wed, Apr 1, 2020 at 8:36 PM Tom Benedict via 4D_Tech < 4d_tech@lists.4d.com> wrote: > For some reason I was under the impression that using project mode was > optional. > You know it's actually a little more involved. There are some real trade offs to think about. There are a number of

Re: Text Editor Which Knows 4D Tags?

2020-03-26 Thread Kirk Brooks via 4D_Tech
Tom, VS Code is pretty good too. And there's an add on for 4D. It won't give you the the intelligence of the method editor (eg. linking to another method) but it will show the code blocks like you describe. Plus it's just a more full featured text editor. On Thu, Mar 26, 2020 at 2:22 PM Tom

Re: Programmatically change the number format?

2020-03-15 Thread Kirk Brooks via 4D_Tech
You treat each of the column objects separately. So let's say your columns are named "col_1", "col_2" and so on. (This is the object name.) Use OBJECT SET FORMAT to manage the formatting from there. https://doc.4d.com/4Dv17/4D/17.4/OBJECT-SET-FORMAT.301-4882942.en.html On Sun, Mar 15, 2020 at

Re: Query peculiarity in v17? Or normal?

2020-03-14 Thread Kirk Brooks via 4D_Tech
Yes, that's correct. Keep in mind that QUERY([Table2]; [ Table2] Link_T1_ID =[ Table1] T1_ID) evaluates [Table1]t1_id when the line is executed. If there is no current record for Table1 it evaluates to zero so the query is looking for Table2 link fields with a value of zero. On Sat, Mar 14,

Re: How can one REDRAW a SUBFORM that uses a OBJECT as its 'variable or expression'?

2020-03-10 Thread Kirk Brooks via 4D_Tech
Hi Chris, What's going on in the subform that's not updating? On Tue, Mar 10, 2020 at 12:05 PM Chris Belanger via 4D_Tech < 4d_tech@lists.4d.com> wrote: > 4D continues to NOT QUITE truly and fully support its object notation, and > the inability to get a pointer to an object attribute continues

Re: JSON File To Object

2020-03-07 Thread Kirk Brooks via 4D_Tech
Steve, $text:=Document to text() $obj:=JSON Parse($text) On Sat, Mar 7, 2020 at 1:43 PM Stephen J. Orth via 4D_Tech < 4d_tech@lists.4d.com> wrote: > I'm having a brain-fart and looking for the fastest way to get a JSON > formatted document imported and put into an object. > > Any insight would

Re: 64-Bit Quick Report related fields

2020-03-05 Thread Kirk Brooks via 4D_Tech
Doug, This just in: https://kb.4d.com/assetid=78424 I've heard it said Catalina is the Vista of MacOS. And I am a Mac guy, btw. Having said that I don't see anything in the Tech Tip that relates to the Quick Report Editor. On Thu, Mar 5, 2020 at 12:03 PM Doug Hall via 4D_Tech

Anyone have experience working with EdExpress?

2020-02-18 Thread Kirk Brooks via 4D_Tech
I have a project with a small private college that needs to interface with EdExpress. If anyone has experience I would very much appreciate hearing from you. I have none at the moment so even a little suggestion about how to get started will be appreciated. Either here or off list. Thanks! --

Re: Entity Selection Listbox with Image

2020-02-14 Thread Kirk Brooks via 4D_Tech
Hi Doug, I did exactly this with a listbox recently. In my case the pictures involved are thumbnails of students represented in the listbox. The thumbnails are stored in a table related to the Student table. At first I thought I'd have to do something tricky to make it work but they simply appear

Re: What is equivalent to SELF when a form object's "variable or expression" is an object attribute?

2020-02-04 Thread Kirk Brooks via 4D_Tech
Chris, On Tue, Feb 4, 2020 at 12:58 PM Chris Belanger via 4D_Tech < 4d_tech@lists.4d.com> wrote: > // The ‘field’ that needed to be updated with the KEY of the selected > option would be something like: // > Form.en_edit.contact // which, say, translates to [Company]contact in > classic 4D > >

Re: What is equivalent to SELF when a form object's "variable or expression" is an object attribute?

2020-02-04 Thread Kirk Brooks via 4D_Tech
Chris, For a listbox the equivalent of 'self' is the Current Item Datasource. Let's say that is Form.LB.currentItem in keeping with your example. (It could be something else just as well.) This is the object that corresponds to the listbox row generally speaking. So you could have a method that

Re: SDI or MDI

2020-01-31 Thread Kirk Brooks via 4D_Tech
Paul, On Thu, Jan 30, 2020 at 12:40 PM Tim Nevels via 4D_Tech < 4d_tech@lists.4d.com> wrote: > If you are a Windows user that has multiple monitors and you like to use > all of your monitors for any window you want, then MDI is a severely > limiting user interface. You are limited to only using

Re: Reading and writing large arrays to disk

2020-01-06 Thread Kirk Brooks via 4D_Tech
Peter, I agree with Chuck here - writing a line at a time is slow. It's very secure though. So it's good if you may crash - whatever has already been written stays written to disk. But otherwise better to buffer some and then write. After looking at the link Arnaud posted it looks like

Re: gitignore for projects

2020-01-06 Thread Kirk Brooks via 4D_Tech
Mike, To your original question about which files to ignore I drop all the MacOS specific files (obviously). The RESOURCES folder is placed outside the Project folder. Data, Components and Plugins are too. So the actual folder I make the git repo is the database folder. Project folder is really

Re: Reading and writing large arrays to disk

2020-01-05 Thread Kirk Brooks via 4D_Tech
Miyako, Nice explanation. More or less - where do you think the inflection point is where simple text concatenation becomes less efficient than adding the text to a BLOB? On Sun, Jan 5, 2020 at 8:20 PM Keisuke Miyako via 4D_Tech < 4d_tech@lists.4d.com> wrote: > concatenation of text is

Random normal distribution values

2019-12-24 Thread Kirk Brooks via 4D_Tech
Who doesn't like an(other) discussion about random numbers? I reading an article on Monte Carlo simulations and came across a method for getting a random value from a standard normal distribution. (The standard normal distribution is the familiar bell curve where the mean is 0 and the standard

Re: 4D Write Pro Table Printing

2019-12-16 Thread Kirk Brooks via 4D_Tech
David, Have a look here: https://blog.4d.com/table-pagination-in-4d-write-pro/ The good news is it sounds like the pagination stuff is available but (bad news) it's 17r2+. However, we've found 17r6 to be very stable. So it may be the solution you need. On Mon, Dec 16, 2019 at 7:08 AM BTB-David

Re: 4D v17 To QuickBooks Using Miyako's QBO.4DB

2019-12-13 Thread Kirk Brooks via 4D_Tech
Hi Ken, Reading through your messages you don't mention if you are accessing QBO (quickbooks online) or the desktop version. As I recall Myle's product only accessed the desktop version - but that a really old memory. On Fri, Dec 13, 2019 at 2:34 PM Ken Eyring via 4D_Tech <4d_tech@lists.4d.com>

Re: Constants in code.

2019-12-09 Thread Kirk Brooks via 4D_Tech
Eric, I'll add a vote for Cannon's code for creating constant XLIF files. I really like being able to add comments to what the constants are for in the code. You just can't do that with the 4DPOP component. On Mon, Dec 9, 2019 at 9:55 AM Eric Naujock via 4D_Tech < 4d_tech@lists.4d.com> wrote: >

Re: ORDA RELATE MANY SELECTION

2019-12-06 Thread Kirk Brooks via 4D_Tech
Keith, Neil is dead on in the case of RELATE MANY - you can access this directly from the entity via the name of the relation. But you are asking about RELATE MANY SELECTION where you have a selection of one-records and you want a selection of all the many-records. Your example works fine -

Re: Trapping the 'return' key in list forms

2019-12-02 Thread Kirk Brooks via 4D_Tech
Hey Peter, I was just reading through your question and the answers and I noticed the solutions get sort of complicated. I think the reason is the task you're describing a little unusual. Having one keystroke, the return key, perform two very different actions can result in a non-intuitive UI.

Re: Subform get record info when click on row

2019-11-23 Thread Kirk Brooks via 4D_Tech
Gary, v17 is great. So, the first thing I would suggest is to think about using a listbox instead of output subform. Unless you have some really complicated implementation of an output subform (like here https://forums.4d.com/Post/EN/32395457/1/32395458) I doubt there's much to be gained using

Re: Subform get record info when click on row

2019-11-23 Thread Kirk Brooks via 4D_Tech
Gary, What version are you working on? On Sat, Nov 23, 2019 at 3:57 PM Garri Ogata via 4D_Tech < 4d_tech@lists.4d.com> wrote: > Greetings, > > I have an output subform (list, selection mode none, enterable in list), > that I want to get the record clicked on when a user clicks in a field >

Re: CURL SFTP issues with SSH

2019-11-21 Thread Kirk Brooks via 4D_Tech
Hey Peter, I can't give you the specific answer but if you haven't already I'd recommend installing Postman . How that may help you is you can look at exactly what is being sent and received from the destination. The first thing I'd do is capture the traffic with

Re: Sheets on Windows

2019-11-19 Thread Kirk Brooks via 4D_Tech
Hey John, This might help. You pass an object with the various params and it will open a new window within the bounds of whatever window you call it in. You can futz with the padding at the top to get it lined up the way you want. And looking at it it could be freshened up to dot notation...

Re: Selection Based ListBox - How do I extract and apply values to a single cell?

2019-11-13 Thread Kirk Brooks via 4D_Tech
Hi Bob, On Wed, Nov 13, 2019 at 9:59 AM Bob Miller via 4D_Tech <4d_tech@lists.4d.com> wrote: > The example in the docs doesn't help me understand what you mean about > using Form with a listbox. > Can you step through a little example of how Form would help in this case, > to control a listbox?

Re: Selection Based ListBox - How do I extract and apply values to a single cell?

2019-11-12 Thread Kirk Brooks via 4D_Tech
Hi Kirk, What version are you using? If it's v16 or less think of the tasks you trying to accomplish in terms of the selection in the listbox instead of the cells. For the fill down example from the listbox you determine what field (column) you are working with then apply the changes to that

Re: ListBox - Possible to set choice list programmatically?

2019-11-11 Thread Kirk Brooks via 4D_Tech
Hi Kirk, I like to create menus the user invokes with a right click for this sort of thing. Enable the On click event in the listbox to catch it anywhere in the column (let's you create a menu with content specific to the cell, column or row clicked on) or use the On header click event to open

Re: Web Area not visible

2019-11-07 Thread Kirk Brooks via 4D_Tech
Mitch, Well I confirm that if you enable the web kit and don't have a url the area is blank. But if I set and load a url the are appears as expected. And in this configuration looks exactly the same as running without. On Thu, Nov 7, 2019 at 12:06 PM Mitchell Shiller via 4D_Tech <

Re: Web Area not visible

2019-11-06 Thread Kirk Brooks via 4D_Tech
Mitch, The web engine has been changed in 16r2 to Blink. https://kb.4d.com/assetid=77745 Are you able to run Chrome on this Mac? On Wed, Nov 6, 2019 at 12:03 PM Mitchell Shiller via 4D_Tech < 4d_tech@lists.4d.com> wrote: > Hi, > > MacOs 12.6 > 4D v17R6 > > Create a form. > Put a Web Area on

Re: Edit menu support in ListBoxes

2019-11-05 Thread Kirk Brooks via 4D_Tech
Peter, I do this with the Contextual click which indicates the user right-clicked. Catch the On click form event in the listbox and then test for Contextual click. Then you can easily construct a menu with whatever items you want. Here are some code snippets // ($form_object="itemGrid_listbox")

Re: A use case for C_VARIANT

2019-11-03 Thread Kirk Brooks via 4D_Tech
On Sun, Nov 3, 2019 at 2:21 PM Keisuke Miyako via 4D_Tech < 4d_tech@lists.4d.com> wrote: > finally, it would be more appropriate to discuss v18 features on the beta > forums: > > https://forums.4d.com/List_Message/JP:0/0/2/1/1/1/14234613/0/0/1/-1/0/0/0/0/0/0 > You are entirely correct. My bad.

A use case for C_VARIANT

2019-11-02 Thread Kirk Brooks via 4D_Tech
The v18 beta introduces a new variable type: variant. Not surprisingly there is already discussion about what it could possibly be useful for and why it doesn't have more capabilities. We are who we are. I have come across a clear case where it's a perfect solution. Consider a collection of text

Re: ORDA/Collections

2019-10-30 Thread Kirk Brooks via 4D_Tech
Justin, The replace string approach is not what you want to do. Editing strings and mapping data are not the same thing. You also want to avoid hard coding such maps. Any little change and you have to change code. A fairly easy way to manage what you need to do is save an entity as a stringified

Re: object searching vs Text

2019-10-22 Thread Kirk Brooks via 4D_Tech
Chip, This might be useful: https://developer.ibm.com/answers/questions/421044/how-to-write-regular-expression-for-nested-json-ev/ The sentiment in the last post, "...I don't know of a good way. Here is a bad way that might be enough" is echoed in a lot of the responses to similar questions I saw

Re: Determining object content types

2019-10-21 Thread Kirk Brooks via 4D_Tech
Chip, If you are using v15 OB SET ARRAY can set the native 4D arrays except for pointers, I think. So if you set a text array you can get a text array back. But the object property type is not concerned with the array type. As far as OB GET TYPE is concerned any array is an object array. In v17

Re: How one does RELATE MANY with ORDA

2019-10-21 Thread Kirk Brooks via 4D_Tech
Hi Peter, On Mon, Oct 21, 2019 at 12:32 AM Peter Bozek via 4D_Tech < 4d_tech@lists.4d.com> wrote: > I am plying with ORDA and LB displaying related records and run into one > problem: When I delete related record with drop(), entity selection > accessed through link does not change (probably

Re: Compiling for Windows and Mac

2019-10-18 Thread Kirk Brooks via 4D_Tech
Chuck, Nope. Compiled is compiled for either platform. As Miyako said you could indicate if you wanted 64 bit and there is the question of the variable definitions but aside from that 4D is wonderfully agnostic with regard to platform - at least at this level. On Fri, Oct 18, 2019 at 2:47 AM

Re: 4D Server Hosting - The Future ?

2019-10-12 Thread Kirk Brooks via 4D_Tech
. > I am thinking of putting more 4D databases on AWS. > > > Regards, > > Rudy Mortier > Two Way Communications bvba > > > > > On 10 Oct 2019, at 17:09, Kirk Brooks via 4D_Tech <4d_tech@lists.4d.com> > wrote: > > > > Peter, > > I am in the

Re: Make me smart about Write Pro

2019-10-12 Thread Kirk Brooks via 4D_Tech
Tom, On Sat, Oct 12, 2019 at 12:47 PM Tom Benedict via 4D_Tech < 4d_tech@lists.4d.com> wrote: > Another key concept to be aware of when working with Write Pro is that is > that features are additive. In Write Classic all its features were > available by default and you had to restrict or remove

Re: 4D Server Hosting - The Future ? & Using Github to Manage Distributed Development

2019-10-11 Thread Kirk Brooks via 4D_Tech
Hi JPR, i'm glad the 'Bat Signal' still works. On Fri, Oct 11, 2019 at 1:34 AM JPR via 4D_Tech <4d_tech@lists.4d.com> wrote: > Do you like Fairy Tales? > I thought that was the demo... > > So what you are saying is that if you are deploying 4D Server in a VM > there is not need to try and use

Re: Using Github to Manage Distributed Development

2019-10-10 Thread Kirk Brooks via 4D_Tech
Narinder & Tom, You can move the structure, including relations, out of Projects via the Export Structure to XML command and build a new database based on that. However this only exports the actual structure. Importing the methods from the Project folder is no big deal. The deal is getting the

Re: 4D Server Hosting - The Future ?

2019-10-10 Thread Kirk Brooks via 4D_Tech
Hey Tim, On Thu, Oct 10, 2019 at 10:43 AM Tim Nevels via 4D_Tech < 4d_tech@lists.4d.com> wrote: > So what you are saying is that if you are deploying 4D Server in a VM > there is not need to try and use preemptive mode. You get no benefit from > doing that. It’s a waste of time? That's what I

Re: 4D Server Hosting - The Future ?

2019-10-10 Thread Kirk Brooks via 4D_Tech
ake the bucket > bigger. > > Peter > > > > On 10 Oct 2019, at 16:09, Kirk Brooks via 4D_Tech <4d_tech@lists.4d.com> > > wrote: > > > > The other thing about VM vs metal is the whole pre-emptive process > > benefit basically goes away. Thomas Maul has

Re: 4D Server Hosting - The Future ?

2019-10-10 Thread Kirk Brooks via 4D_Tech
Peter, I am in the process of moving a database from our own hardware to and AWS instance. It's true that the most expensive part of setting it up, at this point, is getting the appropriate amount of band width and throughput speed. The other thing about VM vs metal is the whole pre-emptive

Re: File Decoding: EBCDIC

2019-10-07 Thread Kirk Brooks via 4D_Tech
Hi Bob, This was an interesting topic to look up. That data must be coming from a company running some very old main frame. If you haven't already looked at the Wikipedia entry for EBCDIC it's both informative (this goes straight back to punch cards) and humorous.

Re: v15 - Array Object and Append array

2019-10-03 Thread Kirk Brooks via 4D_Tech
Chip, On Thu, Oct 3, 2019 at 1:55 PM Chip Scheide via 4D_Tech < 4d_tech@lists.4d.com> wrote: > ok.. > why does this not work??? > > in a loop > For ($i;1;$Column_Count) > INSERT IN ARRAY($Columns;1) > OB SET($Columns{$i};) > You said you wanted to append an array so you would use: OB SET

Re: v15 - Array Object and Append array

2019-10-03 Thread Kirk Brooks via 4D_Tech
Chip, On Thu, Oct 3, 2019 at 1:26 PM Chip Scheide via 4D_Tech < 4d_tech@lists.4d.com> wrote: > is it possible to use append array with an object array? > No. But you can with collections. To accomplish what you are describing you would need to create an object, set the array to the object and

Re: Web aficionados - Not allow user to access file directly

2019-10-01 Thread Kirk Brooks via 4D_Tech
Randy, On Tue, Oct 1, 2019 at 9:05 AM Randy Engle via 4D_Tech <4d_tech@lists.4d.com> wrote: > Most of our customers are resistant to proxy servers > They think that we should be handling all of it. > Are these the same guys who do such a great job protecting themselves from ransom ware? --

Re: Web aficionados - Not allow user to access file directly

2019-10-01 Thread Kirk Brooks via 4D_Tech
Hey Randy, The optimal way to achieve this is to set up the website with a different web server functioning as the node publicly exposed to the internet. That server deals with all the authentication and heavy protection stuff 4D isn't very good at and communicates with your 4D server via API

Re: Another splitter question

2019-09-25 Thread Kirk Brooks via 4D_Tech
Piotr, listbox_1 | listbox_2 | listbox_3 listbox_1: horizontal resize = grow; vertical resize= grow (I assume) splitter_1: horizontal resize = none; vertical resize= grow listbox_2: horizontal resize = grow; vertical resize= grow splitter_2: horizontal resize = none; vertical resize= grow

Re: Custom Notepad++ Editor Style for 4D?

2019-09-25 Thread Kirk Brooks via 4D_Tech
Tom, Miyako wrote such a thing for Atom. You can search for it in the Atom add-ins area. On Wed, Sep 25, 2019 at 7:51 AM Tom Benedict via 4D_Tech < 4d_tech@lists.4d.com> wrote: > Does anyone have a custom User Defined Language for NotePad++ for 4D HTML > pages? > > I’d like to have 4D Tags

Re: FYI: 4D-Objects - Embedded Objects --> Save as file

2019-09-24 Thread Kirk Brooks via 4D_Tech
Tim, On Tue, Sep 24, 2019 at 2:32 PM Tim Nevels via 4D_Tech <4d_tech@lists.4d.com> wrote: > On Sep 24, 2019, at 8:00 PM, Kirk Brooks wrote: > > Do you have to Base64 encode the picture to store it in the JSON file? > > I would PICTURE TO BLOB and then BASE64 ENCODE the blob to create a text >

Re: FYI: 4D-Objects - Embedded Objects --> Save as file

2019-09-24 Thread Kirk Brooks via 4D_Tech
Tim, Do you have to Base64 encode the picture to store it in the JSON file? On Tue, Sep 24, 2019 at 10:28 AM Tim Nevels via 4D_Tech < 4d_tech@lists.4d.com> wrote: > Picture object properties only store a reference to the picture, hence the > “[object Picture]” property value. JSON Stringify

Re: [v17.3] - Clear 4D-Oject

2019-09-24 Thread Kirk Brooks via 4D_Tech
On Mon, Sep 23, 2019 at 11:42 PM Christian Sakowski via 4D_Tech < 4d_tech@lists.4d.com> wrote: > > I thought that only clears a reference to the object, not the object > itself. > > Depends, > > if the ref-counter goes to 0, the object itself will be cleared too. > That's why I prefer Wayne's

Re: v17r6 Entity-Selection ListBox — how 'SELECT ALL'?

2019-09-23 Thread Kirk Brooks via 4D_Tech
Chris, Have a look at these commands: entitySelection.and( ) - intersection entitySelection.or( ) - union entitySelection.minus( ) - difference entitySelection.add( ) entitySelection.minus( ) For working with a listbox like you are I will have two 'versions' of the entity selection: master

Re: 4D Object To BLOB/TEXT/Document

2019-09-17 Thread Kirk Brooks via 4D_Tech
Jorg, JSON Stringify converts an object into plain text. So you can use: TEXT TO DOCUMENT($docPath;JSON Stringify($myobject)) The syntax of Object Tools is very similar to 4D's. Not the object notation part but the basic OB SET and OB get. I have converted lots of methods using my text editor

Re: More on 4D Objects and 'Inheritance'

2019-09-16 Thread Kirk Brooks via 4D_Tech
Well gee, what does Aparajita know about object oriented stuff? 樂 Nicely put. On Mon, Sep 16, 2019 at 1:23 PM Aparajita Fishman via 4D_Tech < 4d_tech@lists.4d.com> wrote: > > Well my recommendation is not to use New formula ever. > > Translation: “I’m not sure I can use them properly, therefore

Re: More on 4D Objects and 'Inheritance'

2019-09-16 Thread Kirk Brooks via 4D_Tech
Peter, On Mon, Sep 16, 2019 at 1:58 AM Peter Jakobsson via 4D_Tech < 4d_tech@lists.4d.com> wrote: > The key is the new “This” self-referencing function because it now lets > you create an active object as a class. It does. > I realise OO purists may not regard it as a class, They do not. >

Re: Shared objects and collections

2019-09-14 Thread Kirk Brooks via 4D_Tech
Hi Jim, I haven't worked with Storage very much because frankly it's a pain and it's slow. I get why it's a pain and has so much overhead. Every single object has to have its own lock/unlock ('locker') mechanism and it works between preemptive processes. So cool for that - no small thing. For me

  1   2   3   4   5   6   7   >