Re: iNUG List "From" Change

2017-02-19 Thread Jeremy Roussak via 4D_Tech
Ah, nostalgia. The Mac had (has?) a function called Munger (“rhymes with plunger”) that did general memory manipulation. http://mirror.informatimago.com/next/developer.apple.com/documentation/mac/Text/Text-329.html Jeremy Jeremy Roussak j...@mac.com > On 17 Feb 2017, at 19:56, bob.miller---

Re: Can I programatically turn off multi-style on a text object in v13?

2017-03-01 Thread Jeremy Roussak via 4D_Tech
Thomas, I stand corrected. Apologies. I’ll have to upgrade to v16R2! Jeremy Jeremy Roussak j...@mac.com > On 1 Mar 2017, at 14:12, Thomas Maul via 4D_Tech <4d_tech@lists.4d.com> wrote: > >> As far as I know, you can neither turn it off nor turn it on by code in any >> version of 4D. > >

Re: Listbox row select

2017-04-07 Thread Jeremy Roussak via 4D_Tech
Unless the listbox is not focusable, in which case the selected row has the highlight colour all the time. I think. Jeremy Jeremy Roussak j...@mac.com > On 7 Apr 2017, at 01:23, Keisuke Miyako via 4D_Tech <4d_tech@lists.4d.com> > wrote: > > in general, selected list items are grey when

Re: Can I programatically turn off multi-style on a text object in v13?

2017-03-01 Thread Jeremy Roussak via 4D_Tech
> Of course it also brought up issues of what happens to existing data when > the option is toggled... > > > On Wed, Mar 1, 2017 at 4:29 AM, Jeremy Roussak via 4D_Tech < > 4d_tech@lists.4d.com> wrote: > >> As far as I know, you can neither turn it off nor turn it on

Re: revelation! - Choose

2017-07-06 Thread Jeremy Roussak via 4D_Tech
Yes, Choose is a very useful command. I’d been using it for some time before I realised that the first argument need not be boolean but can be integer, allowing selection from a list. Jeremy Jeremy Roussak j...@mac.com > On 6 Jul 2017, at 17:45, Chip Scheide via 4D_Tech

Re: Getting Computer and OS Info

2017-07-14 Thread Jeremy Roussak via 4D_Tech
Canon, This seems to work, on my MacBook at any rate. Can’t help with Windows. C_TEXT($in;$out;$pattern;$model;$swVersion) LAUNCH EXTERNAL PROCESS("/usr/sbin/system_profiler SPHardwareDataType SPSoftwareDataType";$in;$out) ARRAY LONGINT($starts;0) ARRAY LONGINT($lens;0) $pattern:="(?m)Model

Re: Getting Computer and OS Info

2017-07-15 Thread Jeremy Roussak via 4D_Tech
ks. > > -- > Cannon.Smith > Synergy Farm Solutions Inc. > Hill Spring, AB Canada > 403-626-3236 > <can...@synergyfarmsolutions.com> > > > >> On Jul 14, 2017, at 10:04 AM, Jeremy Roussak via 4D_Tech >> <4d_tech@lists.4d.com> wrote: >> &

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

2017-07-22 Thread Jeremy Roussak via 4D_Tech
Someone has thought of that, Chip: https://xkcd.com/1205/ Jeremy Jeremy Roussak j...@mac.com > On 21 Jul 2017, at 14:47, Chip Scheide via 4D_Tech <4d_tech@lists.4d.com> > wrote: > > On Fri, 21 Jul 2017 23:01:56 +1000, David Adams via 4D_Tech wrote: >> let's take a

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

2017-07-22 Thread Jeremy Roussak via 4D_Tech
Pretty much. And the gaps are filled by Dilbert. Jeremy Jeremy Roussak j...@mac.com > On 22 Jul 2017, at 09:17, Jeremy Roussak via 4D_Tech <4d_tech@lists.4d.com> > wrote: > > Someone has thought of that, Chip: https://xkcd.com/1205/ > <https://xkcd.com/1205/>

Re: Thinking about optional parameters and optional object elements

2017-08-07 Thread Jeremy Roussak via 4D_Tech
Yes, yes, yes, yes, yes! structs are the single biggest thing I missed when coming to 4D from C; and I still miss them. Objects are not a substitute, nice and useful though they may be. Jeremy Jeremy Roussak j...@mac.com > +1,000! I was fighting for structs for months over on the Forums

Re: Help with Regex

2017-05-29 Thread Jeremy Roussak via 4D_Tech
Tim, “SP_[0-9]*” will match the first lot, and “SP_INS_[0-9]*” will match the rest. But it might be quicker to do the second batch first, matching the names simply to “SP_INS_@“ and removing them from the list when they’re done, then re-scanning for “SP_@“ to do the rest. Just a thought.

Re: Help with Regex

