Re: Code signing works on one app but fails on another

2019-03-22 Thread Jeremy Roussak via 4D_Tech
Pat, I had a similar message. I use Dropbox to backup and sync and it was adding extended attributes to some of the files. When I added a command to remove extended attributes before codesigning, it began to work. LAUNCH EXTERNAL PROCESS("xattr -cr "+$appPath)

Re: Code signing works on one app but fails on another

2019-04-02 Thread Jeremy Roussak via 4D_Tech
Pat, what’s the character before “force”? In your email, it seems to be an em-dash. I suspect it should be a double-hyphen. The same will apply to the character before “deep”. Jeremy > On 2 Apr 2019, at 19:05, Pat Bensky via 4D_Tech <4d_tech@lists.4d.com> wrote: > > Hi Jody, > Thanks very much

4D View Pro question

2019-04-16 Thread Jeremy Roussak via 4D_Tech
Sorry if this is a silly, or trivial, question. I’m using V17R4. I’d like to load an Excel document and pick bits out of it. I don’t need or want to display any of it. I don’t have any form active. How do I create a VP area and load the document into it? Jeremy *

RE: 4D View Pro question

2019-04-16 Thread Jeremy Roussak via 4D_Tech
: +1-408-557-4600 > Standard : +1-408-557-4600 > Fax : +1-408-271-5080 > Email : t...@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: Tuesday,

Re: 4D View Pro question

2019-04-16 Thread Jeremy Roussak via 4D_Tech
Tai, That is exactly what I was asking. So there is no “New Offscreen VP Object” command. I’ll follow your suggestion; thanks. Jeremy > On 16 Apr 2019, at 23:14, Tai Bui wrote: > > Hi, > > The VP Area is only available as a form object at the moment. > > If you mean how do you do this as

Arrow on Windows

2019-04-28 Thread Jeremy Roussak via 4D_Tech
I need a small button to contain an arrow pointing to the left. On my Mac, I can manage it easily (there’s a nice one in Wingdings 3), but my app also has to run under Windows. I know very little of Windows fonts. Is there a font, which will reliably be present on users’ machines, which has such

Form and DIALOG

2019-04-29 Thread Jeremy Roussak via 4D_Tech
Is it safe to use the object returned by the Form command as a means of passing data back to the caller? That is, should the method of the form opened in DIALOG regard its Form object as read-only, or is it allowed to alter it? At present, changing the values of the object passed by DIALOG works

Re: Form and DIALOG

2019-04-29 Thread Jeremy Roussak via 4D_Tech
Thanks, Arnaud. I was looking at the documentation for Form, not DIALOG. I think this is likely to be a superbly useful feature. Jeremy > On 29 Apr 2019, at 11:56, Arnaud de Montard via 4D_Tech > <4d_tech@lists.4d.com> wrote: > > > >> Le 29 avr. 2019 à 10:05,

Re: Form and DIALOG

2019-04-30 Thread Jeremy Roussak via 4D_Tech
ello everyone" > > > I think this gives a whole new value to subforms. I can design forms to > deal with a particular task or set of data and use them as a dialog or open > the within a dialog without having to change the code. Have you ever wound > up, or come across, a form wit

Re: How to set the font colour for rows in an array-based listbox?

2019-05-01 Thread Jeremy Roussak via 4D_Tech
Pat, LISTBOX SET ROW COLOR? Jeremy > On 1 May 2019, at 09:58, Pat Bensky via 4D_Tech <4d_tech@lists.4d.com> wrote: > > I can find plenty of info about setting the row font colour for a > selection-based listbox, but how do we do it for an array-based listbox? > > Pat **

Re: How to set the font colour for rows in an array-based listbox?

2019-05-01 Thread Jeremy Roussak via 4D_Tech
at 12:16, Pat Bensky via 4D_Tech <4d_tech@lists.4d.com> wrote: > > That applies to the background colour, not the text colour ): > > On Wed, 1 May 2019 at 11:32, Jeremy Roussak via 4D_Tech < > 4d_tech@lists.4d.com> wrote: > >> Pat, >> >> LISTBOX SET

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 p

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: 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: > > th

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: 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 Un

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> wrot

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 retrieve

Re: Arrays in objects

2019-06-10 Thread Jeremy Roussak via 4D_Tech
rray: [1]} > > > $x:=$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) >

Re: Arrays in objects

2019-06-10 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 m

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 script

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 displayin

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. >

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

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 un

Re: Stuffing a shared object

2019-07-15 Thread Jeremy Roussak via 4D_Tech
come back 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

Re: Stuffing a shared object

2019-07-15 Thread Jeremy Roussak via 4D_Tech
thing 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 W

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 <4d_t

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 restriction

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 h

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_tech@lists.4d.

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: 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 hav

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-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 c

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 (shar

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

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: http://lists.4d.com/archives.htm

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, obv

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 14

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: 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 < > 4

Re: Regex expert needed??

2019-08-23 Thread Jeremy Roussak via 4D_Tech
tor. > > 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 Rou

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, C

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 thi

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:

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 th

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: Silly question

2019-09-26 Thread Jeremy Roussak via 4D_Tech
(data source) should be the only thing > that inherently controls its behaviour. > > anything else should be considered an option > and explicitly given to the subform from parent via an API > > EXECUTE METHOD IN SUBFORM, or OBJECT Get pointer(*;...;subform) etc. > > 201

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: >

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: 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.

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-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 be

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 environment

Re: Option click close box

2019-10-10 Thread Jeremy Roussak via 4D_Tech
Miyako, In all honesty, I don’t really care about the splash screen; it belongs to 4D and 4D can make it behave as it wishes; if I don’t like it, I needn’t use the splash screen mechanism at all and, as Keith observes, it’s not a tragedy if it closes. I mentioned it only for completeness. What

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 wi

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, ye

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 C_TEXT($0;$1;$reso

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 Domai

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

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-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: 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 wh

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 rec

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. >

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
it already there > If (Position("/Volumes/";$Path)=0) > $0:="/Volumes/"+$Path > Else > $0:=$Path > End if > Else > errutl_Add ("Source is empty.") > End if > Else > $msg:="Posix conversion is only applicable " > $msg:=$msg+&

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: &

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: 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 one t

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: it’

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 control

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 th

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-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
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. > f

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: 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 <4d_

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 “Foc

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 contro

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: 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. U

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 i

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: >>

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

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 c

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_tec

Re: Select row in entity selection listbox

2020-01-21 Thread Jeremy Roussak via 4D_Tech
Thanks, Miyako. Obviously -;) Jeremy > On 21 Jan 2020, at 12:38, Keisuke Miyako via 4D_Tech <4d_tech@lists.4d.com> > wrote: > > obviously, the index will be -1 the position. > > 2020/01/21 21:22、Keisuke Miyako via 4D_Tech > <4d_tech@lists.4d.com>のメール: > > indexO

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: http://lists.4d.com/ar

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 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 rat

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. *

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 ma

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: 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:

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 CODE($componentNam

Re: v18: bug in METHOD SET CODE?

2020-02-13 Thread Jeremy Roussak via 4D_Tech
Thanks, Gabriel. I’m not going crazy after all! Jeremy > On 13 Feb 2020, at 16:54, GI - AJAR via 4D_Tech <4d_tech@lists.4d.com> wrote: > > Hi, > > We already reported a bug. And yes the way before the fix is to call it > twice. > > Gabriel > > Envoyé de mon iPhone **

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> w

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: https://list

<    1   2   3   >