Re: selected rows for a collection listbox

2018-07-29 Thread Keisuke Miyako via 4D_Tech
normally with collections, you shouldn't have to care about the position of each element. it's how "For each" works and member functions such as "map" or "filter" works. "to operate on the selected rows as a collection implies that every row has to be loaded" collection data source of a list

Re: selected rows for a collection listbox

2018-07-29 Thread Keisuke Miyako via 4D_Tech
a collection of objects rather than the row numbers makes this impractical. impractical how? ORDA is lazy loading by nature, so it doesn't matter if the row is visible or not. 2018/07/30 10:13、John DeSoi via 4D_Tech <4d_tech@lists.4d.com>のメール: How does the third

Re: Downloaded 4D app: structure file in read only mode

2018-07-29 Thread Keisuke Miyako via 4D_Tech
is it not normal and expected that the structure file is read-only, if inside the application folder? you can suppress the warning http://doc.4d.com/4Dv17/4D/17/DatabaseData-storage-page.300-3743476.en.html and you can configure the application to use a "default data" read-only placeholder for

Re: selected rows for a collection listbox

2018-07-29 Thread Keisuke Miyako via 4D_Tech
there are 3 properties you can have 4D manage automatically (that is, read-only by code) current item (typically an object) current item position (typically numeric), and selected items (typically a collection) http://doc.4d.com/4Dv17/4D/17/List-box-specific-properties.300-3743666.en.html use

Re: Special characters in ftp filenames

2018-07-27 Thread Keisuke Miyako via 4D_Tech
as a stopgap measure you could try: https://github.com/miyako/4d-plugin-curl-ftp > 2018/07/27 20:21、Pat Bensky via 4D_Tech <4d_tech@lists.4d.com> のメール: > 250-Bay Bulls 2-Gatherall‚Äôs Puffin & Whale Watch Cruise.jpg. > instead of > 250-Bay Bulls 2-Gatherall's Puffin & Whale Watch Cruise.jpg. >

Re: Memory leak with dynamic variables in list boxes?

2018-07-27 Thread Keisuke Miyako via 4D_Tech
the workaround is to have an extra dynamic variable on the form, type it with VARIABLE TO VARIABLE, then use it with LISTBOX INSERT COLUMN http://forums.4d.com/Post/FR/18014516/1/18014517#18014517 granted, you would need as many dynamic variable as the columns you insert. it's probably easier to

Re: Memory leak with dynamic variables in list boxes?

2018-07-26 Thread Keisuke Miyako via 4D_Tech
correction: since it is a form local variable, you should be able to retype it simply by calling C_REAL ($footerPtr->) 2018/07/27 8:30、Keisuke Miyako via 4D_Tech <4d_tech@lists.4d.com<mailto:4d_tech@lists.4d.com>>のメール: dynamic variables create for footers are typed as text by de

Re: Memory leak with dynamic variables in list boxes?

2018-07-26 Thread Keisuke Miyako via 4D_Tech
dynamic variables create for footers are typed as text by default. you need to change it to numeric by replacing it using VARIABLE TO VARIABLE. 2018/07/27 7:34、mferguson--- via 4D_Tech <4d_tech@lists.4d.com>のメール: Seems like it should be simple, but I’m missing

Re: Memory leak with dynamic variables in list boxes?

2018-07-26 Thread Keisuke Miyako via 4D_Tech
that just sound like a recipe for headaches, never a good idea to use EXECUTE FORMULA to create process variables. you should be able to confirm with a simple form and listbox that nil pointer does indeed create a new form local variable and that it can reliably be referenced using its object

Re: collection.min() Returns Null

2018-07-26 Thread Keisuke Miyako via 4D_Tech
one thing to keep in mind is that this (rules on sorting) does not apply to count() or average() - count does NOT count null, object, collection the doc. says that the method only counts "non-null" values. non-null does not include object or collection - average() does not include null,

Re: collection.min() Returns Null

2018-07-26 Thread Keisuke Miyako via 4D_Tech
it is documented. min() http://doc.4d.com/4Dv17/4D/17/collectionmin.301-3730928.en.html says If the collection contains different types of values, the collection.min( ) method will return the minimum value within the first element type in the type list order (see collection.sort( )

Re: collection.min() Returns Null