2017-05-30 Thread Jeremy Roussak via 4D_Tech
six digits is more robust in case some slightly mis-titled file exists. > > Therefore > ^SP_\d\d\d\d\d\d > > ^SP_INS_\d\d\d\d\d\d > > > iPhone RRL > >> On May 29, 2017, at 11:45 AM, Jeremy Roussak via 4D_Tech >> <4d_tech@lists.4d.com> wrote: >>

Re: Custom comments: Lots of tips, more wanted!

2017-06-04 Thread Jeremy Roussak via 4D_Tech
#define informational 1 #define warning 2 … Hmm. I think I’ve seen that somewhere before. Jeremy Roussak j...@mac.com > On 4 Jun 2017, at 06:40, David Adams via 4D_Tech <4d_tech@lists.4d.com> wrote: > > > Define(Theme;Label;Value) // Value can be Long, String, Real, or Boolean > >

Re: Custom comments: Lots of tips, more wanted!

2017-06-04 Thread Jeremy Roussak via 4D_Tech
David, I have been a fan of custom constants since I started using 4D, probably because my background in C meant that I couldn’t imagine a programming environment which didn’t have them (whether as preprocessor directives or enumerations). I think some of your suggestions are wonderful.

Re: Need plugin that will set macOS window modified indicator

2017-06-08 Thread Jeremy Roussak via 4D_Tech
Try using 1 and 0 instead of True and False for the third parameter. Jeremy Jeremy Roussak j...@mac.com > On 8 Jun 2017, at 14:00, Spencer Hinsdale via 4D_Tech <4d_tech@lists.4d.com> > wrote: > > Awesome! > > I tried this and am having a problem creating a generic usage for "current >

Re: Custom comments: Lots of tips, more wanted!

2017-06-05 Thread Jeremy Roussak via 4D_Tech
David, I’ve missed enumerated types and structs very much, just as I’ve missed such things as pre- and post-increment and decrement, the ?: construct (now addressed by Choose, admittedly), the lack of any true ability to break out of a loop and some of the more interesting and creative uses of

Re: Counting # of specific characters in string/text

2017-05-05 Thread Jeremy Roussak via 4D_Tech
Position allows you to specify where in the text the search is to start. You don’t need to use Replace string: just start searching from the last found position+1. Jeremy Jeremy Roussak j...@mac.com > On 4 May 2017, at 17:58, John Baughman via 4D_Tech <4d_tech@lists.4d.com> > wrote: > >

Re: What to do about users who won't follow instructions?

2017-10-04 Thread Jeremy Roussak via 4D_Tech
Execution. In public, and slowly. Hanging, drawing and quartering used to be popular, among both executioners and the viewing public, and I’m sure there’s a case for bringing it back. Jeremy Roussak j...@mac.com > On 4 Oct 2017, at 12:39, Pat Bensky via 4D_Tech <4d_tech@lists.4d.com> wrote:

Re: How can a component get a pointer to a host form (dynamic) variable?

