Re: just a curiosity - pre emptive threads

2018-07-11 Thread Keisuke Miyako via 4D_Tech
Should have clarified: the reason why I bring up the “execute on server” property is because a trigger is kind of like a specific version of such methods. 2018/07/12 14:41、Keisuke Miyako via 4D_Tech <4d_tech@lists.4d.com>のメール: After all, preemptive processes can't

Re: just a curiosity - pre emptive threads

2018-07-11 Thread Keisuke Miyako via 4D_Tech
I agree it would be nice to eventually have preemptive mode on the client side, but I also think the subject needs to be discussed in context. Preemptive mode makes it possible to run multiple processes independent of each other concurrently, so the primary benefactor should be the server.

Re: just a curiosity - pre emptive threads

2018-07-11 Thread Alan Chan via 4D_Tech
Of course, SAVE RECORD, DELETE RECORD is needed to invoke trigger. However, the method that call SAVE RECORD would be executed in 4D Remote and 4D Remote isn't supported. A dead lock? Alan Chan 4D iNug Technical <4d_tech@lists.4d.com> writes: >there is no "thread safe" property for triggers. >

Re: just a curiosity - pre emptive threads

2018-07-11 Thread Keisuke Miyako via 4D_Tech
there is no "thread safe" property for triggers. however, if you use commands like SAVE RECORD, DELETE RECORD from a method chain that is marked as thread safe, then the call chain of that table's trigger is checked for thread safety at compile time. in fact the compiler is smart enough to

Re: just a curiosity - pre emptive threads

