Re: Difference between OB Copy and :=

2018-06-12 Thread Cannon Smith via 4D_Tech
The neat thing about objects, in my opinion, is that they are reference based. I would try to stay away from using OB Copy unless it is warranted. For example, in your example you could just use the field directly or a reference to the field. Unless you save the record, changes won’t be put

Re: Difference between OB Copy and :=

2018-06-12 Thread johnbdhPop via 4D_Tech
Thanks Cannon, So maybe I want to use OB Copy when I load the record in an input form. That way I can make changes to the object without changing the object in the field. That way if the user cancels I don’t have to worry about the field. When the user saves the record, should

Re: Difference between OB Copy and :=

2018-06-12 Thread Cannon Smith via 4D_Tech
> [Letter Templates]WP_SeriesPictures:=oPictures Both [Letter Templates]WP_SeriesPictures and oPictures point to the same C_Object instance in memory. If you change either one, they are “both” changed. > [Letter Templates]WP_SeriesPictures:=OB Copy(oPictures) [Letter

Difference between OB Copy and :=

2018-06-12 Thread johnbdhPop via 4D_Tech
  What is the difference between the following... [Letter Templates]WP_SeriesPictures:=oPictures [Letter Templates]WP_SeriesPictures:=OB Copy(oPictures) Both work. The LRM for OB Copy speaks to “a complete (deep) copy of the properties”. What does “deep” mean. Thanks, John

RE: Moving Methods/Forms between structures seems disabled - SOLVED!!!

2018-06-12 Thread Randy Engle via 4D_Tech
Makes perfect senseThanks Randy Engle, Director XC2 Software LLC – XC2LIVE! for the record, it is not a 4D thing, any applications running as administrator (console, for example) will not accept drop from an app running on a lesser entitlement. 2018/06/13 7:58、Randy Engle via 4D_Tech

Re: Moving Methods/Forms between structures seems disabled - SOLVED!!!

2018-06-12 Thread Keisuke Miyako via 4D_Tech
for the record, it is not a 4D thing, any applications running as administrator (console, for example) will not accept drop from an app running on a lesser entitlement. 2018/06/13 7:58、Randy Engle via 4D_Tech <4d_tech@lists.4d.com> のメール: If you have one of your 4D

Re: Scroll position of display-type subform

2018-06-12 Thread Richard Wright via 4D_Tech
Thanks, Miyako, that works! > From: Keisuke Miyako > To: 4D iNug Technical <4d_tech@lists.4d.com> > Subject: Re: Scroll position of display-type subform > Message-ID: <30f1fc18-68d9-4b1b-9413-aba4d7db5...@4d.com> > Content-Type: text/plain; charset="utf-8" > > haven't tried, > but I wonder if

Re: 4D Write to 4D Write Pro, Moving and using templates (Was: WR Count equivalent in 4D Write Pro)

2018-06-12 Thread JOHN BAUGHMAN via 4D_Tech
Step 1 should have read "Using WR Count and WR GET PICTURE IN PAGE INFO" > On Jun 12, 2018, at 11:41 AM, JOHN BAUGHMAN wrote: > > 1. In 4D Write store the position and dimensions of each anchored picture > place holder into a c_object. > Using WR Count and WR SELECT PICTURE IN

4D Write to 4D Write Pro, Moving and using templates (Was: WR Count equivalent in 4D Write Pro)

2018-06-12 Thread JOHN BAUGHMAN via 4D_Tech
If anyone was following the original thread, the underlying problem was how to address Anchored Picture place holders when converting a 4D Write template to 4D Write Pro. Beyond that, how to populate the place holder pictures when the 4D Write Pro template is used. My last post left this

RE: Delay process bug

2018-06-12 Thread Dennis, Neil via 4D_Tech
I also did some digging our servers are patched on a monthly bases and restarted. So usually restart is few days over the 24.74 days. We have only had one instance of the delay process bug. So most of the time, even if it is a 32 bit signed integer problem, we don't have an issue with the delay

Re: v13 - Windows, DOS, LEP, Virtual environments, attrib command

2018-06-12 Thread Chip Scheide via 4D_Tech
I found a actual PC, and moved everything over there to try. the answer is : YES the virtual environment was causing the hide/show attributes of the files to be wonky, and folders not to work at all. On Tue, 12 Jun 2018 20:19:11 +, Keisuke Miyako via 4D_Tech wrote: > to rule out virtual

Re: Delay process bug

2018-06-12 Thread Jim Crate via 4D_Tech
I doublechecked the time the server was started until the last time the processes were delayed and it was actually 24.74 (2137700 seconds). The processes were delayed for 5 minutes. However, that time period + the delay is still 9,483,647 ms, or 2.63 hours, short of the 2147483647 max signed

RE: Delay process bug

2018-06-12 Thread Dennis, Neil via 4D_Tech
> 32-bit long integer flips to negative, after 24 days. You might be on to something  Could pass this on to the 4D tech guys... there are several bugs already reported for this. Neil Privacy Disclaimer: This message contains confidential information and is intended only for the named

Re: Delay process bug

2018-06-12 Thread Jim Crate via 4D_Tech
There have been enough reports that they know it happens on both macOS and Windows. Multiple reports indicate the processes can continue when RESUME PROCESS is called. In this case RESUME PROCESS would have worked, because when quitting the server, the processes started again because the

Re: Delay process bug

2018-06-12 Thread Cannon Smith via 4D_Tech
We just released a new version of our software a week and a half ago. In this version I added a palette window on the server which runs On Timer. I also added code to most every background process which updates some information every time it wakes up from a Delay Process call. The palette

Re: Delay process bug

2018-06-12 Thread Keisuke Miyako via 4D_Tech
22 days does sound suspicious; as if (no proof), the scheduler is testing if milliseconds "minus" process up-time is "greater than" delay time... such logic would break when milliseconds expressed in signed 32-bit long integer flips to negative, after 24 days. (milliseconds is counted since

RE: Delay process bug

2018-06-12 Thread Dennis, Neil via 4D_Tech
> DELAY PROCESS never comes back Be sure to submit a bug with 4D when this happens. I submitted one and they said if it isn't reproducible they "can't" fix it. If there is enough complaining about it, I hope they would spend time digging into it and realize it is a problem even if it can't be

Re: v13 - Windows, DOS, LEP, Virtual environments, attrib command

2018-06-12 Thread Keisuke Miyako via 4D_Tech
to rule out virtual environment as decisive factor, perhaps you could try https://github.com/miyako/4d-plugin-document-properties as mentioned multiple times, an accurate understanding of how path escaping works on CLI is required, especially for folder paths on windows as by definition they end

Re: Delay process bug

2018-06-12 Thread Jim Crate via 4D_Tech
Our server (macOS 10.11, 4D 16.3 HF3 64-bit) hit this bug again last week after being up for about 22 days. There are 2 separate processes that run periodically, both at the same time stopped waking from DELAY PROCESS. The Server window also was not showing the 4D username in the user list,

v13 - Windows, DOS, LEP, Virtual environments, attrib command

2018-06-12 Thread Chip Scheide via 4D_Tech
I have run across a situation where I *think* the problem is a virtual environment. Using LEP I am trying to set files &/or folders (in)visible. The base attrib command is: attrib [+/-]H [/S /D] Path where [+/-] = make hidden/ make visible where [/S /D] = switches to apply to all files &

Re: v13+ Progress component, and other components

2018-06-12 Thread Chip Scheide via 4D_Tech
not exactly.. :) I have component which has 4D code which wraps the Progress component, this did 2 things for me - I had existing code for thermometers & barber poles, so I just used those method calls to manage Progress and id not have to go back through lots of code to change calls, method

Re: v16 Time picker - bound variable changed

2018-06-12 Thread Jody Bevan via 4D_Tech
Thanks Keisuke. That explains it. I still have not wrapped my head around how to tell when a non-R version will have the features of an R-version. I have read the BLOG on it, and it does not go into that detail. How can we know what are ‘feature’ equivalent? I spent time yesterday reading on:

Re: Why won't Help Tip editor accept Carriage Return?

2018-06-12 Thread Pat Bensky via 4D_Tech
We manage help tips this way: - For each object, select the On Mouse Enter form event - We have a Help Tip named "HelpText" which simply contains a variable, tHelpText. Select that Help Tip for each object. - On the object, populate the tHelpText variable in the On Mouse Enter form event. With

Re: Write Pro: programmatically manipulate text expertise needed

2018-06-12 Thread Pat Bensky via 4D_Tech
Piotr, 1. I think you will need to use ST GET PLAIN TEXT to get all the text after the specified range and then look for the first return character in that selection. I believe this is the only way to get an accurate position with styled text. 2. Again, use ST GET PLAIN TEXT to get a range of

Write Pro: programmatically manipulate text expertise needed

2018-06-12 Thread Piotr Chabot Stadhouders via 4D_Tech
Hi all, We are in the progress of migrating from 4D Write to Write Pro A lot of things are going fine, but there is one area that seems easy but I am having difficulties with it and that is programmatically manipulating text I give 2 examples that maybe seem obvious to others but are not for

Re: Bug reports?

2018-06-12 Thread Peter Bozek via 4D_Tech
On Mon, Jun 11, 2018 at 9:00 PM, Alan Chan via 4D_Tech <4d_tech@lists.4d.com > wrote: > Try > > http://forums.4d.com/Bugs/EN/ > > this just redirect me to http://forums.4d.com/MyHome/EN, so I gather it does this to non-partners too. -- Peter Bozek