2017-10-14 Thread Jeremy Roussak via 4D_Tech
pointer is nil. I finally execute a host process that executes a > component process that returns the picture to the host to be copied to a > host form var. There must be a simpler way:( > > > On Wed, Oct 11, 2017 at 5:49 PM, Jeremy Roussak via 4D_Tech < > 4d_tech@lists.4d.com>

Re: Create multi array

2017-10-06 Thread Jeremy Roussak via 4D_Tech
EXECUTE FORMULA should do the trick. For ($i;1;17) $s:="ARRAY REAL(aANA_"+String($i)+";0)" EXECUTE FORMULA($s) End for Jeremy Jeremy Roussak j...@mac.com > On 6 Oct 2017, at 09:57, stardata.info via 4D_Tech <4d_tech@lists.4d.com> > wrote: > > Hi All, > > I need to create

Re: How can a component get a pointer to a host form (dynamic) variable?

2017-10-11 Thread Jeremy Roussak via 4D_Tech
Jim, I do it via a callback routine in the host. To make things easy, the component creates several methods in the host the first time it’s used. Jeremy Jeremy Roussak j...@mac.com > On 11 Oct 2017, at 13:02, Jim Dorrance via 4D_Tech <4d_tech@lists.4d.com> > wrote: > > How can a component

Re: Making LOG EVENT thread-safe

2017-09-25 Thread Jeremy Roussak via 4D_Tech
Please forgive me if I’m being dim, but isn’t a solution (maybe not the best, but a solution) to maintain the log as records in a table, which is periodically emptied into a file by a process which opens, writes and closes that file, then deletes the records in the table? It’s not an approach

Re: Listbox Spacing Between Columns

2017-09-24 Thread Jeremy Roussak via 4D_Tech
I reformat the text on the fly, adding spaces to the start. Not tidy, but it does work. Jeremy Jeremy Roussak j...@mac.com > On 24 Sep 2017, at 03:40, Sannyasin Siddhanathaswami via 4D_Tech > <4d_tech@lists.4d.com> wrote: > > Excellent idea, unfortunately trailing spaces are ignored. Too

Resolving format

2017-10-02 Thread Jeremy Roussak via 4D_Tech
If have defined, for example, “|Money” in the Filters tab of Toolbox as "£#,###,##0;-£,##0”, I’d like to be able to resolve the format name into the text of the format. Is there a valid way in which it can be done? Jeremy Jeremy Roussak j...@mac.com

Re: Resolving format

2017-10-02 Thread Jeremy Roussak via 4D_Tech
Thanks, both. Spencer, that’s ingenious! Arnaud, that’s what I’ve been doing until now, under v14. I downloaded a trial of v16 over the weekend, and the call to API Get Indexed Resource failed with a permissions error of some kind. It may be connected with my calling it from a component, I

Re: Love 4D's math interpretation...

2017-09-27 Thread Jeremy Roussak via 4D_Tech
Why, Chip? Exponentiation is just another operator. Would you say the same about 4^6? Jeremy Roussak j...@mac.com > On 27 Sep 2017, at 18:58, Chip Scheide via 4D_Tech <4d_tech@lists.4d.com> > wrote: > > I know that - BUT - 10^6 should be interpreted as a single value > > On Wed, 27

Re: Making LOG EVENT thread-safe

2017-09-26 Thread Jeremy Roussak via 4D_Tech
. Live and learn. Jeremy Jeremy Roussak j...@mac.com > On 25 Sep 2017, at 19:03, David Adams via 4D_Tech <4d_tech@lists.4d.com> > wrote: > > On Mon, Sep 25, 2017 at 6:06 PM, Jeremy Roussak via 4D_Tech < > 4d_tech@lists.4d.com> wrote: > >> Please fo

Re: How can a component get a pointer to a host form (dynamic) variable?

2017-10-11 Thread Jeremy Roussak via 4D_Tech
nt to copy a SVG picture created in a component ( using lots of > data only available in the subform) to the host form. > > On Wed, Oct 11, 2017 at 2:21 PM, Jeremy Roussak via 4D_Tech < > 4d_tech@lists.4d.com> wrote: > >> Jim, >> >> I do it via a callback rou

Re: subforms and object focus

2017-11-15 Thread Jeremy Roussak via 4D_Tech
How about putting the GOTO OBJECT in the On load phase of the subform’s form method? Jeremy Jeremy Roussak j...@mac.com > On 15 Nov 2017, at 17:34, Randy Jaynes via 4D_Tech <4d_tech@lists.4d.com> > wrote: > > Has anyone figured out how go to a specific object in a subform when opening >

Re: Menus and components

2017-12-18 Thread Jeremy Roussak via 4D_Tech
Miyako, You’re quite right: the documentation is clear. However, it was every bit as clear in v14, and what I am doing worked. I’m not being quite as naughty as you might think. My main host database handles my practice (I’m a lawyer). It has a self-contained unit within it which displays a

Menus and components

2017-12-17 Thread Jeremy Roussak via 4D_Tech
I’m changing from v14 to v16 and am getting confused. I have a component which is used in two applications. It displays and works with a multi-page form which is entirely self-contained. The form was set in v14 to have an active menu bar, called “Main”. The component doesn’t have a menu bar

Re: Menus and components

2017-12-17 Thread Jeremy Roussak via 4D_Tech
rather than using the toolbox Menu editor. Can that really be right? Jeremy Jeremy Roussak j...@mac.com > On 17 Dec 2017, at 19:13, Arnaud de Montard via 4D_Tech > <4d_tech@lists.4d.com> wrote: > > >> Le 17 déc. 2017 à 20:01, Jeremy Roussak via 4D_Tech <4d_tec

Re: info.plist

2017-10-29 Thread Jeremy Roussak via 4D_Tech
; > > On Oct 29, 2017, at 1:31 AM, Jeremy Roussak via 4D_Tech > > <4d_tech@lists.4d.com> wrote: > > > > I’m sure I’m missing something obvious (and I think I’ve managed to solve > > the issue in the past), but… > > > > How do I tell 4D to put s

info.plist

2017-10-29 Thread Jeremy Roussak via 4D_Tech
I’m sure I’m missing something obvious (and I think I’ve managed to solve the issue in the past), but… How do I tell 4D to put stuff into the info.plist file for a built application? I’m particularly interested in version strings. Mac, 4Dv14. Thanks. Jeremy Jeremy Roussak j...@mac.com

Re: Comparing all methods in structures

2018-06-16 Thread Jeremy Roussak via 4D_Tech
Object Access’. >> >> Then I use Text Wrangler (BBEdit will also do this) to compare the text >> files. >> >> It will list all the differences. Great tool! >> >> Regards, >> >> Rudy Mortier >> Two Way Communications bvba >> >>

Comparing all methods in structures

2018-06-15 Thread Jeremy Roussak via 4D_Tech
I have two structures, which contain quite a few methods. One has been edited a bit but due to a slapdash approach to record-keeping, I can’t easily establish which methods have been edited. Is there an easy way to compare the methods in the two structures? I suppose running a small method, in

Re: SET WINDOW RECT v14 / v16

2017-12-30 Thread Jeremy Roussak via 4D_Tech
On 28 Dec 2017, at 15:57, Arnaud de Montard via 4D_Tech <4d_tech@lists.4d.com> wrote: > > >> Le 28 déc. 2017 à 14:35, Jeremy Roussak via 4D_Tech <4d_tech@lists.4d.com> a >> écrit : >> >> Is there an alternative way of doing what I’m trying to get d

Re: v16R and v16

2018-01-22 Thread Jeremy Roussak via 4D_Tech
gs that go unresolved. There is an inexpensive, well-supported alternative > <http://www.e-node.net/redir/EN/produit_id_20/AreaList-Pro.html>. > > -- > Douglas von Roeder > 949-336-2902 > > On Sun, Jan 21, 2018 at 9:34 AM, Jeremy Roussak via 4D_Tech > <4d_tech@li

Re: Styled text to clipboard - v16

2018-02-01 Thread Jeremy Roussak via 4D_Tech
does what you need? > > Pat > > On 1 February 2018 at 10:32, Jeremy Roussak via 4D_Tech < > 4d_tech@lists.4d.com> wrote: > >> I want to put styled text (nothing complex: just some in italic and some >> in bold) onto the clipboard so that I can paste it into

Styled text to clipboard - v16

2018-02-01 Thread Jeremy Roussak via 4D_Tech
I want to put styled text (nothing complex: just some in italic and some in bold) onto the clipboard so that I can paste it into Word or Mail or some such. I used to do it by using Write: make an offscreen area, put the text in it, style it and then do WR EXECUTE COMMAND ($area;wr cmd copy)

Re: Styled text to clipboard - v16

2018-02-01 Thread Jeremy Roussak via 4D_Tech
NVOKE-ACTION.301-3316995.en.html > > see also: > > https://blog.4d.com/discover-and-use-standard-actions/ > > https://blog.4d.com/more-standard-actions-for-styled-text/ > > https://blog.4d.com/create-your-own-interface-for-4d-write-pro/ > > 2018/02/01 19:32、Jeremy R

SET WINDOW RECT v14 / v16

2017-12-28 Thread Jeremy Roussak via 4D_Tech
I have a form with several pages. Movement is controlled by a tab object. The pages differ greatly in the number of fields they contain and some are much larger than others: the width is constant (and the form is not resizable by the user) but the height varies. I resize the window when the

Re: SET WINDOW RECT v14 / v16

2018-01-03 Thread Jeremy Roussak via 4D_Tech
size/move? > > If so - maybe this is the problem? > > Chip > > > On Sat, 30 Dec 2017 11:20:21 +, Jeremy Roussak via 4D_Tech wrote: >> On 28 Dec 2017, at 15:57, Arnaud de Montard via 4D_Tech >> <4d_tech@lists.4d.com> wrote: >>> >>>

Re: Feature request thoughts

2018-07-28 Thread Jeremy Roussak via 4D_Tech
Command-shift-[ and command-shift-] do the job in Safari and in the Finder. > On 26 Jul 2018, at 20:56, Timothy Penner via 4D_Tech <4d_tech@lists.4d.com> > wrote: > > Command+Tab cannot be used for switching tabs because it is used by the OS > for switching applications. > > The shortcut for

Re: v13+ Unicode characters 1-7

2018-07-31 Thread Jeremy Roussak via 4D_Tech
Chip Are you absolutely constrained to use a single character? Just a thought. Jeremy > On 30 Jul 2018, at 20:01, Chip Scheide via 4D_Tech <4d_tech@lists.4d.com> > wrote: > > I am trying to find a character I can use as an internal (to my > program) data separator which will not be

Re: Example databases

2018-08-01 Thread Jeremy Roussak via 4D_Tech
Now why didn’t I think of that? Thanks, Pat. Jeremy > On 1 Aug 2018, at 08:27, Pat Bensky via 4D_Tech <4d_tech@lists.4d.com> wrote: > > Look on the blog ... > https://blog.4d.com > > On Wed, 1 Aug 2018 at 08:17, Jeremy Roussak via 4D_Tech < > 4d_tech@lists.4d.c

Example databases

2018-08-01 Thread Jeremy Roussak via 4D_Tech
Are there any examples showing off the new features of v17? I’m thinking in particular of ORDA. Jeremy ** 4D Internet Users Group (4D iNUG) Archive: http://lists.4d.com/archives.html Options:

Re: POW Function

2018-07-25 Thread Jeremy Roussak via 4D_Tech
> On 24 Jul 2018, at 17:32, Cannon Smith via 4D_Tech <4d_tech@lists.4d.com> > wrote: > > > In 4D I’m doing this: > > $rRange:=1200-50 > $rExponent:=Int(Log($rRange)) > $rMagnitude:=10^$rExponent > > But I’m getting an exponent of 7 instead of 3. Any ideas what I’m doing wrong? > > Thanks.

Re: ORDA - updating data in listboxes

2018-08-18 Thread Jeremy Roussak via 4D_Tech
Reminds me of sign in a lab: “CAUTION: do not look into laser with remaining eye”. Jeremy > On 13 Aug 2018, at 17:17, Two Way Communications via 4D_Tech > <4d_tech@lists.4d.com> wrote: > > Looking on the bright side, this will elude you only ONCE ;-) >