2018-07-26 Thread Keisuke Miyako via 4D_Tech
query() is not the only member function to filter a collection. in your case, you could do something like $cTest:=$cTest..filter("remove_null") where the project method remove_null is C_OBJECT($1) $1.result:=($1.value#Null) 2018/07/27 5:09、Cannon Smith via 4D_Tech

Re: POW Function

2018-07-25 Thread Keisuke Miyako via 4D_Tech
I won't recommend it, but just to illustrate the difference: $rRange:=1200-50 C_LONGINT($rExponent) Begin SQL SELECT LOG10(:$rRange) FROM _USER_SCHEMAS LIMIT 1 INTO :$rExponent End SQL $rMagnitude:=10^$rExponent > But I’m getting an exponent of 7 instead of 3. Any ideas what I’m doing wrong?

Re: 13.x Quick Report Export Max Output File Size?

2018-07-24 Thread Keisuke Miyako via 4D_Tech
to be clear, these functions are available in 32-bit applications, which is why the 4D data/structure files can be larger than 4GB. perhaps with standard commands (Append document, SEND PACKET) you won't have that issue. 2018/07/25 7:13、Keisuke Miyako via 4D_Tech <4d_tech@lists.4d.com<

Re: 13.x Quick Report Export Max Output File Size?

2018-07-24 Thread Keisuke Miyako via 4D_Tech
from a C point of view, you would have to be using 64-bit functions such as fseek64, _fseeki64. besides, Quick Report, as the name suggests, is for quick and simple tasks. to be honest, I don't think it was designed to handle files larger than 4GB. (even YouTube before gangnam style wasn't

Re: Resizing a barcode image using Miyako's Zint plugin

2018-07-22 Thread Keisuke Miyako via 4D_Tech
Normally, if you just need to display the barcode on screen or print it, the actual size or DPI of the barcode shouldn't matter, especially if the format is SVG. you just make sure the picture object has the desired dimensions on form, and the display format set to "scale to fit proportional"

Re: SVG Shape With No Background

2018-07-20 Thread Keisuke Miyako via 4D_Tech
F.Y.I. the source code of SVG component is available for partners. some time ago, we received a similar question from a customer, evidently it is intentional that opacity=0 is ignored (it is explicitly coded that way). the explanation from the developer was that opacity=0 makes no sense and

Re: Write Pro - V17 Printing Background JPEGs

2018-07-17 Thread Keisuke Miyako via 4D_Tech
could it be that you are printing section anchored images in HTML WYSIWYG mode? http://doc.4d.com/4Dv17/4D/17/Handling-pictures.200-3726275.en.html http://doc.4d.com/4Dv16/4D/16/WP-PRINT.301-3048109.en.html 2018/07/18 5:23、Stephen Shaw via 4D_Tech

Re: 4D Write PRO expressions

2018-07-17 Thread Keisuke Miyako via 4D_Tech
did you explicitly call SET ALLOWED METHODS? http://cdn.doc.4d.com/4Dv16R6/4D/16-R6/SET-ALLOWED-METHODS.301-3548364.en.html http://cdn.doc.4d.com/4Dv16R6/4D/16-R6/Filter-expressions-contained-in-a-4D-Write-Pro-document.300-3605842.en.html 2018/07/17 20:36、Two Way Communications via 4D_Tech

Re: Who’s the Gestapo?

2018-07-16 Thread Keisuke Miyako via 4D_Tech
please ignore me if the point has already been made, but they did register their email addresses before posting, right? one can't simply post to 4d_tech@lists.4d.com without first joining the list. 2018/07/17 10:34、Robert ListMail via 4D_Tech

Re: Web Service Properties?

2018-07-16 Thread Keisuke Miyako via 4D_Tech
maybe they mean, use HTTP authentication not SOAP authentication if BASIC or DIGEST is good enough. http://doc.4d.com/4Dv15/4D/15.6/WEB-SERVICE-AUTHENTICATE.301-3817472.en.html authentication via SOAP header (not HTTP header) is an extended SOAP feature. http://kb.4d.com/assetid=34276

Re: What do you use to monitor your offsite servers?

2018-07-15 Thread Keisuke Miyako via 4D_Tech
you might also be interested in: Alternative à RDP (http://forums.4d.com/Post/FR/24803223/1/24818538#24818538) which mentions TSPLUS (https://www.tsplus.net/) guacamole (https://guacamole.apache.org/) ** 4D Internet Users

Re: subtables issue

2018-07-15 Thread Keisuke Miyako via 4D_Tech
unless you were specifically asked to convert subtables, I think it would be best to not care about them and focus on converting pictures. as long as you keep the virtual subtable structure "as is" and never touch them, your subtable commands will continue to work in your methods and your list

Re: just a curiosity - pre emptive threads

2018-07-12 Thread Keisuke Miyako via 4D_Tech
transactional data entry is kind of task you would typically want to avoid using preemptive mode. DB4D requests (19814) are all preemptive since v11, so if you call the command SAVE RECORD on the client side (a cooperative process), the request is still processed on the server side in

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<mailto:4d_tech@lists.4d.com>>のメール: After all, preemptive pro

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 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: 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: 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: 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: 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 v15 plugin problem

2018-07-10 Thread Keisuke Miyako via 4D_Tech
You can not simply copy the licenses folder from one machine to another. The master product (4D or 4D Server) maybe recognised but the expansions (client, write, view, etc) will all be ignored. You must re-activate all the licenses on your new computer, starting from the server and including

Re: Drag n drop between processes

2018-07-10 Thread Keisuke Miyako via 4D_Tech
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 (variable to blob), A set (boolean array from set, variable to blob), Or anything that makes

Re: Converting pictures on 4D forms (Windows) to get transparency

2018-07-09 Thread Keisuke Miyako via 4D_Tech
seems "paint.net" as a URL offers physical paint. "paint.NET" the software can be found at "https://www.getpaint.net; ** 4D Internet Users Group (4D iNUG) FAQ: http://lists.4d.com/faqnug.html Archive:

Re: parsing XML - related to Konstants

2018-07-06 Thread Keisuke Miyako via 4D_Tech
if you want to access comments, use DOM Append XML child node http://doc.4d.com/4Dv15/4D/15.6/DOM-Append-XML-child-node.301-3817432.en.html for writing and DOM GET XML CHILD NODES http://doc.4d.com/4Dv15/4D/15.6/DOM-GET-XML-CHILD-NODES.301-3817433.en.html for reading > 2018/07/07 1:30、Chip

Re: Macro question - using project methods in a macro

2018-07-05 Thread Keisuke Miyako via 4D_Tech
there is no need to use the clipboard. I don't which example you saw, but I have always used SET MACRO PARAMETER since v11 (Macros v2). One piece of advise is to protect the method called from macro by doing something like Macro_MyMethod(;) C_TEXT($1;$2) $methodName:=$1 $methodPath:=$2 If

Re: UUID version 4 needed

2018-07-05 Thread Keisuke Miyako via 4D_Tech
I'm not sure how that would solve any uncertainties. 4D is a native Win32/Cocoa/Carbon app, so it would be natural to assume that it simply calls UuidCreate on Windows and [NSUUID UUID] or CFUUIDCreate on Mac. but will then go on to ask Apple and Microsoft the same question? as already pointed

Re: 4D Write, pictures in page, frozen document, to 4D Write Pro

2018-07-02 Thread Keisuke Miyako via 4D_Tech
The "Tip" was based on macOS native PICT to PDF conversion. Write Pro does not use PICT to store previews, in fact, it does not store renderings of any kind, so one must use WP PRINT and invoke the printing mechanism in order to generate PDF.

Re: Command name but what about Keywords?

2018-07-02 Thread Keisuke Miyako via 4D_Tech
As Patrick pointed out, the idea is to test the current language (use something like "True", which to know to have different tokens) once you run METHOD SET CODE (well actually, you should run twice to tokenise forward-referenced project methods) then keywords such as "If" will automatically

Re: STARTTLS - send secure email 4D v15.5

2018-06-30 Thread Keisuke Miyako via 4D_Tech
keep in mind that the effect of "1" (use SSL) has been adjusted over the years. in v12.1, when SSL was first introduced, it simply meant "SMTP over SSL" a.k.a. implicit SSL. this is the kind SSL that is considered "less secure", for example by Google, where the user must explicitly turn on

Re: Printer Issues

2018-06-28 Thread Keisuke Miyako via 4D_Tech
if the combination of printers and forms are manageable, perhaps you could stock preconfigured settings for each and call BLOB to print settings http://doc.4d.com/4Dv16/4D/16.3/Print-settings-to-BLOB.301-3651108.en.html the BLOB can store more than the generic set of parameters available via

Re: Moving Files With cURL FTP

2018-06-28 Thread Keisuke Miyako via 4D_Tech
the code was based on the libcurl FTP example. SFTP terminology is different to FTP (rename instead of RNFR/RNTO, rm instead of DELE, rmdir/mkdir instead of RMD/MKD) I've just made some changes to take that into account. https://github.com/miyako/4d-plugin-curl-ftp/releases/tag/1.5 2018/06/29

Re: 4D Write licensing...

2018-06-28 Thread Keisuke Miyako via 4D_Tech
I would invite you to take a look at this chapter: http://doc.4d.com/4Dv16R6/4D/16-R6/Managing-users-and-groups.300-3561552.en.html > 2018/06/28 18:28、Robert ListMail via 4D_Tech <4d_tech@lists.4d.com> のメール: > With a 10 user server, there is a small collection of letters that are used > daily

Re: Remote access to 4D Server.

2018-06-28 Thread Keisuke Miyako via 4D_Tech
there was a recent thread on the forums "Alternative à RDP" http://forums.4d.com/Post/FR/24803223/1/24818538#24818538 among the suggestions: TSPLUS https://www.tsplus.net/ guacamole https://guacamole.apache.org/ > Another solution is to use Citrix

Re: 4Dv16R6: Object on form still active when another object is on top

2018-06-28 Thread Keisuke Miyako via 4D_Tech
I would think that the blocking object must itself be a clickable object, like an invisible button or a transparent input area. ** 4D Internet Users Group (4D iNUG) FAQ: http://lists.4d.com/faqnug.html Archive:

Re: v13 - Konstants [Solved]

2018-06-27 Thread Keisuke Miyako via 4D_Tech
I might do it manually, I might do it by code (XML or 4D tags). in general the code would be so specific to the work, I would happily trash it by the end of the day. I don't use 4D Pop at all, its a choice but not the law. as for the comment on Menu_@ vs @_Menu, it may simply be an issue of

Re: v13 - Konstants [Solved]

2018-06-26 Thread Keisuke Miyako via 4D_Tech
when defining constants.xlf it's really important to use UUID to avoid conflicts, since you have no idea of what other plugin, components (private and public) have defined and will define after yours is loaded. something like: > > http://www.4d.com/d4-ns;> > > > Common Crypto plugin > > >

Re: XSLT APPLY TRANSFORMATION Replacement

2018-06-22 Thread Keisuke Miyako via 4D_Tech
the command is not supported on 4D Server 64-bit for Mac and 4D 64-bit for Windows. http://doc.4d.com/4Dv16R4/4D/16-R4/o-XSLT-APPLY-TRANSFORMATION.301-3317052.en.html http://doc.4d.com/4Dv16R4/4D/16-R4/Changing-from-32-bit-versions-to-64-bit-versions.300-3330500.en.html

Re: Error on HTTP request on v16B6

2018-06-21 Thread Keisuke Miyako via 4D_Tech
as discussed in the link given by Koen, the issue seem to happen on certain machines and with certain sites, (100% reproducible when it happens). until we get to the bottom of what is causing the error, may use an alternative http client? https://github.com/miyako/4d-plugin-curl-http >

Re: 2 instances of 4D connected to different 4D Servers

2018-06-19 Thread Keisuke Miyako via 4D_Tech
"4D Developer" mean desktop with design mode. in other words, not 4D Remote, 4D Volume Desktop or 4D Server. I think 4D v11 SQL actually had that name. I guess so many things are called "4D" it sometimes needs a qualifier... > 2018/06/20 8:12、John Baughman via 4D_Tech <4d_tech@lists.4d.com>

Re: 2 instances of 4D connected to different 4D Servers

2018-06-19 Thread Keisuke Miyako via 4D_Tech
Altura Mac2Win dependency is what was preventing 4D from launching multiple times. with 4D 64-bits (beta in 16.0 and available as of 16R2 and later, not 16.x where x !=0) you can start multiple instances (double click again, shift select from task bar, etc) but the feature is intentionally

Re: Adding dates (sync) from 4D to Google Calendar

2018-06-18 Thread Keisuke Miyako via 4D_Tech
you need to 1. create a Google account 2. study the Google Calendar API 3. use HTTP request to send and receive JSON 4. and pay Google for using their API. the hardest part is 2. coding may be a couple hours, reading can take days. > 2018/06/19 0:55、setar accnt via 4D_Tech

Re: v16 Time picker - bound variable changed

2018-06-18 Thread Keisuke Miyako via 4D_Tech
Hello, > how to tell when a non-R version will have the features of an R-version. short answer is, when the version number changes and the "R" goes way. 16Rn and 16.x are different numbering systems, so it doesn't matter if n > R. 16.3 has the exact same features as 16.0 - nothing will be added

Re: Delay process bug

2018-06-17 Thread Keisuke Miyako via 4D_Tech
according to the bug description for ACI0098368 ("Delayed processes do not wake up if paused/resumed while already delayed"), it's not that the DELAY P. has a problem resuming, the problem manifests itself when the codes pauses a process that is already in "delay" status. a double resume is

Re: Difference between OB Copy and :=

2018-06-13 Thread Keisuke Miyako via 4D_Tech
off the top of *my* head I understand the fix is not limited to object notation. it was an optimisation made for wakanda server that somehow got lost on its way to 4D object fields. so it's a fix at the database level. > 2018/06/14 11:54、Cannon Smith via 4D_Tech <4d_tech@lists.4d.com> のメール: >

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: 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: 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: Why won't Help Tip editor accept Carriage Return?

2018-06-11 Thread Keisuke Miyako via 4D_Tech
for the record, problem does not exist for v14 or later. this is basically a compatibility issue between macOS 10.8/9 and 13.6 (evidently a regression from 13.5, really sorry about that...), which was released in the first half of 2015. > 2018/06/12 13:22、Dan Ivy via 4D_Tech

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

2018-06-11 Thread Keisuke Miyako via 4D_Tech
I wouldn't beat myself over that. UI threads are never preemptive. (and who needs helps tips outside the UI?) 2016/11/08 6:22、Keith Goebel mailto:keit...@clear.net.nz>> のメール: Downside: Perhaps not such a good solution now, with Preemptive Processing not working when there are IP vars

Re: v16 Time picker - bound variable changed

2018-06-11 Thread Keisuke Miyako via 4D_Tech
LISTBOX SET PROPERTY was created in 16R2, it's normal that it won't compile on 16.3 (if that is what you mean) http://doc.4d.com/4Dv16R6/4D/16-R6/LISTBOX-SET-PROPERTY.301-3547819.en.html 2018/06/12 6:09、Jody Bevan via 4D_Tech <4d_tech@lists.4d.com> のメール: I

Re: Scroll position of display-type subform

2018-06-11 Thread Keisuke Miyako via 4D_Tech
haven't tried, but I wonder if CONVERT COORDINATES would be smart enough to take into account the scrolled amount of a detail subform. http://doc.4d.com/4Dv16/4D/16.3/CONVERT-COORDINATES.301-3651760.en.html > 2018/06/12 7:37、Richard Wright via 4D_Tech <4d_tech@lists.4d.com> のメール: > I need to

Re: v13+ Progress component, and other components

2018-06-11 Thread Keisuke Miyako via 4D_Tech
you are working on a component that "wraps" around another component? just as a reminder, the progress component is open-source since v16, partners have ways to customise and distribute them. > 2018/06/11 23:21、Chip Scheide via 4D_Tech <4d_tech@lists.4d.com> のメール: > In component (wrappers for

Re: v13+ Progress component, and other components

2018-06-11 Thread Keisuke Miyako via 4D_Tech
remember, "progress" is itself a component, so your callback method is always called from outside (EXECUTE METHOD) . the method must be shared. > 2018/06/11 23:21、Chip Scheide via 4D_Tech <4d_tech@lists.4d.com> のメール: > > I do not understand why I am getting this error, as the callback method >

Re: v16 Time picker - bound variable changed

2018-06-11 Thread Keisuke Miyako via 4D_Tech
it is a bug that was fixed in 16.3 Hotfix 1 (latest is Hotfix 4) ACI0097700 2018/06/12 0:40、David Samson via 4D_Tech <4d_tech@lists.4d.com> のメール: Should I be defaulting the time on the on-load of the holding form now? Or is it something else?

Re: WR Count equivalent in 4D Write Pro

2018-06-11 Thread Keisuke Miyako via 4D_Tech
I suppose you could use EDIT FORMULA, for a start... > 2018/06/11 16:06、JOHN BAUGHMAN via 4D_Tech <4d_tech@lists.4d.com> のメール: > > BTW, another thing I cannot find is any way to provide a means for end users > to insert 4D expressions as they can in 4D Write. I could write a dialog for > this,

Re: WR Count equivalent in 4D Write Pro

2018-06-11 Thread Keisuke Miyako via 4D_Tech
WP SET A. expects different kind of "range", depending on the attribute type. for example, // a regular range to specify where to insert the image $range:=WP Create range($wp_l;wk end text;wk end text) // insert the image in range WP INSERT PICTURE($range;$data;wk append) // the URL is a

Re: Moving Methods/Forms between structures seems disabled

2018-06-10 Thread Keisuke Miyako via 4D_Tech
I am very sorry that the statement came across as blunt. I meant, compare the settings on structure A versus structure B (which you evidently have already done). > 2018/06/11 11:15、Randy Engle via 4D_Tech <4d_tech@lists.4d.com> のメール: > > Not sure what you are referring to "did you compare"? >

Fwd: Moving Methods/Forms between structures seems disabled

2018-06-10 Thread Keisuke Miyako via 4D_Tech
or, at an even more basic level, is external drag and drop allowed in compatibility? http://doc.4d.com/4Dv16R6/4D/16-R6/Compatibility-page.300-3561530.en.html ** 4D Internet Users Group (4D iNUG) FAQ:

Re: Moving Methods/Forms between structures seems disabled

2018-06-10 Thread Keisuke Miyako via 4D_Tech
did you compare http://doc.4d.com/4Dv16R6/4D/16-R6/Moving-page.300-3561535.en.html > 2018/06/11 10:18、Randy Engle via 4D_Tech <4d_tech@lists.4d.com> のメール: > > I've looked the structure settings but can't find anything that prevents > "moving" > I'm sure it just a checkbox somewhere

Re: WR Count equivalent in 4D Write Pro

2018-06-10 Thread Keisuke Miyako via 4D_Tech
c.f. http://doc.4d.com/4Dv17/4D/17/WP-Get-elements.301-3703212.en.html a whacky alternative would be: WP EXPORT DOCUMENT + wk web page complete and parse the XHTML (or count the number of attachments) working directly with XHTML is also quite useful to setup a preconfigured document with

Re: WR Count equivalent in 4D Write Pro

2018-06-10 Thread Keisuke Miyako via 4D_Tech
if you want to bulk-update all pictures in a range, use WP Create picture range (was WP Get pictures) <--- returns a class of object suitable for GET/SET ATTRIBUTES if you want to access each pictures in a range or document, use WP Get element <--- returns a collection

Re: Any way to detect change to 4D Write Pro orientation.

2018-06-10 Thread Keisuke Miyako via 4D_Tech
The way I deal with this problem is to prepare a plain document with the desired orientation, paper size, etc. and load it from disk as needed. Also, I disable the context menu be default and display a dynamic menu that contains only authorised actions by code. You can call OBJECT SET CONTEXT

Re: Flexible SVG ID Strategy

2018-06-05 Thread Keisuke Miyako via 4D_Tech
SVG is XML, so you can have as many namespaces as you like. in all of my SVG editors I define a private namespace, which contains extended information such as group ID. it also helps to store transform values (rotate, scale, translate) as individual attributes in said namespace, so much easier

Re: Best way to test for a specific version of an application

2018-05-29 Thread Keisuke Miyako via 4D_Tech
if you are using AppleScript there is a version property available in the language. it should be better to query the information in the same execution context. 2018/05/30 11:24、Jeffrey Kain via 4D_Tech <4d_tech@lists.4d.com> のメール: Excel via AppleScript

Re: Best way to test for a specific version of an application

2018-05-29 Thread Keisuke Miyako via 4D_Tech
I remember used the same tip in this one: https://github.com/miyako/4d-plugin-office-document-converter 2018/05/30 11:24、Jeffrey Kain via 4D_Tech <4d_tech@lists.4d.com> のメール: Due to sandboxing requirements with Office 2016 and Sierra, you have to jump through some

Re: Best way to test for a specific version of an application

2018-05-29 Thread Keisuke Miyako via 4D_Tech
it's possible to install in non-standard locations, more specifically, arbitrary sub-directories. it's possible to install/launch multiple version of Office on the same computer, It's possible to install select items out of the Office suite. so the request must be define more specifically. ---

Re: 4D Write Pro: traverse throught all available headers and footers

2018-05-29 Thread Keisuke Miyako via 4D_Tech
when you say "it misses an expression" do you mean ST Get content type doesn't report "ST Expression type" (for instance you get mixed type) or do you mean ST Get expression doesn't return an expression (maybe you should start from 1, not ST Start text) ? > 2018/05/30 0:05、Piotr Chabot

Re: Alternate compound keys

2018-05-29 Thread Keisuke Miyako via 4D_Tech
primary keys in 4D (v14 or later) are only used as the definitive record identifiers for a very limited set of built-in features journaling/mirroring SQL (replication/synchronisation in particular) 4D Mobile/ORDA unless you are using it for journaling or SQL or ORDA, they are not primary keys

Re: procedurally delete anchored image in 4D Write Pro

2018-05-25 Thread Keisuke Miyako via 4D_Tech
there is no reason why a "delete" command should not exist, I suppose, but 4D Write Pro is about constructing dynamic documents using templates, by evaluating embedded expressions and/or combining prepared segments (range objects), so I would imagine that a delete command is not really in high

Re: 4D Write Pro: traverse throught all available headers and footers

2018-05-25 Thread Keisuke Miyako via 4D_Tech
Hello, the command is ST Get content type http://doc.4d.com/4Dv16/4D/16.3/ST-Get-content-type.301-3652488.en.html > 2018/05/26 0:46、Piotr Chabot Stadhouders via 4D_Tech <4d_tech@lists.4d.com> > のメール: > I need to traverse through all expressions

Re: Email Errors - Intermittent - Socket Descriptor Error

2018-05-24 Thread Keisuke Miyako via 4D_Tech
4D Internet Commands mostly relays winsock errors and error messages. https://msdn.microsoft.com/en-us/library/windows/desktop/ms740668(v=vs.85).aspx so you can google "10038" or "WSAENOTSOCK" outside of 4D if you need more technical information. 2018/05/24 11:05、Randy Engle via 4D_Tech

Re: Programmatic control of reject new connections

2018-05-24 Thread Keisuke Miyako via 4D_Tech
how about using On Server Open Connection Database Method? http://doc.4d.com/4Dv16/4D/16/On-Server-Open-Connection-Database-Method.301-3047535.en.html if you want to base the logic on the number of connected users (for example you want the ceiling at max-1 for admin) you could use

Re: "Your password does not allow you to use this form"

2018-05-24 Thread Keisuke Miyako via 4D_Tech
could it be that the table has no defined output forms (and the editor is somehow looking for it) ? does the same happen using the same code and version with a brand new structure? --- partners have access to the source code of 4D Label Editor,

Re: procedurally delete anchored image in 4D Write Pro

2018-05-23 Thread Keisuke Miyako via 4D_Tech
I think you need to first change the layout to inline (by UI or code), in order to delete an image. but the attribute "wk anchor layout" is not settable with WP SET ATTRIBUTES http://doc.4d.com/4Dv16R6/4D/16-R6/4D-Write-Pro-Attributes.300-3605889.en.html so you need to use INVOKE ACTION

Re: stylized text

2018-05-23 Thread Keisuke Miyako via 4D_Tech
my sincere apologies! my previous post was obviously erroneous. the distinction is not between ST and WP, but rather, string manipulation versus range manipulation. > GET HIGHLIGHT, ST SET ATTRIBUTES, etc. > count the "spaces" between characters. > | a | b | c | d | e | > 1 2 3 4 5 6

Re: stylized text

2018-05-22 Thread Keisuke Miyako via 4D_Tech
ST commands and WP commands use a different convention to describe a selection or range. ST GET HIGHLIGHT, ST SET ATTRIBUTES, etc. count the "spaces" between characters. | a | b | c | d | e | 1 2 3 4 5 6 WP range.start, range.end, WP SELECT, WP SET ATTRIBUTES, etc. count

Re: Preventing Return and Enter from Closing a Dialog

2018-05-21 Thread Keisuke Miyako via 4D_Tech
if the interceptor is on page 1, it would have not effect when the user switches to a different page. also, I am not sure if database settings are supposed to propagate to connected clients. I don't think you need to restart the server, but you might have to reconnect and force update the client

Re: Auto Positioning Print Forms

2018-05-21 Thread Keisuke Miyako via 4D_Tech
have you tried FORM GET PROPERTIES to get the center of form? http://doc.4d.com/4Dv16/4D/16.3/FORM-GET-PROPERTIES.301-3651178.en.html I don't recall OBJECT GET COOD. to ever return the form size http://doc.4d.com/4Dv16/4D/16.3/OBJECT-GET-COORDINATES.301-3651562.en.html > 2018/05/21 12:43、Sujit

Re: Preventing Return and Enter from Closing a Dialog

2018-05-20 Thread Keisuke Miyako via 4D_Tech
using an invisible (type of object) button with the enter/escape key as shortcut does intercept the accept/cancel shortcut, but the button must be visible (property of object), enabled and available (page 0 or current page) and the "on clicked" form event must be activated. I would rather not

Re: Pointer to field using field name

2018-05-18 Thread Keisuke Miyako via 4D_Tech
oops you are right! 1 would overflow the max number of tables and fields but won’t have problems with long int. ** 4D Internet Users Group (4D iNUG) FAQ: http://lists.4d.com/faqnug.html Archive:

Re: Pointer to field using field name

2018-05-18 Thread Keisuke Miyako via 4D_Tech
won't 10K could overflow 32-bit integer? I would use 32768 as multiplier... > 2018/05/19 2:03、Kirk Brooks via 4D_Tech <4d_tech@lists.4d.com> のメール: > I can't take credit for making it up and I don't recall where I got the > idea from. If you are really worried about a table with more than 1000 >

Re: Pointer to field using field name

2018-05-17 Thread Keisuke Miyako via 4D_Tech
alternatively $tablename:="Table_1" $fieldname:="ID" $code:="$4deval($1->:=->["+$tablename+"]"+$fieldname+")" PROCESS 4D TAGS($code;$code;->$pField) EXECUTE FORMULA("$pField:=->["+tablename+"]"+fieldname) ** 4D Internet

Re: First experiments with 4D View PRO

2018-05-17 Thread Keisuke Miyako via 4D_Tech
a 4D View Pro document is stored in an object. http://doc.4d.com/4Dv16R6/4D/16-R6/Handling-4D-View-Pro-areas.300-3631583.en.html schema: /Applications/4D/4D v17/4D.app/Contents/Components/4D ViewPro.4dbase/Resources/4DViewSchema.json you can use regular OB commands or object notation to

Re: First experiments with 4D View PRO

2018-05-17 Thread Keisuke Miyako via 4D_Tech
4D has studied how the classic 4D View plugin has beeb used in various applications, and found that there were essentially two distinct usages; "as a list" and "as a spreadsheet". based on that understanding, two different paths have been defined to carry on the 4D View legacy: 1. a set of

Re: Web Area display PDF

2018-05-15 Thread Keisuke Miyako via 4D_Tech
there was a word on the release note. evidently it was caused by the 32-bit version of PDFKit (Apple framework, part of the OS) http://download.4d.com/Documents/Products_Documentation/LastVersions/Line_16/VIntl/4D_v16_3_ReleaseNotes.pdf > 2018/05/15 17:10、Piotr Chabot Stadhouders via 4D_Tech

Re: Subform 64-bit problem

2018-05-12 Thread Keisuke Miyako via 4D_Tech
was it ever documented that "SET ENTERABLE(False)" should also render the object invisible? 64-bit version of 4D on Mac is Cocoa, as opposed to 32-bit which is Carbon. The UI was recreated from the ground up, based on what the specification (=documentation) dictates. Any undocumented or

Re: v13+ LEP permision issues.

2018-05-10 Thread Keisuke Miyako via 4D_Tech
perhaps my comments about logging was unwarranted. but I think my main points stand: 1. no, method called on error is not executed in another process. you might be confusing it with method called on *event* 2. no, it is not necessary to use IP. use can pass and return process variables. e.g.

Re: v13+ LEP permision issues.

2018-05-09 Thread Keisuke Miyako via 4D_Tech
isn't "Method called on error" executed in the same process as the invoking method? normally the code would only be interested in basic information such as OK, which changes the course of action (ignore, abort, retry). even if more details were available, there is normally not much one can do

Re: v13+ Plugin List issue

2018-05-06 Thread Keisuke Miyako via 4D_Tech
PLUGIN LIST returns the list of plugins that are actually loaded (as opposed to simply detected). For historic reasons, "4D Quick", "4D Chart", "DDE Tools", etc. are also included in the list, although they are actually integrated into 4D (chart was divorced in v13). it should also be noted

<    1   2   3   4   5   6   7   8   9   10   >