2018-07-11 Thread Alan Chan via 4D_Tech
Hopefully, 4D remote could be supported in 4D 18:-( However, 4D server (thus triggers) is supported. I'm just wondering does anyone try that out on triggers? Alan Chan 4D iNug Technical <4d_tech@lists.4d.com> writes: >Are you doing all this in single user mode? > >I think a lot of people don't

Re: Objects without Stylesheets suddenly displayed as Wingdings!

2018-07-11 Thread Keisuke Miyako via 4D_Tech
FYI ACI0098245 has been fixed in 16. 224272 (nightly build after 16.3.HF4) and v17 (the web description is a bit off but it does concern wingdings) https://bugs.4d.fr/fixedbugslist?branch=16 Technically I suppose you could combine FORM GET NAMES, FORM LOAD, FORM GET OBJECTS, OBJECT Get style

Re: Objects without Stylesheets suddenly displayed as Wingdings!

2018-07-11 Thread Bob Miller via 4D_Tech
I've not ever seen this before today, when I was testing a database that I moved from v15 -> v16r6. The stylesheets came through, but some fields that had style sheets and all the ones that did not all of a sudden are displayed in the Wingdings font. Cheryl, how did you detect objects that

Re: V17 - Select list items Always Returns Zero

2018-07-11 Thread Keisuke Miyako via 4D_Tech
what is the "variable type" in property list set to? it should be numeric (default is string) just tested, $l:=New list APPEND TO LIST($l;"a";1) APPEND TO LIST($l;"b";2) APPEND TO LIST($l;"c";3) $p:=OBJECT Get pointer(Object named;"Tab Control") $p->:=$l and $sel:=Selected list items(*;"tab

Re: Component for 64 bit v6

2018-07-11 Thread Jim Dorrance via 4D_Tech
Thank you. On Wed, Jul 11, 2018 at 7:08 PM, Timothy Penner via 4D_Tech < 4d_tech@lists.4d.com> wrote: > See here: > Tech Tip: Important requirements to run a compiled structure on a 64-bit > server > http://kb.4d.com/assetid=77858 > > > > >

V17 - Select list items Always Returns Zero

2018-07-11 Thread Douglas von Roeder via 4D_Tech
I've converted an app running in 13.5 to V17 and the following line of code returns zero regardless of which tab I click on the tab control: $pageSelected_L:=Selected list items(*;"PROPOSAL_Tab_L") The tab control has an object name of PROPOSAL_Tab_L (the "_L" is a carry over from when it was

RE: v13 - Need Idea(s). Sets

2018-07-11 Thread Chip Scheide via 4D_Tech
On Wed, 11 Jul 2018 20:22:21 +, Timothy Penner wrote: > This whole thread-safe concept of preemptive processes only applies to v16+ > Why are you worried about making your v13 component thread safe, in v13? because I am here, now, doing a bunch of work in the code. I will be moving up versions

RE: v13 - Need Idea(s). Sets

2018-07-11 Thread Timothy Penner via 4D_Tech
This whole thread-safe concept of preemptive processes only applies to v16+ Why are you worried about making your v13 component thread safe, in v13? It's not like you can set the "can be run in preemptive processes" method property in v13, the source needs to be updated to v16+ just to gain

Re: Drag n drop between processes

2018-07-11 Thread Chip Scheide via 4D_Tech
Thanks Keisuke This works well. On Wed, 11 Jul 2018 02:31:13 +, Keisuke Miyako via 4D_Tech wrote: > Hello, > > The 510 bytes data does not contain anything useful for you. > > You need to append data yourself at the drag source (append data to > pasteboard), > Which can be an array of

v13 - Need Idea(s). Sets

2018-07-11 Thread Chip Scheide via 4D_Tech
So.. I have this component Setutl. which does a bunch of handy things that 4D's native set operations do not do, for example being able to ask, and get an answer to: - Which table does this set belong to - What set(s) exist for a specified table As the component stands it is thread safe (I

Re: just a curiosity - pre emptive threads

2018-07-11 Thread Chip Scheide via 4D_Tech
constructing an IP set name (as in my example) could be done on the server, or for single user applications. This is (only some what) of a hypothetical, or thought experiment. Chip On Wed, 11 Jul 2018 15:35:35 -0400, Jeffrey Kain via 4D_Tech wrote: > Are you doing all this in single user mode?

Re: just a curiosity - pre emptive threads

2018-07-11 Thread Jeffrey Kain via 4D_Tech
Are you doing all this in single user mode? I think a lot of people don't realize that preemptive threads aren't supported on 4D Remote at all. > On Jul 11, 2018, at 3:31 PM, Chip Scheide via 4D_Tech <4d_tech@lists.4d.com> > wrote: > > How does/would 4D handle a set > name which was

just a curiosity - pre emptive threads

2018-07-11 Thread Chip Scheide via 4D_Tech
IP vars are out. -- OK IP sets would be out too, but... How does 4D manage IP sets, that it does not know are IP sets? I know in more then one place I don't care about a set name, and use an algorithm to create a set name. So the set name does not exist until execution. This kind of code could

RE: Is there a listing of thread safe (or unsafe) commands?

2018-07-11 Thread Chip Scheide via 4D_Tech
THANKS! as I expected, a set of commands I want to use is not safe... On Wed, 11 Jul 2018 16:55:00 +, Timothy Penner wrote: > http://doc.4d.com/4Dv17/4D/17/Preemptive_3726273.999-2878208.en.html > > > > Timothy Penner > Senior Technical Services Engineer > > 4D Inc > 95 S. Market Street,

Re: 4D Write PRO: editing a table / collections

2018-07-11 Thread Keisuke Miyako via 4D_Tech
a table reference can be obtained from WP Create table range http://doc.4d.com/4Dv17/4D/17/WP-Create-table-range.301-3703205.en.html WP Get elements http://doc.4d.com/4Dv17/4D/17/WP-Get-elements.301-3703212.en.html or WP Get element by ID

RE: Component for 64 bit v6

2018-07-11 Thread Timothy Penner via 4D_Tech
See here: Tech Tip: Important requirements to run a compiled structure on a 64-bit server http://kb.4d.com/assetid=77858 ** 4D Internet Users Group (4D iNUG) FAQ: http://lists.4d.com/faqnug.html Archive:

Re: Is there a listing of thread safe (or unsafe) commands?

2018-07-11 Thread Keisuke Miyako via 4D_Tech
the list of thread safe commands is growing with each version. http://doc.4d.com/4Dv17/4D/17/Preemptive_3726273.999-2878208.ja.html http://doc.4d.com/4Dv16/4D/16.3/Preemptive_3650983.999-2878208.en.html 2018/07/12 1:44、Chip Scheide via 4D_Tech <4d_tech@lists.4d.com>

Re: 4D Write PRO: editing a table / collections

2018-07-11 Thread JOHN BAUGHMAN via 4D_Tech
On Jul 10, 2018, at 10:41 PM, Two Way Communications via 4D_Tech <4d_tech@lists.4d.com> wrote: > > You’re right, John. > > When I re-open the document, the table has another reference, and WP SELECT > doesn’t work anymore… > > Is there any other way to get the object reference for a table in

RE: Is there a listing of thread safe (or unsafe) commands?

2018-07-11 Thread Timothy Penner via 4D_Tech
http://doc.4d.com/4Dv17/4D/17/Preemptive_3726273.999-2878208.en.html ** 4D Internet Users Group (4D iNUG) FAQ: http://lists.4d.com/faqnug.html Archive: http://lists.4d.com/archives.html Options:

Is there a listing of thread safe (or unsafe) commands?

2018-07-11 Thread Chip Scheide via 4D_Tech
I know a bit more then a year ago David Adams posted the code for: // GetCommandList but this doesn't help me at the moment, as I can not currently run v16 or 17. If there is not a comprehensive list of thread safe commands, could someone run // GetCommandList and extract the list of

[resolved]Re: v13 - new behavior, all dev windows closed

2018-07-11 Thread Chip Scheide via 4D_Tech
Thanks Tim, running MSC, and repairing the structure, fixed the problem On Mon, 09 Jul 2018 19:32:34 -0500, Tim Nevels via 4D_Tech wrote: > On Jul 9, 2018, at 6:24 PM, Chip Scheide wrote: > >> when (re)opening a database all windows previously opened in the design >> environment are closed. >>

[warning] v13 (+?) - Compiler missed syntax error

2018-07-11 Thread Chip Scheide via 4D_Tech
I apparently had a good typo: C_TEXT($0#1;$Action;$2;$Setname) see it? $0#1 as part of a compiler directive. Compiler in v13 does NOT catch/flag this. Might be worth while checking whatever version you are using Chip --- Gas is for washing parts Alcohol is for drinkin' Nitromethane

Re: 4D Write PRO: editing a table / collections

2018-07-11 Thread Two Way Communications via 4D_Tech
So, what if the user has created a table (through a method), and now want to select a cell in that table and change it’s background color, or it’s width? How can we do that? Rudy Mortier Two Way Communications bvba > On 11 Jul 2018, at 17:05, Two Way Communications via 4D_Tech >

AW: 4D Write PRO: editing a table / collections

2018-07-11 Thread Achim Peschke via 4D_Tech
I never do this. I always set values into a cell when calling WP Table append row. Achim -Ursprüngliche Nachricht- Von: 4D_Tech [mailto:4d_tech-boun...@lists.4d.com] Im Auftrag von Two Way Communications via 4D_Tech Gesendet: Mittwoch, 11. Juli 2018 17:06 An: 4D iNug Technical

Re: 4D Write PRO: editing a table / collections

2018-07-11 Thread Two Way Communications via 4D_Tech
Thanks Achim. But what if the cell is not selected, and I want to fill the cells by programming? Rudy Mortier Two Way Communications bvba > On 11 Jul 2018, at 17:00, Achim Peschke via 4D_Tech <4d_tech@lists.4d.com> > wrote: > > I do it this way: > > Cursor is in the cell or text is

AW: 4D Write PRO: editing a table / collections

2018-07-11 Thread Achim Peschke via 4D_Tech
I do it this way: Cursor is in the cell or text is selected in the cell or cell is selected. I get the selection using WP Get selection. The I call WP SET TEXT with the selection range, give the new text and set parameters 3 and 4 accordingly. Achim -Ursprüngliche Nachricht- Von:

Re: 4D Write PRO: editing a table / collections

2018-07-11 Thread Two Way Communications via 4D_Tech
Thanks Achim! Can I also set a text value or a reference in a specific table cell? I tried: $CellObj:=WP Table get cells(a$TableObj;colNr;rowNr) WP SET TEXT($CellObj;”test”;wk replace;wk include in range) but I get an error. When I try ST SET TEXT, the text is placed on top of the 4D

Re: V17 - No Glass Buttons

2018-07-11 Thread Chip Scheide via 4D_Tech
not using v17 - but could you add them to the picture library? On Wed, 11 Jul 2018 00:39:31 -0700, Robert McKeever via 4D_Tech wrote: > Created a test database. New Table. Added 1 field. > > Go to create a form via the wizard. Move the field and the uuid to > the form. Go to Advanced. No Glass

Re: Drag n drop between processes

2018-07-11 Thread Chip Scheide via 4D_Tech
THANKS! On Wed, 11 Jul 2018 02:31:13 +, Keisuke Miyako via 4D_Tech wrote: > Hello, > > The 510 bytes data does not contain anything useful for you. > > You need to append data yourself at the drag source (append data to > pasteboard), > Which can be an array of record numbers/primary keys

Re: Component for 64 bit v6

2018-07-11 Thread Charles Miller via 4D_Tech
Unicode setting. Did you compile the component? If so what options? Regards Chuck On Wed, Jul 11, 2018 at 7:52 AM Jim Dorrance via 4D_Tech < 4d_tech@lists.4d.com> wrote: > Hi, > > I have a component created v15, opened with 64 bit 4D v16 on Mac, but the > host database stops us compiling with

Re: Component for 64 bit v6

2018-07-11 Thread Bob Miller via 4D_Tech
RE> I have a component created v15, opened with 64 bit 4D v16 on Mac, but the host database stops us compiling with v16 on Mac. Does a component create with a 32bit version need to be 'converted' somehow? Jim, Under 'Database Settings' - Compiler - there's a checkbox for 'Multi-target

AW: 4D Write PRO: editing a table / collections

2018-07-11 Thread Achim Peschke via 4D_Tech
Do it simply. If the cursor is in a table, WP Get selection. With this range WP Get elements(range; 4). Working this way you get the table and its id as object in a collection. If the selection spans over more than 1 table, the collection contains an element for every table contained in the

Component for 64 bit v6

2018-07-11 Thread Jim Dorrance via 4D_Tech
Hi, I have a component created v15, opened with 64 bit 4D v16 on Mac, but the host database stops us compiling with v16 on Mac. Does a component create with a 32bit version need to be 'converted' somehow? -- Jim Dorrance jim.dorra...@gmail.com 4...@dorrance.eu www.4d.dorrance.eu PS: If you

Re: 4D Write PRO: editing a table / collections

2018-07-11 Thread Two Way Communications via 4D_Tech
In v17, we can now get the element id’s, and also select the table objects in a document, so that is definitely an improvement. But, in case there is more than 1 table in the document, I fail to get a reference for the table where the cursor is in… has anyone figured out how to do that? How

Re: V17 - No Glass Buttons

2018-07-11 Thread Wayne Stewart via 4D_Tech
I’d create a project form with the glass buttons and then either copy and paste them in or better still Inherit the form. On Wed, 11 Jul 2018 at 17:39, Robert McKeever via 4D_Tech < 4d_tech@lists.4d.com> wrote: > Created a test database. New Table. Added 1 field. > > Go to create a form via the

Re: 4D Write PRO: editing a table / collections

2018-07-11 Thread Two Way Communications via 4D_Tech
You’re right, John. When I re-open the document, the table has another reference, and WP SELECT doesn’t work anymore… Is there any other way to get the object reference for a table in a 4D Write PRO document? WP Get selection doesn’t seem to work for table objects: $WPRange:=WP Get

V17 - No Glass Buttons

2018-07-11 Thread Robert McKeever via 4D_Tech
Created a test database. New Table. Added 1 field. Go to create a form via the wizard. Move the field and the uuid to the form. Go to Advanced. No Glass buttons. I quit V17. I copied the Button Images ‘Glass’ folder into the Resources folder —> Images —> Buttons —> Glass just like a v15