v16R and v16

2018-01-21 Thread Jeremy Roussak via 4D_Tech
Is there a timetable for new features in R releases to be added to public releases? There’s a new command (LISTBOX SET PROPERTY) that I’ve been anticipating for years; it was introduced in v16R2, apparently, but isn’t in v16.3 I’m not a partner and don’t get R releases, which I accept means

Re: 4D Called from AppleScript

2018-03-06 Thread Jeremy Roussak via 4D_Tech
That’s the one I had in mind, yes. Jeremy Jeremy Roussak j...@mac.com > On 6 Mar 2018, at 15:57, Axel Kohlepp via 4D_Tech <4d_tech@lists.4d.com> > wrote: > > Miyako: https://github.com/miyako/4d-tips-custom-url > > mfg > > Axel Kohlepp > > Herr Alexander Heintz via 4D_Tech schrieb: >>

Re: 4D Called from AppleScript

2018-03-06 Thread Jeremy Roussak via 4D_Tech
Miyako has something that allows 4D to respond to custom URLs. It was mentioned here recently. You might be able to adapt that. Just a thought. Jeremy Jeremy Roussak j...@mac.com > On 6 Mar 2018, at 15:07, Herr Alexander Heintz via 4D_Tech > <4d_tech@lists.4d.com> wrote: > > Hi Folks, >

