Re: Calculate values of arrays...

2021-11-01 Thread Jeremy Roussak via 4D_Tech
In the docs? Min, Max and Average can all take numeric arrays as arguments. Jeremy Roussak Photography: jbr.is > On 1 Nov 2021, at 12:04, Jörg Knebel via 4D_Tech <4d_tech@lists.4d.com> wrote: > > G’ day, > > I’m sure I have seen it before but can’t remember where. :-( > > I’m looking for

Re: PING of life...

2021-01-15 Thread Jeremy Roussak via 4D_Tech
I have all non-English conversations muted as well, but I’m still given the opportunity to test my rusty schoolboy French every now and again. It’s quite fun. Jeremy Roussak Photography: jbr.is > On 14 Jan 2021, at 21:50, Neil Dennis via 4D_Tech <4d_tech@lists.4d.com> > wrote: > >> Under

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

2020-05-05 Thread Jeremy Roussak via 4D_Tech
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

Re: signal problem

2020-05-02 Thread Jeremy Roussak via 4D_Tech
Never mind. Cretin (me) at work Jeremy On 1 May 2020, 20:20 +0100, Jeremy Roussak via 4D_Tech <4d_tech@lists.4d.com>, wrote: > 4D v18.1, Mac Mojave > > I think I’m following the documentation of signals to the letter, but it’s > not happening. > > Main process: > >

signal problem

2020-05-01 Thread Jeremy Roussak via 4D_Tech
4D v18.1, Mac Mojave I think I’m following the documentation of signals to the letter, but it’s not happening. Main process: C_OBJECT($signal) C_BOOLEAN($done) $signal:=New signal(“fred”) CALL WORKER(“Show”;”Show”;$signal) $done:=$signal.wait(5) - Method “Show” C_OBJECT($1;$signal)

Re: New Notarization Issues

2020-04-28 Thread Jeremy Roussak via 4D_Tech
. >>> >>> This database has been nothing short of a miracle for this process. >>> >>> There was a test method in there that is already pretty much set up to go >>> down through the whole chain of all the folders, frameworks, plugins, … you >>>

Re: New Notarization Issues

2020-04-28 Thread Jeremy Roussak via 4D_Tech
> Randy Jaynes > Senior Programmer and Customer Support > > http://printpoint.com <http://printpoint.com/> • 845.687.3741 • PrintPoint, > Inc • 57 Ludlow Lane • Palisades, NY 10964 > Please send all email contacts to supp...@printpoint.com > <ma

Re: New Notarization Issues

2020-04-27 Thread Jeremy Roussak via 4D_Tech
4Dv17R5, Mac Mojave An application which I have previously codesigned and successfully submitted for notarization is now failing to be notarized. The log file contains a stream of errors, complaining about 4D InternetCommands, InstallTool, Updater.app and others, the errors being invalid

Re: Worker and UI

2020-03-30 Thread Jeremy Roussak via 4D_Tech
Tim, That would seem a very sensible explanation. I’ve just tried setting my worker method to “can be run in preemptive processes” and, as you would have expected, it will no longer compile. So workers intended to do number-crunching and run headless may be marked “can be pre-emptive” and

Re: Worker and UI

2020-03-28 Thread Jeremy Roussak via 4D_Tech
When Jenner was dithering about vaccination, he was told “Don’t think; try the experiment”. I may yet run foul of some hidden gremlin which bares its fangs when 4D19 appears, but I tried the experiment and thus far it works like a dream. Step 1: at startup, call the worker to get things set up

Re: Display entity selection time fields in a list box?

2020-03-27 Thread Jeremy Roussak via 4D_Tech
John, I had the same issue recently. I couldn’t think of any other way. Jeremy On 27 Mar 2020, 16:52 +, John DeSoi via 4D_Tech <4d_tech@lists.4d.com>, wrote: > I'm replacing some record based list boxes with entity selection list boxes. > I want to see HH MM SS format which was easy and the

Worker and UI

2020-03-27 Thread Jeremy Roussak via 4D_Tech
v18.1, Mac What can a worker process do by way of UI? Are there any restrictions? Situation: I have a task which takes a while to set up but which, once set up, runs swiftly, perhaps quite often. At present, I just wait for the setup to complete, but while it’s only a few seconds, it’s boring.

Re: Active Listbox/Form while listbox dynamically built

2020-03-09 Thread Jeremy Roussak via 4D_Tech
John, I think you have it: it is indeed magic! The method called, via CALL FORM, by the worker has full access to all the form’s variables (in that way, it’s just like a form method). Your worker process can pass it, for example in an object, the values to be added to the listbox’s arrays. It

Re: Active Listbox/Form while listbox dynamically built

2020-03-08 Thread Jeremy Roussak via 4D_Tech
John, Have a look at CALL WORKER and CALL FORM. Start the data build in a new process using CALL WORKER. Have the worker process prod the form into updating the listbox from time time using CALL FORM. I’ve implemented something much more trivial and it works nicely. Jeremy > On 8 Mar 2020,

Re: APPLY TO ENTITY SELECTION?

2020-02-29 Thread Jeremy Roussak via 4D_Tech
:54, Jeremy French wrote: > > Have you looked at the data class method “fromCollection”? > > https://doc.4d.com/4Dv18/4D/18/dataClassfromCollection.305-4505892.en.html > > Sent from my iPad >> On Feb 29, 2020, at 11:25 AM, Jeremy Roussak via 4D_Tech >> <4d_tech@li

APPLY TO ENTITY SELECTION?

2020-02-29 Thread Jeremy Roussak via 4D_Tech
Is there an equivalent of APPLY TO SELECTION for an entity selection? Or do we just use a for each … end for each loop? Jeremy ** 4D Internet Users Group (4D iNUG) Archive: http://lists.4d.com/archives.html Options:

Re: Subform & outside information

2020-02-27 Thread Jeremy Roussak via 4D_Tech
Keith, OBJECT GET SUBFORM CONTAINER SIZE https://doc.4d.com/4Dv18/4D/18/OBJECT-GET-SUBFORM-CONTAINER-SIZE.301-4505436.en.html Jeremy > On 26 Feb 2020, at 20:51, kculotta via 4D_Tech <4d_tech@lists.4d.com>

v18: bug in METHOD SET CODE?

2020-02-13 Thread Jeremy Roussak via 4D_Tech
I’m using METHOD SET CODE from a component to inject a callback method into the host. It’s worked well until now but in v18 it going wrong. The code (simplified) is C_TEXT($hostName;$componentName;$code) $componentName:="_injectedMethod" $hostName:="injectedMethod" METHOD GET

Re: determine table name from entity selection

2020-02-08 Thread Jeremy Roussak via 4D_Tech
Thanks, Miyako. You even managed not to use lmgtfy! Jeremy > On 9 Feb 2020, at 00:19, Keisuke Miyako via 4D_Tech <4d_tech@lists.4d.com> > wrote: > > it's not cheating to ask Google ** 4D Internet Users Group (4D iNUG) Archive:

determine table name from entity selection

2020-02-08 Thread Jeremy Roussak via 4D_Tech
I’m writing a generic component. I have an entity selection but I don’t know which table it’s from. In the debugger, I can see “entity (125) from xx”, where xx is the name of the table. Is there a way in code to get the name of the table? As ever, I may be missing something obvious. Jeremy

Re: Using ORDA - getting ONE entity from MANY Table

2020-01-28 Thread Jeremy Roussak via 4D_Tech
Steve, I’m new to ORDA as well, but I think the syntax you want is something like this $text:=emp.relationToOneTable.oneTableFieldName Jeremy > On 28 Jan 2020, at 09:25, UKVetDerm via 4D_Tech <4d_tech@lists.4d.com> wrote: > > Hi ORDA users > > I am starting to explore ORDA and with

Re: v18 bug?

2020-01-25 Thread Jeremy Roussak via 4D_Tech
t;> On Jan 25, 2020, at 8:21, Jeremy Roussak via 4D_Tech <4d_tech@lists.4d.com> >> wrote: >> In v18 (Mac), it takes two double-clicks for this to happen. The first >> merely switches into 4D. >> Can this be intentional? It’s rather tedious. *

v18 bug?

2020-01-24 Thread Jeremy Roussak via 4D_Tech
In v17 (Mac), double-clicking on a 4D database n Finder when 4D was running resulted in 4D closing the database it had open and opening the double-clicked database. In v18 (Mac), it takes two double-clicks for this to happen. The first merely switches into 4D. Can this be intentional? It’s

Re: v18 documentation

2020-01-24 Thread Jeremy Roussak via 4D_Tech
om/> website. The v18 tab has been > there for a while. I was missing the v17r5 tab that went away shortly after > the v18 tab appeared. > > https://docs.4d.com/4Dv18/index.en.html > <https://docs.4d.com/4Dv18/index.en.html> > >> On Jan 23, 2020, at 6:25 AM,

v18 documentation

2020-01-23 Thread Jeremy Roussak via 4D_Tech
Is this available for download anywhere (it’s not obviously at doc.4d.com )? HTML preferably, but PDF would be better than nothing. Jeremy ** 4D Internet Users Group (4D iNUG) Archive:

Re: Select row in entity selection listbox

2020-01-21 Thread Jeremy Roussak via 4D_Tech
ve the other two blank. > using the current position or selection property often defeats selection by > code, > commands such as LISTBOX SELECT ROW. > > you'd need a different setup for a multi-select listbox. > >> 2020/01/21 17:29、Jeremy Roussak via 4D_Tech <4d_tech@lis

Select row in entity selection listbox

2020-01-21 Thread Jeremy Roussak via 4D_Tech
I have a form with two entity selection listboxes. One shows all messages ever sent from or to an account; the other, a list of that account’s contacts. When a message is selected, I want to highlight the appropriate contact. I can find the contact, of course; how do I find the row number so I

Re: Object from row in selection listbox

2020-01-02 Thread Jeremy Roussak via 4D_Tech
rect commands to convert > sets and named selections into entity selections. > > John DeSoi, Ph.D. > > >> On Dec 28, 2019, at 7:35 AM, Jeremy Roussak via 4D_Tech >> <4d_tech@lists.4d.com> wrote: >> >> I have a selecti

Re: Object from row in selection listbox

2019-12-29 Thread Jeremy Roussak via 4D_Tech
o > another, it would be really nice if 4D provided direct commands to convert > sets and named selections into entity selections. > > John DeSoi, Ph.D. > > >> On Dec 28, 2019, at 7:35 AM, Jeremy Roussak via 4D_Tech >> <4d_tech@lists.4d.com> wrote: >>

Object from row in selection listbox

2019-12-28 Thread Jeremy Roussak via 4D_Tech
I have a selection-based listbox. I’d like to make an entity selection from the highlighted rows in the box. Is there an easy way? I’m new to ORDA, so I'probably missing something obvious. Jeremy ** 4D Internet Users Group (4D

Re: All folders hidden in Apppackage/AppFolder...

2019-12-18 Thread Jeremy Roussak via 4D_Tech
Jörg, I can’t say anything useful about Windows. On a Mac, though, I have to echo Chip’s “why”? The folders you mention are already “hidden”, in the sense that they’re inside a package; although it’s a folder, it appears to be a single file and non-technical users won’t realise that it isn’t.

Re: All folders hidden in Apppackage/AppFolder...

2019-12-17 Thread Jeremy Roussak via 4D_Tech
Jörg, Mac or Windows? Jeremy > On 17 Dec 2019, at 12:18, Jörg Knebel via 4D_Tech <4d_tech@lists.4d.com> > wrote: > > G’day All, > > Out of curiosity, what effect would it have if I decide to hide all folders > in the application package/folder and even the data-file programmatically > from

Re: Trapping the 'return' key in list forms

2019-12-04 Thread Jeremy Roussak via 4D_Tech
On 4 Dec 2019, at 08:26, Arnaud de Montard via 4D_Tech <4d_tech@lists.4d.com> wrote: > > Hi Peter, > I'm not sure it always works on mac, because focusable property is managed by > system and "stronger" than 4d's one. You may check if I'm wrong using Apple > menu/Keyboard/Shortcuts/Full

Re: Trapping the 'return' key in list forms

2019-12-04 Thread Jeremy Roussak via 4D_Tech
> On 3 Dec 2019, at 22:40, Peter Jakobsson via 4D_Tech <4d_tech@lists.4d.com> > wrote: > > >> On 3 Dec 2019, at 21:47, Peter Bozek wrote: > >> But doing it again, I would go for something simpler. > > …and that “something simpler” turns out to be Jeremy Roussak’s tip of > removing the

Re: Trapping the 'return' key in list forms

2019-11-30 Thread Jeremy Roussak via 4D_Tech
Peter, If your button, with shortcut Return, does not have the “focusable” property checked, calling OBJECT Get pointer(Object with focus) in its script will return the object the cursor was in when the return key was pressed. Jeremy > On 30 Nov 2019, at 21:58, Peter Jakobsson via 4D_Tech

Re: Status of a bug report

2019-11-14 Thread Jeremy Roussak via 4D_Tech
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 Jeremy Roussak via > 4D_Tech > Sent: Friday, November 08, 2019 8:43 AM > To: 4D iNug Technical <4d_

Re: Event handler method in component

2019-11-11 Thread Jeremy Roussak via 4D_Tech
Chip, you’re right. For my purposes, that isn’t an issue, but your approach is perhaps neater. Jeremy > On 11 Nov 2019, at 16:43, Chip Scheide <4d_o...@pghrepository.org> wrote: > > Jeremy, > Just to be clear > > your code will *only* work if both the component and host are > interpreted. >

Re: Event handler method in component

2019-11-11 Thread Jeremy Roussak via 4D_Tech
>>> - At component shut down, write the method(s) to be injected to disk as >>> text (I use the resources folder) >>> - at host or component startup read the text files >>> METHOD SET CODE(;) >>> >>> Chip >>> >>> On Sun, 10 No

Re: Event handler method in component

2019-11-11 Thread Jeremy Roussak via 4D_Tech
> METHOD SET CODE(;) > > Alternatively (compiled component and interpreted host): > - At component shut down, write the method(s) to be injected to disk as > text (I use the resources folder) > - at host or component startup read the text files > METHOD SET CODE(;) > > Chip &

Re: Event handler method in component

2019-11-10 Thread Jeremy Roussak via 4D_Tech
Thanks, Tim. I thought that was probably the case. Jeremy > On 10 Nov 2019, at 20:22, Tim Nevels via 4D_Tech <4d_tech@lists.4d.com> wrote: > > On Nov 10, 2019, at 2:00 PM, Jeremy Roussak wrote: > >> I’d like to have a method set by ON EVENT CALL to live in a component. It >> works, in that

Event handler method in component

2019-11-10 Thread Jeremy Roussak via 4D_Tech
I’d like to have a method set by ON EVENT CALL to live in a component. It works, in that the method is called on each event, but the system variables Modifiers and KeyCode are undefined so testing for the event itself is tricky. I can get round the absence of Modifiers by using Macintosh

Status of a bug report

2019-11-08 Thread Jeremy Roussak via 4D_Tech
The last time I submitted a bug report (a while ago), it was through bugs.4d.fr, and I was able to track the progress of the response. Now (as I’m not a partner) I have to do it through the forum. There doesn’t seem to be a way to see how it’s getting on, though. I’ve had an acknowledgment:

Re: Concatenating collections in v17R5

2019-11-04 Thread Jeremy Roussak via 4D_Tech
05-4621805.en.html > > Keith - CDI > >> On Nov 4, 2019, at 5:26 PM, Jeremy Roussak via 4D_Tech >> <4d_tech@lists.4d.com> wrote: >> >> I’m probably missing something obvious here, but if I have two collections >> and I want to add all the elements of on

Concatenating collections in v17R5

2019-11-04 Thread Jeremy Roussak via 4D_Tech
I’m probably missing something obvious here, but if I have two collections and I want to add all the elements of one to the end of the other, is there a simple way? So if c1 is [1,2,3] and c2 is [4,5,6], the result is [1,2,3,4,5,6]. Jeremy

Re: VP IMPORT DOCUMENT in v17R6

2019-10-31 Thread Jeremy Roussak via 4D_Tech
I’m slightly surprised to have had no response to this, but maybe nobody is using VP IMPORT DOCUMENT, at least on Macs. I have submitted a bug report: the command is broken in R16. Jeremy > On 30 Oct 2019, at 13:49, Jeremy Roussak via 4D_Tech <4d_tech@lists.4d.com> > wrote:

Re: VP IMPORT DOCUMENT in v17R6

2019-10-30 Thread Jeremy Roussak via 4D_Tech
quot; > $msg:=$msg+"to paths formatted for use on a Macintosh." > errutl_Add ($msg) > End case > Else > $msg:="Required parameters (1) not passed."+Cr_Char > $msg:=$msg+"Parameters passed "+String(Count parameters) > errutl_Add ($msg) > End if > >

Re: VP IMPORT DOCUMENT in v17R6

2019-10-30 Thread Jeremy Roussak via 4D_Tech
der R6, it doesn’t. Am I missing something? How do I report a bug? Jeremy > On 30 Oct 2019, at 11:34, Jeremy Roussak via 4D_Tech <4d_tech@lists.4d.com> > wrote: > > Forgot to mention: the document is a simple xlsx Excel document, with four > sheets, 23k in size. >

Re: VP IMPORT DOCUMENT in v17R6

2019-10-30 Thread Jeremy Roussak via 4D_Tech
Forgot to mention: the document is a simple xlsx Excel document, with four sheets, 23k in size. Jeremy > On 30 Oct 2019, at 11:30, Jeremy Roussak via 4D_Tech <4d_tech@lists.4d.com> > wrote: > > I call VP IMPORT DOCUMENT(“vp”;Form.path) in the On VP Ready form event. &g

VP IMPORT DOCUMENT in v17R6

2019-10-30 Thread Jeremy Roussak via 4D_Tech
I call VP IMPORT DOCUMENT(“vp”;Form.path) in the On VP Ready form event. Form.path contains a path in Mac system format, colon-delimited. In v17R5, it works fine. In R6, on the same document, I get an empty spreadsheet. No error; just an empty sheet. Mac, Mojave. Any suggestions gratefully

Re: OPEN DATA FILE gets endless loop

2019-10-27 Thread Jeremy Roussak via 4D_Tech
Carl, I hesitate to suggest something quite so obvious, but it seems to me that each time you enter the On Startup method, you 1. Set $dataPath to a path 2. Test $dataPath is “”, which of course it isn’t 3. Open a data file 4. Set $dataPath to “” (effectively pointless) 5. Re-enter On startup

Re: Error signing built app for Catalina

2019-10-26 Thread Jeremy Roussak via 4D_Tech
Jim, I translated your shell commands into a series of LEPs in my build method and it worked beautifully. Thanks again. Jeremy > On 25 Oct 2019, at 15:04, Jim Crate via 4D_Tech <4d_tech@lists.4d.com> wrote: > > On Oct 24, 2019, at 3:14 PM, Jeremy Roussak via 4D_Tech > <

Re: Error signing built app for Catalina

2019-10-25 Thread Jeremy Roussak via 4D_Tech
Jim, Thanks very much. I shall give it a go. Jeremy > On 25 Oct 2019, at 15:04, Jim Crate via 4D_Tech <4d_tech@lists.4d.com> wrote: > > On Oct 24, 2019, at 3:14 PM, Jeremy Roussak via 4D_Tech > <4d_tech@lists.4d.com> wrote: >> >> App built with v17R6. Tryi

Re: Error signing built app for Catalina

2019-10-25 Thread Jeremy Roussak via 4D_Tech
rüngliche Nachricht- > Von: 4D_Tech [mailto:4d_tech-boun...@lists.4d.com] Im Auftrag von Jeremy > Roussak via 4D_Tech > Gesendet: Donnerstag, 24. Oktober 2019 21:14 > An: 4D iNug Technical <4d_tech@lists.4D.com> > Cc: Jeremy Roussak > Betreff: Error signing built app

Error signing built app for Catalina

2019-10-24 Thread Jeremy Roussak via 4D_Tech
App built with v17R6. Trying to sign a built application gives this: 20:07:01.341: Error 105553143319120 signing '/Users/jbr/Desktop/Final Application/PI calculator - Working/PI calculator.app/Contents/Resources/Internal User Components/4D Report.4dbase/Resources/Images/tbSave.png': Error

Re: Can a component access Filters/Formats of the Host?

2019-10-16 Thread Jeremy Roussak via 4D_Tech
Chip, I’ve been using Pluggers API pack plugin and this method, which works fine for formats. It may be that OBJECT Get filter and OBJECT Get format would do what you want (from v15R5, according to the dox). Jeremy // resolve a format name into its string // $1: name

Re: Making a package of a built Mac volume desktop

2019-10-16 Thread Jeremy Roussak via 4D_Tech
On 15 Oct 2019, at 22:25, Paul Ringsmuth via 4D_Tech <4d_tech@lists.4d.com> wrote: > > One other thing. I notice that there is a _CodeSignature file in the app. I > think the app gets signed in the build interface. Does adding a data folder > to the app affect the code signing? I think so,

Re: Option click close box

2019-10-10 Thread Jeremy Roussak via 4D_Tech
Chip, I don’t know what an “option close” would look like: there’s no such event, and anyway it doesn’t matter to a particular window if it’s being told to close because every window is closing or because it alone is closing. They’re all in different processes; I’m still in “one process, one

Re: Option click close box

2019-10-10 Thread Jeremy Roussak via 4D_Tech
Miyako, I am using your plugin, which is jolly useful! It provides handy visual feedback but other than that makes no difference. I do have the “ask” checkbox in System Preferences checked (I confess I was completely unaware of it until now, so thanks for that). In the 4D developer

Re: Option click close box

2019-10-10 Thread Jeremy Roussak via 4D_Tech
Miyako, In pretty much every Mac application which can have multiple windows open, option-click on the close box of a window closes all the app’s windows, and as far as I can recall always has. It’s essentially synonymous with cmd-opt-W. Try Preview, for example. In an app whose windows can

Re: Option click close box

2019-10-09 Thread Jeremy Roussak via 4D_Tech
in, but not that often. > > I have not used it in a long time so the behavior you describe could be > happening. > > Jody Bevan > Argus Productions Inc. > > >> On Oct 5, 2019, at 5:56 AM, Jeremy Roussak via 4D_Tech >> <4d_tech@lists.4d.com> wrote: &g

Re: Option click close box

2019-10-08 Thread Jeremy Roussak via 4D_Tech
Nobody? > On 5 Oct 2019, at 12:56, Jeremy Roussak via 4D_Tech <4d_tech@lists.4d.com> > wrote: > > Is 4D’s response to option-click in a window’s close box documented? All > windows close, which is as I’d expect, but they don’t seem to get sent an On > close box event.

Option click close box

2019-10-05 Thread Jeremy Roussak via 4D_Tech
Is 4D’s response to option-click in a window’s close box documented? All windows close, which is as I’d expect, but they don’t seem to get sent an On close box event. Also, the default splash screen window closes and I drop out of application mode. v17R5, Mac, running interpreted. Jeremy

Re: v15 - Array Object and Append array

2019-10-03 Thread Jeremy Roussak via 4D_Tech
Chip, At a guess, because after INSERT IN ARRAY, $Columns{$i} is Null rather than {}. Try $Columns{$i}:=New object before the OB SET; or replace it with $Columns{$i}:= New object () Jeremy > On 3 Oct 2019, at 21:55, Chip Scheide via 4D_Tech <4d_tech@lists.4d.com> > wrote:

Silly question

2019-09-26 Thread Jeremy Roussak via 4D_Tech
I’m sure I must be having an episode of brain failure, missing an obvious call. I have a subform method, which is reacting to an On Bound Variable Change event. I can get a pointer to the subform’s variable using OBJECT Get pointer(Object subform container). How do I get the name of the object

Re: Folder path issues

2019-09-26 Thread Jeremy Roussak via 4D_Tech
You’ll like it, Chip. It (well, v17R5 anyway) has some really useful ways of dealing with files and folders. > On 26 Sep 2019, at 12:58, Chip Scheide via 4D_Tech <4d_tech@lists.4d.com> > wrote: > > > Thanks for the info. > > working towards v17... > >> Hi Chip, >> >> Just checked v17 and

Re: CALL FORM

2019-09-11 Thread Jeremy Roussak via 4D_Tech
> > Jeremy, > On Wed, Sep 11, 2019 at 1:13 PM Jeremy Roussak via 4D_Tech < > 4d_tech@lists.4d.com> wrote: > >> ... CALL FORM as a method of interprocess communication. ... > > > You might want to take a look at John Baughman's preso from the last > Summit: >

CALL FORM

2019-09-11 Thread Jeremy Roussak via 4D_Tech
I’m dipping my toe in the water of CALL FORM as a method of interprocess communication. I have a form which displays some records (read-only) in a listbox and another form in which those records might be edited. After an edit, the second form sends a “redraw your list” to the first, which at

Re: v13 - Lists

2019-08-28 Thread Jeremy Roussak via 4D_Tech
Chip, Perhaps if the naming isn’t case-sensitive, 4D isn’t picking up the change and is thinking that you haven’t made it. Try renaming to “fred”, switching to a different tab and back, and then re-renaming to the new capitalised version. Just a thought. Jeremy > On 28 Aug 2019, at 17:01,

Re: Regex expert needed??

2019-08-23 Thread Jeremy Roussak via 4D_Tech
or. > > spaces, tabs, etc. are boundaries, > commas periods and apostrophes depend on the context. > > e.g. (one word) > 1,000,000 (one word) > Macy's (one word) > > http://userguide.icu-project.org/boundaryanalysis > > 2019/08/23 21:39、Jeremy Roussak via 4

Re: Regex expert needed??

2019-08-23 Thread Jeremy Roussak via 4D_Tech
What about double spaces? Jeremy > On 23 Aug 2019, at 13:28, Kirk Brooks via 4D_Tech <4d_tech@lists.4d.com> > wrote: > > Arnaud, > Good point. If collections aren't available GET TEXT KEYWORDS would be the > easy solution. > > On Fri, Aug 23, 2019 at 3:20 AM Arnaud de Montard via 4D_Tech < >

Re: My 4D Experience Blog

2019-08-20 Thread Jeremy Roussak via 4D_Tech
Thanks as ever, Miyako. I’d missed that! Jeremy > On 20 Aug 2019, at 09:58, Keisuke Miyako via 4D_Tech <4d_tech@lists.4d.com> > wrote: > > you know there is a popup to switch languages? > > https://imgur.com/dFnn6H3 > >> 2019/08/20 17:49、Jeremy Roussak via 4

Re: My 4D Experience Blog

2019-08-20 Thread Jeremy Roussak via 4D_Tech
The dark background colour scheme is great, but poses difficulties for SQL code, which is subject to the “black on black” problem and rather tricky to read.. Is there a way of changing the colour of SQL code? I can’t see anything obvious in the preferences. V17R5. Jeremy > On 8 Aug 2019, at

Re: Amazon API

2019-08-18 Thread Jeremy Roussak via 4D_Tech
Dougie, Thanks, but as I think you deduce, that’s not what I’m trying to do. I have an ordinary Amazon account; I use it quite a lot. I want to be able to get from Amazon a list of all the stuff I’ve ordered, using a formal API. There aren’t any data protection issues, as it’s my data (and,

Amazon API

2019-08-15 Thread Jeremy Roussak via 4D_Tech
Does anyone know if Amazon has any form of API which would allow retrieval of all orders placed by a user with them between particular dates? Jeremy ** 4D Internet Users Group (4D iNUG) Archive:

Re: v13 - array listbox column Compiler definition

2019-08-11 Thread Jeremy Roussak via 4D_Tech
e is. > Not the most efficient, but it is functional. > > Chip > > On Fri, 9 Aug 2019 11:06:00 +0200, Jeremy Roussak via 4D_Tech wrote: >> Chip, >> >> Why do you need to use a copy of the data in the component? Why not >> just use $HostData-> in the ca

Re: v13 - array listbox column Compiler definition

2019-08-09 Thread Jeremy Roussak via 4D_Tech
Chip, Why do you need to use a copy of the data in the component? Why not just use $HostData-> in the call to LISTBOX INSERT COLUMN? Jeremy > On 8 Aug 2019, at 20:59, Chip Scheide via 4D_Tech <4d_tech@lists.4d.com> > wrote: > > I have a component. > In the component, I have a published

Re: v15R5 bug?

2019-07-31 Thread Jeremy Roussak via 4D_Tech
Kirk, Thanks for your reply, which is interesting. This is what I’m doing. I wrote most of the code quite a while ago, before objects and before dynamic variables. I have a component to handle listboxes. Its methods can be used in three ways. 1. The box is fully set up in the Form editor. The

Re: v17R5 bug?

2019-07-29 Thread Jeremy Roussak via 4D_Tech
Miyako, I’ll reply to Kirk’s long (and helpful) post with some more detail. There’s more than one way to skin a cat, I agree: but 4D shouldn’t crash if I ask it to search for a pointer, surely. Jeremy > On 29 Jul 2019, at 01:43, Keisuke Miyako via 4D_Tech <4d_tech@lists.4d.com> > wrote: > >

Re: v15R5 bug?

2019-07-28 Thread Jeremy Roussak via 4D_Tech
Typo: the .push line should push “info”; $info, of course. And I’ve no idea where the > came from - it’s not in the message I sent. Jeremy > On 28 Jul 2019, at 17:20, Jeremy Roussak wrote: > > I hope this is a more sensible query than my last one! > > I

v15R5 bug?

2019-07-28 Thread Jeremy Roussak via 4D_Tech
I hope this is a more sensible query than my last one! I have a collection objects, each of which has a pointer to a variable and an associated object: <>boxes.push(new object(“lb”; ->list; “box”; $info)) I want to find the item in the collection from the pointer, which is in $ptr

Re: V17R5 Folder

2019-07-28 Thread Jeremy Roussak via 4D_Tech
Thanks, Arnaud. I must learn to read the documentation a little more carefully! Jeremy > On 28 Jul 2019, at 12:04, Arnaud init5 imap via 4D_Tech > <4d_tech@lists.4d.com> wrote: > > > >> Le 28 juil. 2019 à 12:07, Jeremy Roussak via 4D_Tech <4d_

V17R5 Folder

2019-07-28 Thread Jeremy Roussak via 4D_Tech
In a component, can Folder(fk resources folder) be used to make a reference to the host's resources folder, not the component's resources folder? The analogy is with Get 4d folder(Current resources folder;*). There’s an obvious workaround using Folder(Get 4d folder…), but it seems a shame to

Dynamic listbox variables

2019-07-17 Thread Jeremy Roussak via 4D_Tech
The documentation for LISTBOX INSERT COLUMN indicates that if a nil pointer is supplied for the header variable, the variable will be created dynamically, but that this works only for array type listboxes. The documentation for LISTBOX INSERT COLUMN FORMULA doesn’t indicate any such

Re: Stuffing a shared object

2019-07-16 Thread Jeremy Roussak via 4D_Tech
Thanks, Keith. I had wondered about writing a method to copy each element of the non-shared object into the shared object, but couldn’t believe that there wasn’t a simpler way of doing it - hence my question. Clearly, I was wrong. Jeremy > On 16 Jul 2019, at 09:14, Keith White via 4D_Tech

Re: Stuffing a shared object

2019-07-15 Thread Jeremy Roussak via 4D_Tech
the same way we have for years. > That's why a list like this is so useful. > > On Mon, Jul 15, 2019 at 9:01 AM Jeremy Roussak via 4D_Tech < > 4d_tech@lists.4d.com> wrote: > >> Kirk, >> >> Now why didn’t I think of that? It’s exactly what CALL WORKER is f

Re: Stuffing a shared object

2019-07-15 Thread Jeremy Roussak via 4D_Tech
via > CALL FORM. This will be faster and easier. > > > On Mon, Jul 15, 2019 at 8:27 AM Jeremy Roussak via 4D_Tech < > 4d_tech@lists.4d.com> wrote: > >> I have a form which accepts some information and, when a button is >> clicked, does some fairly time-cons

Stuffing a shared object

2019-07-15 Thread Jeremy Roussak via 4D_Tech
I have a form which accepts some information and, when a button is clicked, does some fairly time-consuming calculations which return a set of figures. At present, it uses objects with the Form object for input and output data. I’d like to hand off the calculations to a separate process. As I

Silly question?

2019-07-12 Thread Jeremy Roussak via 4D_Tech
This may seem a silly question, but… I have a listbox (selection type). It’s in a subform. I get the names of the headers using LISTBOX GET ARRAYS into <>headerNames, a text array (it’s a global for debugging only). I call OBJECT SET VISIBLE(*;<>headerNames{1};False). In the debugger, I can see

Re: Entity selection / collection listbox

2019-07-08 Thread Jeremy Roussak via 4D_Tech
the UI. > > basic features are common ("This" is an object and This.property is a value), > but there are major differences between an entity and a regular object > (member methods, etc) > so not all code can be agnostic, especially if you do more than display data. >

Entity selection / collection listbox

2019-07-08 Thread Jeremy Roussak via 4D_Tech
Apologies if this is a silly question; I’m still trying to get to grips with ORDA. As I understand it, an entity selection is an object. If I define a listbox whose source is “collection or entity selection”, must it be one or the other? In other words, can I change it at runtime from

Re: Apple Notarizing (Where is 4D documentation on how to notarize a 4D merged app?)

2019-06-16 Thread Jeremy Roussak via 4D_Tech
Over on the AppleScript users mailing list, Shane Stanley recently made the following announcement. I haven’t tried it but it’s probably worth a close look; he’s a good egg. Jeremy > On 9 May 2019, at 00:52, Shane Stanley wrote: > > SD Notary is a utility for notarizing apps, including

Re: Arrays in objects

2019-06-11 Thread Jeremy Roussak via 4D_Tech
Kirk and Lahav, Thanks, both. I know rather more now than I did yesterday. One of the things I now know, sadly, is that it’s not possible to do what I want to do, which is to use arrays within an object as parameters to HTTP Get. There are plenty of other ways to skin that cat, though: I was

Re: Arrays in objects

2019-06-10 Thread Jeremy Roussak via 4D_Tech
:=$o.array[0] // $x = 1 > > If you have some array of longints you want to append you can call OB SET > ARRAY($o;”array”;$arrayOfLongs) without an error and it will be a > collection. > You could also call ARRAY TO COLLECTION($o.array;$arrayOfLongs) > > > On Mon, Jun 10,

Arrays in objects

2019-06-10 Thread Jeremy Roussak via 4D_Tech
Forgive me if this is a silly question: I’m still very much feeling my way when working with objects (although growing to appreciate them more and more). Are arrays within objects rather second-class properties? I know that I can put an array into an object using OB SET ARRAY, and I can

Re: Zip Code API sites - Follow up

2019-06-04 Thread Jeremy Roussak via 4D_Tech
$url:="http://api.zippopotam.us/GB/“+vZip. //AB1 for > example > HTTP Request(HTTP GET method;$url;$content;$oResponse) > > John > >> On Jun 3, 2019, at 8:59 AM, Jeremy Roussak via 4D_Tech >> <4d_tech@lists.4d.com> w

Re: Zip Code API sites - Follow up

2019-06-03 Thread Jeremy Roussak via 4D_Tech
Out of curiosity, does anyone know of an equivalent service for postcodes in the UK? Jeremy ** 4D Internet Users Group (4D iNUG) Archive: http://lists.4d.com/archives.html Options: https://lists.4d.com/mailman/options/4d_tech

Re: Konstants - trying to determine where it is defined

2019-05-31 Thread Jeremy Roussak via 4D_Tech
Chip, Constants defined in xliff files within installed components are also visible. That can be really useful. Jeremy PS: thanks for the [KC]onstants explanation. I’ve been wondering too. > On 30 May 2019, at 22:13, Chip Scheide via 4D_Tech <4d_tech@lists.4d.com> > wrote: > > Thanks! > >

Re: v17R4 infelicities

2019-05-15 Thread Jeremy Roussak via 4D_Tech
Miyako, Yes, the expression is correctly evaluated and displayed; if it wasn’t, I would have used a rather stronger word than “infelicity”! Thanks for the explanation of what’s happening (wrapping). > On 14 May 2019, at 20:43, Keisuke Miyako via 4D_Tech <4d_tech@lists.4d.com> > wrote: > >

v17R4 infelicities

2019-05-14 Thread Jeremy Roussak via 4D_Tech
I’m noticing two irritations with R4. 1. If I drop into Design mode from Application, open some method windows, then go back into Application with “exit design when going into application environment” checked, the newly-opened windows are lost when I next drop into Design mode, which is rather

Re: Printing structures

2019-05-10 Thread Jeremy Roussak via 4D_Tech
True. Canada is really very small: https://xkcd.com/2082/ Jeremy > On 9 May 2019, at 22:35, Tom Dillon via 4D_Tech <4d_tech@lists.4d.com> wrote: > > John J Foster via 4D_Tech wrote: > >> So that's why I have some tables that the size of Canada! > > It's in Mercator

  1   2   3   >