Re: 4d16 r6 documentation

2018-04-01 Thread Jeremy Roussak via 4D_Tech
That’s OK. I still wonder if the HTML documentation exists. Jeremy Jeremy Roussak j...@mac.com > On 31 Mar 2018, at 17:41, John Baughman wrote: > > Oooops. I thought you were someone else. > > It was late, I was tired, and I had just finished working the 61st

Re: 4d16 r6 documentation

2018-03-31 Thread Jeremy Roussak via 4D_Tech
t me to the tab for 16 r6, so 4D must hae just added the r6 > docs. > > mike goldsmith > > Sent from my iPad > > > On Mar 31, 2018, at 7:48 AM, Jeremy Roussak via 4D_Tech > > <4d_tech@lists.4d.com> wrote: > > > > John, > > > > I’m aware

4d16 r6 documentation

2018-03-31 Thread Jeremy Roussak via 4D_Tech
Is the HTML version downloadable from somewhere? The link on the doc.4d.com page gets stuff for v16.3, which isn’t what I was hoping for. Jeremy Jeremy Roussak j...@mac.com ** 4D Internet Users Group

Re: 4d16 r6 documentation

2018-03-31 Thread Jeremy Roussak via 4D_Tech
before deploying any newly > released version to my clients. Sooner if there is something in the release > that is compelling or fixes a bug that is affecting the client. > > John Baughman > Kailua, Hawaii > john...@hawaii.rr.com > >> On Mar 30, 2018, at 9:57 PM

Windows script?

2018-10-07 Thread Jeremy Roussak via 4D_Tech
I have an AppleScript which is called from 4D with four numeric parameters. Provided MS Word is running and the cursor is in a table, it fills columns 2 to 5 of the table with its parameters and tabs out of the last column, probably creating a new row in the table. I’m now called upon to make

Re: Windows script?

2018-10-08 Thread Jeremy Roussak via 4D_Tech
Views tab and find Macros on the right. > > Google is your friend - running VBA macros. > > HTH, > > Jim > > > > > > On Sun, Oct 7, 2018 at 6:02 PM Jeremy Roussak via 4D_Tech < > 4d_tech@lists.4d.com> wrote: > >> I have an AppleScript

Elementary question

2018-10-13 Thread Jeremy Roussak via 4D_Tech
I usually work on a Mac. I have to develop one application in 4D on a Windows machine. It’s already up and working on the Mac. On my Mac, I can put aliases to a few of my components, which I use frequently, in the Components folder of the 4D application. They’re then available to any 4D

Codesigning

2018-10-14 Thread Jeremy Roussak via 4D_Tech
I have a “developer ID application” certificate from Apple, just created. It shows in my keychain (https://www.dropbox.com/s/wsyl0w7jjqmz0mw/Screenshot%202018-10-14%2014.51.21.jpg?dl=0 ). What do I put into

Re: Codesigning

2018-10-14 Thread Jeremy Roussak via 4D_Tech
, most of them from 4D, have attributes which prevent signing from working. Or maybe I’m just neurotic. Jeremy > On 14 Oct 2018, at 14:54, Jeremy Roussak via 4D_Tech <4d_tech@lists.4d.com> > wrote: > > I have a “developer ID application” certificate from Apple, just created.

Re: v17R2

2018-10-15 Thread Jeremy Roussak via 4D_Tech
e Manager? That should > refresh all your registered license, and I believe that’d ‘transfer’ your V17 > to V17R2. > > > On Oct 15, 2018, at 4:50 AM, Jeremy Roussak via 4D_Tech > > <4d_tech@lists.4d.com> wrote: > > > > My v17 licences show up in the “build application”

Re: Codesigning

2018-10-15 Thread Jeremy Roussak via 4D_Tech
rop or E-Mail (nut not USB or shared drive). > > 2018/10/14 23:04、Jeremy Roussak via 4D_Tech > <4d_tech@lists.4d.com<mailto:4d_tech@lists.4d.com>>のメール: > Removing all the extended attributes on the huge number of files in the > compiled application then allows code signi

v17R2

2018-10-15 Thread Jeremy Roussak via 4D_Tech
My v17 licences show up in the “build application” dialog but are greyed out and when I click “build”, 4D tells me that there are none installed. My maintenance runs to the end of next month, so that shouldn’t be a problem. Is there a known issue with licences in R2, or is it just me? Jeremy

Re: Elementary question - solved

2018-10-16 Thread Jeremy Roussak via 4D_Tech
I have discovered that if I change the names of the shortcut files so that they match exactly those of the component databases to which they point, 4D recognises and follows them. This involved deleting “ - shortcut” from each name. Odd. Jeremy > On 13 Oct 2018, at 12:01, Jeremy Roussak

Re: Elementary question

2018-10-13 Thread Jeremy Roussak via 4D_Tech
In house. Does it matter? Jeremy On 13 Oct 2018, 17:00 +0100, Pat Bensky via 4D_Tech <4d_tech@lists.4d.com>, wrote: > Is it an in-house solution or deployed? > PB > > On Sat, 13 Oct 2018 at 12:01, Jeremy Roussak via 4D_Tech < > 4d_tech@lists.4d.com> wrote: > >

Re: [off] Holy Geez! Boston Dynamics - Spot

2018-10-16 Thread Jeremy Roussak via 4D_Tech
Wow. Thanks for that, Chip. Jeremy > On 16 Oct 2018, at 16:04, Chip Scheide via 4D_Tech <4d_tech@lists.4d.com> > wrote: > > ~15 min video > https://www.youtube.com/watch?v=AO4In7d6X-c > > Chip ** 4D Internet Users Group

Setting up an entity / collection listbox in code

2018-10-29 Thread Jeremy Roussak via 4D_Tech
It’s great to be able to make generic listboxes and set them up entirely in code. It’s easy for array-based and selection-based listboxes, but can it be done for entity/collection boxes? In other words, are there LISTBOX SET xx calls to identify the names of the variables unique to

Re: Setting up an entity / collection listbox in code

2018-10-31 Thread Jeremy Roussak via 4D_Tech
Julio, you provide the answer to my question, which is “no”. I’m disappointed, I must confess. Everyone, thanks for suggesting workarounds. I hope the ability to specify the properties in code will be implemented - and soon! Jeremy > On 30 Oct 2018, at 20:10, Julio Carneiro via 4D_Tech

Re: Setting up an entity / collection listbox in code

2018-10-30 Thread Jeremy Roussak via 4D_Tech
these references: > > https://i.postimg.cc/SxB6FPPL/collection-listbox.png > <https://i.postimg.cc/SxB6FPPL/collection-listbox.png> > > Use the "LISTBOX INSERT COLUMN FORMULA” command to create columns. Remember > to prefix attribute names with “This." > >

Re: Elementary question

2018-10-20 Thread Jeremy Roussak via 4D_Tech
Andrew, Thanks. As I’ve written, I solved (or worked round) the problem by renaming the shortcut files to match the names of the destinations, but a hard link would certainly seem to be an alternative. Jeremy > On 16 Oct 2018, at 00:18, Andrew Hickey via 4D_Tech <4d_tech@lists.4d.com> >

[off] Windows installer recommendation

2018-10-20 Thread Jeremy Roussak via 4D_Tech
I have been inveigled into making a Windows version of a Mac 4D application. I have no experience of Windows programming and very little of using it, but 4D seems to handle pretty much everything to make a working Windows application. I do need an installer, though: the people who will use it

Re: [off] Windows installer recommendation

2018-10-20 Thread Jeremy Roussak via 4D_Tech
Thanks, Pat - that looks as if it will be the bill perfectly. Jeremy > On 20 Oct 2018, at 13:31, Pat Bensky via 4D_Tech <4d_tech@lists.4d.com> wrote: > > Inno Setup. Been using it for years. Works great and very configurable. And > free :) > > > On Sat, 20 Oct 20

Re: Mojave, dark mode and v17

2018-11-13 Thread Jeremy Roussak via 4D_Tech
I’m slightly surprised there’s been no response to this from anyone at 4D. Dark mode is a pleasant environment in which to write code and it’s curious that 4D seems not to support it. Jeremy > On 6 Nov 2018, at 08:31, Jeremy Roussak via 4D_Tech <4d_tech@lists.4d.com>

Mojave, dark mode and v17

2018-11-06 Thread Jeremy Roussak via 4D_Tech
Is there a way of getting applications built in v17 - and indeed v17 itself - to honour dark mode? Jeremy ** 4D Internet Users Group (4D iNUG) Archive: http://lists.4d.com/archives.html Options:

Re: Mojave, dark mode and v17

2018-11-14 Thread Jeremy Roussak via 4D_Tech
Yes, you can set up colours for dark mode in the editor. Dark mode doesn’t affect the application windows, though. I expect they too can be faked, but these are things that an application which is configured to run under Mojave should do automatically when the appearance mode is changed. Maybe

Re: Mojave, dark mode and v17

2018-11-06 Thread Jeremy Roussak via 4D_Tech
Me, or 4Dv17? Jeremy > On 6 Nov 2018, at 15:51, Kirk Brooks via 4D_Tech <4d_tech@lists.4d.com> wrote: > > Read more Nietzsche? > > On Tue, Nov 6, 2018 at 12:31 AM Jeremy Roussak via 4D_Tech < > 4d_tech@lists.4d.com> wrote: > >> Is there a way of getting

Re: v13+ Components and Host forms

2019-01-16 Thread Jeremy Roussak via 4D_Tech
I don’t think so, no: the form isn’t visible from the component. I have worked round this by having a method in the host, callable by the component, which opens a specified form (for my purposes, using DIALOG, but I can’t see why ADD RECORD shouldn’t be OK as well). It works. Jeremy > On 17

Re: Coding/Development Style Guide?

2018-12-17 Thread Jeremy Roussak via 4D_Tech
And one that I’ve seen frequently: there are 10 kinds of people in the world: those who understand binary and those who don’t. Jeremy > On 17 Dec 2018, at 03:51, Tom Benedict via 4D_Tech <4d_tech@lists.4d.com> > wrote: > > >> On Dec 16, 2018, at 14:24, Kirk Brooks via 4D_Tech

View Pro

2018-12-05 Thread Jeremy Roussak via 4D_Tech
I’ve never used View before. Older versions than v17 seem to have a suite of PV commands for getting and setting cell values and so on. They aren’t listed in the 4D View Pro documentation. What am I missing? (something obvious, I’m sure). Jeremy

Re: View Pro

2018-12-06 Thread Jeremy Roussak via 4D_Tech
rame.html#scvalue.html > http://help.grapecity.com/spread/SpreadJSWeb/webframe.html#scgetvalue.html > > As for 4D documentation, see this post from Laurent Esnault at 4D: > http://forums.4d.com/Post/FR/26665847/1/26673658#26673658 > > There are a few helpful 4D View Pro examples at blog.4d.c

Re: View Pro

2018-12-08 Thread Jeremy Roussak via 4D_Tech
Thanks, Miyako. Instructive. Jeremy > On 7 Dec 2018, at 00:45, Keisuke Miyako via 4D_Tech <4d_tech@lists.4d.com> > wrote: > > I have posted a demo > > goto 3. WA page, click JS, select a code snippet and click Execute. click > Method and run directly from editor to see how it works. > >

Re: [off-ish] Regex help

2018-11-29 Thread Jeremy Roussak via 4D_Tech
An alternative to ungreedy would be to exclude colons from the strings to be matched: $folderPathMotif:="([^:]*:)" Jeremy > On 28 Nov 2018, at 19:27, Peter Bozek via 4D_Tech <4d_tech@lists.4d.com> > wrote: > > On Wed, Nov 28, 2018 at 7:30 PM Chip Scheide via 4D_Tech < >

Re: Transferring Build Mac Client via Google Drive Web Interface Fails

2018-11-20 Thread Jeremy Roussak via 4D_Tech
Dave, FWIW, I found information on signing hard to unearth and harder to understand. Eventually, I managed to sign my compiled application using these commands at the end of my build method: LAUNCH EXTERNAL PROCESS("xattr -cr "+$appPath) LAUNCH EXTERNAL PROCESS("codesign --deep

Re: Transferring Build Mac Client via Google Drive Web Interface Fails

2018-11-28 Thread Jeremy Roussak via 4D_Tech
That’s really useful, Miyako. Thanks. Jeremy > On 28 Nov 2018, at 08:58, Keisuke Miyako via 4D_Tech <4d_tech@lists.4d.com> > wrote: > > the target path can be found in the build project > > for instance, in this example, the path is accessible with the code > > If (Is macOS) >

Re: Transferring Build Mac Client via Google Drive Web Interface Fails

2018-11-26 Thread Jeremy Roussak via 4D_Tech
> On 20 Nov 2018, at 15:27, Dave Nasralla via 4D_Tech <4d_tech@lists.4d.com> > wrote: > > Is there an easy way to get the file path to the built client and > server apps for the command line? > Not that I know of. I have it hard-coded, which means that it breaks if I fiddle with it. So I

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

Re: Reporting progress

2019-03-21 Thread Jeremy Roussak via 4D_Tech
Thanks for all the suggestions. The problem with the Progress component is that either it displays only one line (the current subtask) or it clutters the screen with lots of irrelevant (for my purposes) progress bars. Each step in the process will take a minimal amount of time, but as what

Re: "Attempting to retype using a pointer"

2019-02-25 Thread Jeremy Roussak via 4D_Tech
ate value is stored in your object and then how you reference it. There's > another post about dates and objects that sounds on point with what you are > doing. > > > On Mon, Feb 25, 2019 at 7:37 AM Jeremy Roussak via 4D_Tech < > 4d_tech@lists.4d.com> wrote: > >

Re: "Attempting to retype using a pointer"

2019-02-26 Thread Jeremy Roussak via 4D_Tech
ve some 'quirks'. > I suspect that you have found another. > > Chip > > On Tue, 26 Feb 2019 07:18:36 +, Jeremy Roussak via 4D_Tech wrote: >> Kirk, >> >> My apologies. I mistyped the offending lines! >> >> The lines causing the error dereference the poin

Re: "Attempting to retype using a pointer"

2019-02-27 Thread Jeremy Roussak via 4D_Tech
ter I did this a few times, and became familiar with the flow > of ORDA code, I usually have a method, or set of methods, that's about 1/3 > the size of the original. Speed depends on the number and type of lookups. > > On Mon, Feb 25, 2019 at 11:18 PM Jeremy Roussak via 4D_Tech < > 4

"Attempting to retype using a pointer"

2019-02-25 Thread Jeremy Roussak via 4D_Tech
I have a form which shows a variable number of rows of numbers and text. The rows are created using OBJECT DUPLICATE on each of the half-dozen items in the row (yes, using a collection listbox might be a better way do to it, but I wrote this code a while ago). If a row is deleted, I need to

Re: OAuth

2019-03-10 Thread Jeremy Roussak via 4D_Tech
Solved: I wasn’t providing the necessary headers. Jeremy > On 10 Mar 2019, at 18:49, Jeremy Roussak via 4D_Tech <4d_tech@lists.4d.com> > wrote: > > Miyako, > > That was very helpful, thanks, and I’ve now completed that first step of the > “authentication journey”;

Re: OAuth

2019-03-10 Thread Jeremy Roussak via 4D_Tech
Miyako, That was very helpful, thanks, and I’ve now completed that first step of the “authentication journey”; I can get an authorization code which I can copy and paste manually, which is fine: it will last for 18 months. The next step is using the authorization code to get an access token,

Reporting progress

2019-03-20 Thread Jeremy Roussak via 4D_Tech
I’d like to give feedback about the process of a multi-step task - something like Contacting server… Signing in… Getting obligations… Submitting data… Done. appearing one line at a time. Updating a text field in my process’s own window won’t work, as I don’t leave the process and no form

Re: Reporting progress

2019-03-20 Thread Jeremy Roussak via 4D_Tech
les Miller via 4D_Tech <4d_tech@lists.4d.com> > wrote: > > What version. Can you use progress component > > On Wed, Mar 20, 2019 at 6:00 AM Jeremy Roussak via 4D_Tech < > 4d_tech@lists.4d.com> wrote: > >> I’d like to give feedback about the proces

OAuth

2019-03-10 Thread Jeremy Roussak via 4D_Tech
I’m trying to get an OAuth 2.0 access token. I’m confused about the redirect uri and how to implement it in 4D. The server I’m hoping to talk to is the Value Added Tax server at HMRC in England (in a couple of months’ time, entering figures for VAT returns will have to be done by software

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: Odd thing with iso dates

2019-02-08 Thread Jeremy Roussak via 4D_Tech
At a guess, it’s because at that time of year, British Summer Time is active; so 00:00 on 14th August local time is 23:00 on 13th August GMT. Jeremy > On 8 Feb 2019, at 14:32, Uist Macdonald via 4D_Tech <4d_tech@lists.4d.com> > wrote: > > > I do not understand what is happening here in

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

  1   2   >