Re: v13+ Plugin List issue

2018-05-04 Thread Keisuke Miyako via 4D_Tech
it sounds like PLUGIN LIST is being executed in the component's context. I guess it should the responsibility of the host to check for plugin availability, not the component. 2018/05/05 4:16、Chip Scheide via 4D_Tech <4d_tech@lists.4d.com> のメール: Ideas as to what is

Re: SQL Date Math

2018-05-04 Thread Keisuke Miyako via 4D_Tech
the error message seems to be in line with what is explain in the documentation: > Automatic data type conversion is implemented between numeric types. > A string that represents a number is not converted to a corresponding number. > There are special CAST functions that will convert values from

Re: 64 bit 15.6 database on Mac OS X Server - sharing of our experience

2018-05-01 Thread Keisuke Miyako via 4D_Tech
sounds similar to ACI0097483 (=ACI0097510) https://bugs.4d.fr/fixedbugslist?version=16.3_HF2 good news I suppose is that it should not happen in v16... ** 4D Internet Users Group (4D iNUG) FAQ:

Re: Import data in 4D format using XML

2018-04-30 Thread Keisuke Miyako via 4D_Tech
the docs reads: When you pass this parameter, the import is carried out directly, without any user intervention (unless you use the * option, see below). http://doc.4d.com/4Dv16R6/4D/16-R6.1660/Not-for-32-bit-versions_3546700.999-857020.ja.html > 2018/04/29 20:39、Two Way Communications via

Re: 64 vs 32 Bit 4D

2018-04-30 Thread Keisuke Miyako via 4D_Tech
also in language reference: http://doc.4d.com/4Dv16R6/4D/16-R6.1660/Not-for-32-bit-versions_3546700.999-857020.ja.html > 2018/05/01 7:38、Cannon Smith via 4D_Tech <4d_tech@lists.4d.com> のメール: > Never mind. I just needed to hit “send” so I could find my own answer! >

Re: Testing for Null is superior to OB is defined

2018-04-30 Thread Keisuke Miyako via 4D_Tech
the command "Split string", although generic, was specifically created to help parse dot notation. http://doc.4d.com/4Dv16R6/4D/16-R6/Split-string.301-3644822.en.html 2018/05/01 1:27、John DeSoi via 4D_Tech <4d_tech@lists.4d.com> のメール: One feature that I think is

Re: Old String resources

2018-04-29 Thread Keisuke Miyako via 4D_Tech
it did not "go away", at least in 32-bit versions, but you'd need to put the RSR file inside your resources folder. (until 2004, they could be placed adjacent to the structure folder) http://doc.4d.com/4Dv16R4/4D/16-R4/Deprecated-or-removed-features-in-v16-product-range.200-3425465.en.html jump

Re: HTTPS Connection for Web Module

2018-04-29 Thread Keisuke Miyako via 4D_Tech
in your URL do you specify the HTTPS port number, or is it set to 443 in your 4D database settings? ** 4D Internet Users Group (4D iNUG) FAQ: http://lists.4d.com/faqnug.html Archive: http://lists.4d.com/archives.html Options:

Re: 9913 SOAP errors

2018-04-29 Thread Keisuke Miyako via 4D_Tech
are you calling soap with the asterisk (keep-alive) option? keep-alive can timeout and die when the interval is too long. normally, it should only be used with blocks of soap calls and except for the closing call. > 2018/04/30 9:12、Sujit Shah via 4D_Tech <4d_tech@lists.4d.com> のメール: > We have a

Re: How to change title on 4D's main (MDI) window?

2018-04-23 Thread Keisuke Miyako via 4D_Tech
you could build your app. http://doc.4d.com/4Dv16/4D/16.3/Application-builder.300-3670789.en.html if you don't, technically you are running 4D (or 4D Server) so I am not sure it would be totally honest to have a different window title. you might also want to consider: 2.2 COMMON GENERAL TERMS

Re: v13+ LEP permision issues.

2018-04-22 Thread Keisuke Miyako via 4D_Tech
f.y.i. https://github.com/miyako/4d-plugin-rename 2018/04/21 7:42、Chip Scheide via 4D_Tech <4d_tech@lists.4d.com> のメール: (rename a folder for example) ** 4D Internet Users Group (4D iNUG) FAQ:

Re: A thought on re-indexing of a large database after repairs, compacting etc

2018-04-22 Thread Keisuke Miyako via 4D_Tech
15.5 maybe a newer release than 15Rx, but it is an older branch. 15.0 ➡︎ 15.1 ➡︎ 15.2 ➡︎ 15.3 ➡︎ 15.4 ➡︎ 15.5 ┗15R2 ┗15R3 ┗15R4 ┗15R5 ┗16.0 ➡︎ 16.1 ➡︎ 16.2 ➡︎ 16.2 left to right: bug fixes top to bottom: new features 2018/04/22 18:08、Paul Lovejoy via 4D_Tech

Re: Downloading files via FTP

2018-04-21 Thread Keisuke Miyako via 4D_Tech
I just wanted to point out that one can not expect a fix for a "bug" that is classified as standard behaviour. (I am not in charge of bug classification) I would encourage you to make your case for regression on TAOW. I did not see "use an old build" being suggested as a workaround, which might

Re: Downloading files via FTP

2018-04-21 Thread Keisuke Miyako via 4D_Tech
it is possible that we are referring to different cases. ACI0096897, which has been classified as "standard behaviour", is about Internet Commands issuing a specific FTP command, and a specific FTP server responding to that command with an error . nothing has changed in Internet Commands, it was

Re: A thought on re-indexing of a large database after repairs, compacting etc

2018-04-21 Thread Keisuke Miyako via 4D_Tech
you can read about it in the 15R4 upgrade ref. ftp://ftp-public.4d.fr/Documents/Products_Documentation/LastVersions/Line_15R4/VIntl/4D_Upgrade_v15_R4.pdf p.62 > In 4D v15 R4, we have greatly optimized the algorithm for global reindexing > of a database. The whole process has been dramatically

Re: Downloading files via FTP

2018-04-20 Thread Keisuke Miyako via 4D_Tech
my understanding is that it is "standard behaviour", in that the behaviour is expected according to how 4D Internet Commands was designed. evidently, without the optional output parameter, FTP_GetDirList sends the FTP command "LIST" to the server. with the optional output parameter to get

Re: Web Area display PDF

2018-04-20 Thread Keisuke Miyako via 4D_Tech
pdf.js is such a powerful library, https://mozilla.github.io/pdf.js/ you might not even need browser plugins anymore to display PDF. 2018/04/20 18:20、Koen Van Hooreweghe via 4D_Tech <4d_tech@lists.4d.com> のメール: If I remember correctly there used to be an issue with

Re: How to Determine Field Type from XML Structure Export?

2018-04-19 Thread Keisuke Miyako via 4D_Tech
if you do an introspection using SQL, Begin SQL SELECT * FROM _USER_COLUMNS INTO LISTBOX :L End SQL you'd see 2 columns, DATA_TYPE and OLD_DATA_TYPE c.f. http://doc.4d.com/4Dv16R4/4D/16-R4/System-Tables.300-3451015.en.html the "type" attribute in structure xml corresponds to DATA_TYPE

Re: Setting color print option problem

2018-04-19 Thread Keisuke Miyako via 4D_Tech
you can use print settings to BLOB we have been using it to switch colour / BW since 4D 2004. v16: http://doc.4d.com/4Dv16/4D/16.2/Print-settings-to-BLOB.301-3432852.en.html legacy: http://doc.4d.com/4Dv15/4D-Pack/15.1/AP-Print-settings-to-BLOB.301-2787500.en.html 2018/04/20 3:06、Jim Labos -

Re: list box on a subform

2018-04-19 Thread Keisuke Miyako via 4D_Tech
Hello, there should be nothing special about using a listbox in a widget (non-list) subform. here is an example: https://github.com/4D-JP/event-world-tour-japan-2015/blob/master/5.%20hierarchical-list/hierarchical-list.4dbase.zip 2018/04/20 3:48、Charles Miller via 4D_Tech

Re: v13+ On Err Call - overhead?

2018-04-17 Thread Keisuke Miyako via 4D_Tech
even if the time difference were significant (say, 0.0005 second per install/uninstall) I would not consider is an over head. in fact I would happily ignore it even if the delay was 1000 times worse (which I doubt), because the risk of missing a bug by over extending the scope of ON ERR CALL

Re: Time in a c_object

2018-04-16 Thread Keisuke Miyako via 4D_Tech
time is stored in milliseconds, not seconds. you have to $oMyObject:=New object("reporttime";?14:43:01?) $t:=String(Time($oMyObject.reporttime/1000);HH MM AM PM) ...or $t:=String(OB Get($oMyObject;"reporttime";Is time);HH MM AM PM) > 2018/04/17 10:02、John Baughman via 4D_Tech

Re: 4D 15.5 on MacOs High Sierra 10.13.4

2018-04-16 Thread Keisuke Miyako via 4D_Tech
I’ve seen the phenomenon with applications other than 4D, which means it is not caused by 4D specific pref. files, but rather, files managed by the OS. at least we know that they are under the user’s directory, but otherwise the files could be anywhere.

Re: 4D 15.5 on MacOs High Sierra 10.13.4

2018-04-16 Thread Keisuke Miyako via 4D_Tech
that could be a broken configuration issue, which could also happen with apps other than 4D. try a another mac with the same setup, or if that's not an option, try with a newly created account on the same computer. you might find that the slowness is actually not reproducible elsewhere.

Re: v13 - Custom Constants & 4D Pop

2018-04-15 Thread Keisuke Miyako via 4D_Tech
I don't think Finder searches inside packages. > 2018/04/13 0:08、Chip Scheide via 4D_Tech <4d_tech@lists.4d.com> のメール: > however, the Finder was not finding the file, I do not know why... ** 4D Internet Users Group (4D iNUG)

Re: 4D Summit 2018 Comments

2018-04-12 Thread Keisuke Miyako via 4D_Tech
overloading requires the concept of inheritance based on class. although it was confirmed during the Summit that the feature is under development, I would urge you to spend a moment to check out immediately collection methods that accept a "callback" project method.

Re: Appending XML Elements

2018-04-12 Thread Keisuke Miyako via 4D_Tech
it depends on what you mean by efficient; fewer 4D code does not necessarily mean better performance, it all depends on the internal implementation (xerces). if you don't know already there is this > $dom:=DOM Create XML Ref("root") > $e:=DOM Create XML element($dom;"root/element[10]") //10

Re: v13+ LEP - What is sent to OS

2018-04-11 Thread Keisuke Miyako via 4D_Tech
typing code to the console program is not the same as calling CMD.exe via the CLI. in general, with the console program, you only have to care about quoting arguments that contain a space because arguments are separated by space. however, when you call CMD.exe via the command line, you have to

Re: v13+ LEP - What is sent to OS

2018-04-11 Thread Keisuke Miyako via 4D_Tech
the values you pass as the first two arguments to LEP are passed “as is” to the CLI (well, actually they are converted from Unicode to ANSI if you use text not BLOB, but that is mostly irrelevant when your locale uses English) so you can just examine those variables. (I advise against passing

Re: v13 - Custom Constants & 4D Pop [solved!]

2018-04-11 Thread Keisuke Miyako via 4D_Tech
FYI these are standard XML notations alternatively you can code hexadecimal i.e. and https://en.m.wikipedia.org/wiki/XML technically you can widen the range of valid unicode characters by specifying version=1.1 in declaration.

Re: Zip file with password...?

2018-04-09 Thread Keisuke Miyako via 4D_Tech
you might find some hints in the "ditto" documentation https://developer.apple.com/legacy/library/documentation/Darwin/Reference/ManPages/man1/ditto.1.html 2018/04/09 17:32、Robert ListMail via 4D_Tech <4d_tech@lists.4d.com> のメール: LAUNCH EXTERNAL PROCESS("ditto -c -k -X --norsrc "+Char(Double

Re: SDI demo by Keisuke

2018-04-09 Thread Keisuke Miyako via 4D_Tech
For your information, I wrote the SDI demo on Mac, including the Excel/4D integration part. It worked on my work computer which had Microsoft Excel from 2015 (15.16). But when I tested on a new Mac with Excel 2016, the same code did not work. it seems like VBA Tools needs some work on for Excel

Re: SDI demo by Keisuke

2018-04-09 Thread Keisuke Miyako via 4D_Tech
the last time tested, VBA Tools (which is an cross platform HTTP client for VBA that does the mapping between JSON and VBA) works on Microsoft Excel for Mac 15.16 but not the version after that (I keep a copy of the old version in addition to the current one). I don't know if it was fixed in

Re: JSON Validator in POP component, where is it?

2018-04-08 Thread Keisuke Miyako via 4D_Tech
I am not sure if it is packaged as a Pop but you can find a validator demo here: http://download.4d.com/4DBlog/Tips/JSONValidator_4Dv16R4.zip and a How Do I? here: http://download.4d.com/Demos/4D_v17/HDI_JSONFileValidation.zip the demo was features in this blog post:

Re: Equivalent of FORM GOTO SUBFORM PAGE

2018-04-07 Thread Keisuke Miyako via 4D_Tech
you can call FORM GOTO PAGE with an asterisk option http://doc.4d.com/4Dv15/4D/15.5/FORM-GOTO-PAGE.301-3577151.en.html 2018/04/07 19:09、truegold via 4D_Tech <4d_tech@lists.4d.com> のメール: Seems like we need something like this to work.

Re: Are you a subform guru? Test your knowledge with a quiz. Also, a listing of all 4D documents on subforms

2018-04-07 Thread Keisuke Miyako via 4D_Tech
I am not a guru, just a follower :) > 3) When will the On Bound Variable Change event not happen when the Subform > Container variable changes? When the widget does not exist (i.e. it is not on the current form). > 4) When will OBJECT GET SUBFORM not return the form name set by OBJECT SET >

Re: LAUNCH EXTERNAL PROCESS AND _4D_OPTION_STOP_TOKEN

2018-04-07 Thread Keisuke Miyako via 4D_Tech
Hello, you can pass any number of arbitrary environment variables to your external process, but of course it is the responsibility of the external application to read them and to actually use them. "_4D_OPTION_STOP_TOKEN" is not a built-in reserved by 4D, he was simply following the naming

Re: v13 - Win 7 and LEP

2018-04-05 Thread Keisuke Miyako via 4D_Tech
some testing reveals that... XCOPY returns an "invalid path error" if the source path ends with a folder separator XCOPY begins an "is this a file or a path" dialog if the destination path does NOT end with a folder separator so here is a small example > $command:="cmd.exe /C xcopy " > >

Re: 4D Server v15 not displaying my database

2018-04-03 Thread Keisuke Miyako via 4D_Tech
like others have already suggested, you might want to check the firewall settings. a possible explanation why the app is accessible in v13 is that your v13 server is already registered as an authorised app in firewall settings. apps are registered by their absolute path, so a v13 profile would

Re: v13 - Win 7 and LEP

2018-03-28 Thread Keisuke Miyako via 4D_Tech
you can't end a string passed to cmd.exe with \" which is an open ended escape sequence. see how string should be properly escaped in this example: https://github.com/miyako/4d-component-sublaunch 2018/03/29 7:09、Chip Scheide via 4D_Tech <4d_tech@lists.4d.com>

Re: Multi-Table Query Into JSON?

2018-03-24 Thread Keisuke Miyako via 4D_Tech
Hello, "Movable form dialog box" is not the same as "Movable dialog box", even if the constant values are both 5. Open window and Open form window do not simply differ in the parameter list, the former is based on an old API which is why it is recommend to not use it anymore. "Movable form

Re: Multi-Table Query Into JSON?

2018-03-23 Thread Keisuke Miyako via 4D_Tech
as far as the window type is concerned, ALERT is like any DIALOG, you can pass the constant Movable dialog box to Open window to get similar effect. http://doc.4d.com/4Dv16/4D/16.3/Window-Types-compatibility.300-3651740.en.html note that this kind of window is not available for Open form

Re: DOCUMENT TO BLOB stopped working

2018-03-23 Thread Keisuke Miyako via 4D_Tech
Hello, have you tried - running the same code in 64-bit - running the same code in a "fresh" database - running the same code on an older macOS does the file open in the label editor itself? silly question, but are you sure the file is not 0 bytes? 2018/03/22 19:34、John Baughman via 4D_Tech

Re: Multi-Table Query Into JSON?

2018-03-23 Thread Keisuke Miyako via 4D_Tech
just as a reminder: the preferred option to configure automatic relations in code is to use SET FIELD RELATION. http://doc.4d.com/4Dv15/4D/15.5/GET-FIELD-RELATION.301-3577374.en.html the scope is the current process and you have better control over which relations to automate. 2018/03/23

Re: Multi-Table Query Into JSON?

2018-03-22 Thread Keisuke Miyako via 4D_Tech
it’s not that the command has negative attributes, it’s more to do with the fact that the command is too basic. a similar example is ALERT. I know many applications use it in production, and there is nothing wrong about that, but fir me, it is primarily a development tool for quick testing, I

Re: Multi-Table Query Into JSON?

2018-03-22 Thread Keisuke Miyako via 4D_Tech
it’s when you call it on a “template” object whose property values are pointers to fields. ** 4D Internet Users Group (4D iNUG) FAQ: http://lists.4d.com/faqnug.html Archive: http://lists.4d.com/archives.html Options:

Re: Multi-Table Query Into JSON?

2018-03-22 Thread Keisuke Miyako via 4D_Tech
Selection to json is a very simple command with very specific usages. it is nothing like selection to array. put another way, it is not an important command, you don’t need to know it, there is nothing you can’t do without it. it is like a convenience command for quick testing when you want

Re: Write Pro setting print options

2018-03-22 Thread Keisuke Miyako via 4D_Tech
Hello, WP PAGE SETUP over writes all current print settings with that of the write pro document, for the next print job. you should NOT use it when you are using regular SET PRINT OPTION to specify the paper and orientation.

Re: DOCUMENT TO BLOB stopped working

2018-03-22 Thread Keisuke Miyako via 4D_Tech
Hello, is the context relevant? I mean, if you simply run DOCUMENT TO BLOB in a single line, in a new method, with the path hard coded, does it still not work? ** 4D Internet Users Group (4D iNUG) FAQ:

Re: Write Pro setting print options

2018-03-22 Thread Keisuke Miyako via 4D_Tech
Hello, the commands is your question about the checkmark missing in the contextual popup menu? SET PRINT OPTION is a printing command, to change the document size of the Write Pro doc itself, I think you need to INVOKE ACTION

Re: Collections

2018-03-22 Thread Keisuke Miyako via 4D_Tech
http://doc.4d.com/4Dv16R4/4D/16-R4/New-collection.301-3342875.en.html > Optionally, you can prefill the new collection by passing one or several > value(s) as parameter(s). > Otherwise, you can add or modify elements subsequently through object > notation assignment. For example: > >

Re: HTMLTOX issue

2018-03-12 Thread Keisuke Miyako via 4D_Tech
Hello, I can't test because I don't have a High Sierra at hand, but did you download the repo or did you use the "quick download" links? P.S. I would appreciate it if you could use the "issues" feature on GitHub for such reports : ) > 2018/03/11 17:52、Bertrand SOUBEYRAND via 4D_Tech

Re: "Record to Object" or "Selection to Object"?

2018-03-08 Thread Keisuke Miyako via 4D_Tech
it's not often the case that you'd need all the fields represented in the object. on top of that, sometimes the structure defined field names or even their order of appearance may not be ideal. OB Copy with pointers is effectively the "record to object" feature.

Re: What's the easiest way to edit an existing constants file?

2018-03-07 Thread Keisuke Miyako via 4D_Tech
the constants XLF format is briefly explained in the v13 upgrade manual. http://download.4d.com/Documents/Products_Documentation/LastVersions/Line_13/VIntl/PDF_Format/4D_v13_Upgrade.pdf page 236 what is not mentioned, which I found to be quite important, is to assign a unique id for each group

Re: Import from Excel

2018-03-07 Thread Keisuke Miyako via 4D_Tech
F.Y.I. I've posted a "Match regex" solution to process CSV (read and write). quotes, carriage returns, missing columns and other perks are handled. https://github.com/miyako/4d-component-csv in general, it is easier if you could use TSV instead of CSV, as the format is more compatible with the

Re: .tmp files created by 4D Server

2018-02-28 Thread Keisuke Miyako via 4D_Tech
in general: there is an internal upper limit to how much "temporary" cache a memory an intensive operation such as sort can use, because awarding unlimited access could cost other operation such as queries or transactions. the limit can be configured with database parameter #61 (Maximum

Re: Pinterest API

2018-02-27 Thread Keisuke Miyako via 4D_Tech
it looks like Pinterest API is RESTful and OAuth 2.0. https://developers.pinterest.com/docs/getting-started/introduction/? it's a standard used by many web APIs https://github.com/miyako/4d-component-google-api https://github.com/4D-JP/4d-tips-google-mail

Re: 4D 15R5 Feedback

2018-02-27 Thread Keisuke Miyako via 4D_Tech
that would be: ACI0097539 https://bugs.4d.fr/fixedbugslist?branch=16_R6 https://bugs.4d.fr/fixedbugslist?branch=16 > 2018/02/28 3:07、Stephen J. Orth via 4D_Tech <4d_tech@lists.4d.com> のメール: > I recall reading (recently) a fix in V16.3 specifically dealing with a server > crash problem due to

Re: Custom Tags in Multi-style text areas

2018-02-25 Thread Keisuke Miyako via 4D_Tech
I think the idea is to directly insert the markup in plain text. you might have to format the tag with open and close tags (which is normally not done by in HTML). 2018/02/26 8:45、Tim Nevels via 4D_Tech <4d_tech@lists.4d.com> のメール: But it does not give an example

Re: v13 Compiled vs Interp execution

2018-02-22 Thread Keisuke Miyako via 4D_Tech
number literals are always typed real, regardless of decimals. http://doc.4d.com/4Dv15/4D/15.5/Constants.300-3577854.en.html you could code hexadecimals to enforce integer 0x01 but that's kind of nerdy... predefined constants are also pre-typed.

Re: Print to MS Word Document

2018-02-22 Thread Keisuke Miyako via 4D_Tech
you might want look into libreoffice and a python tool called uniconv apart from microsoft office itself, I think they deliver the best rendering. ** 4D Internet Users Group (4D iNUG) FAQ: http://lists.4d.com/faqnug.html

Re: Unicode characters and SQL queries

2018-02-19 Thread Keisuke Miyako via 4D_Tech
have you tried SET DATABASE PARAMETER(SQL engine case sensitivity;0) http://doc.4d.com/4Dv16/4D/16.3/SET-DATABASE-PARAMETER.301-3651635.en.html there is also a database setting http://doc.4d.com/4Dv16/4D/16.3/SQL-page.300-3670701.en.html > On Feb 20, 2018, at 03:20, David Rose via 4D_Tech

Re: Hierarchical lists with 3 or more levels - how to get the name of each level if an element is selected and how to set the list to an element

2018-02-16 Thread Keisuke Miyako via 4D_Tech
Hello, one way would be to assign custom parameters to each list element that describes its profile. note that you can give any number of key-value-pairs to each list element, http://doc.4d.com/4Dv16/4D/16.3/SET-LIST-ITEM-PARAMETER.301-3651197.en.html depending on what the list represents, it

Re: query for empty string

2018-02-14 Thread Keisuke Miyako via 4D_Tech
> but I'm still trying to wrap my brain around the sorts of situations that > might require using length=0 as mentioned in the previous post, there are some (non) characters that has a measurable length but whose sorting value is equal to that of "". Char(0) and Char(1) are such examples. >

Re: text2picture

2018-02-14 Thread Keisuke Miyako via 4D_Tech
Hello, in the context of creating a visual representation of the data file, it is better to NOT use SVG but rather create a BMP (which is what JPR showed in his "DataAnalyzer") because you are just drawing simple squares. https://en.wikipedia.org/wiki/BMP_file_format (why stress the SVG

Re: HTTP Body Size

2018-02-08 Thread Keisuke Miyako via 4D_Tech
I wouldn't do this, it trims the BLOB at 32K unless you specify the UTF8 constants (see docs). you might want to consider CONVERT FROM TEXT instead. > 2018/02/08 17:36、Douglas Cryer via 4D_Tech <4d_tech@lists.4d.com> のメール: > TEXT TO BLOB($vt_Request;$vx_Request)

Re: Can't Paste into Request Dialog in V15 Local Process

2018-02-07 Thread Keisuke Miyako via 4D_Tech
sounds like you are running the Request() function in a process for which you didn't install a menu bar (SET MENU BAR) ** 4D Internet Users Group (4D iNUG) FAQ: http://lists.4d.com/faqnug.html Archive:

Re: Unable to start Web Server 4D 16.3 on OSX 10.11

2018-02-06 Thread Keisuke Miyako via 4D_Tech
I have seen it a couple of times, several years ago, after a nasty crash of 4D or Wakanda Server. normally it is a one-off incident and goes away after an OS restart. > Has anyone else seen this? Any idea how to get more info on the problem, and > try to track down the reason that does not

Re: Unable to start Web Server 4D 16.3 on OSX 10.11

2018-02-06 Thread Keisuke Miyako via 4D_Tech
maybe the helper tool needs to be updated. the helper tool is installed when you start 4D web server on mac on port < 1024 for the first time. the old (v14, v15) tool has an option called REUSEADDR set to true, which means it may failed to detect unavailable ports under certain circumstances.

Re: 4d v14 web area & High Sierra & pdf

2018-02-05 Thread Keisuke Miyako via 4D_Tech
if you mean pdf.js, yes, it is a truly amazing product. 4D language documentation is 2000 pages yet it displays (with bookmarks and all) and scrolls extremely fast. https://mozilla.github.io/pdf.js/ 2018/02/05 22:17、Jeffrey Kain via 4D_Tech <4d_tech@lists.4d.com>

Re: query for empty string

2018-02-05 Thread Keisuke Miyako via 4D_Tech
Hello, it is not a matter of western or non-western. the test for length=0 is only necessary if you can reasonable expect string that collates to "". c.f. $test:=""=Char(0) $test:=""=Char(1) //both is true otherwise you can continue to use ="" for queries and string in general. 2018/02/06

Re: Value of Deselected Radio Button not updated when RBs are built via Object Duplicate

2018-02-04 Thread Keisuke Miyako via 4D_Tech
for the option to work, I believe you need to: 1. switch off the "group by name" compatibility mode, and 2. "join" an existing group of radio buttons 2018/02/05 0:18、Jonathan Marohn > のメール: I have seen that setting in the docs

Re: USB Communication

2018-02-02 Thread Keisuke Miyako via 4D_Tech
Hello, my experience in this domain is limited, but as far as know: on Mac, you can use libusb to control the USB directly, as long as the device does NOT have driver installed. for example, I did this to receive images from SANE scanners (ScanSnap, which is neither ImageCapture or TWAIN)

Re: Value of Deselected Radio Button not updated when RBs are built via Object Duplicate

2018-02-02 Thread Keisuke Miyako via 4D_Tech
I don't think that's possible. grouping by variable name is a "compatibility" (I refrain from calling it deprecated) feature since v2004. in general, compatibility features can go way at any time after 3 major versions. indeed, form objects can have no variable names since v12, and that is now

Re: what version(s) work with which version(s)

2018-02-01 Thread Keisuke Miyako via 4D_Tech
in principle (that is, if we just focus on the version number) then a v13 compiled component will work in v14 all the way up to v16. but there are other factors to consider. if you intend to also compile your host application, you need to be aware that non-unicode mode is not available in 64-bit

Re: ImageCaptureCore - to Variable?

2018-02-01 Thread Keisuke Miyako via 4D_Tech
the callback signature, as explained the sample DB, is $1 C_LONGINT: param_scan_type $2 C_TEXT: param_scan_path $3 C_BLOB: param_scan_data $4 C_TEXT: param_scan_context_info $4 contains parameters such as dataSize dataNumRows dataStartRow bytesPerRow numComponents bitsPerComponent

Re: Bug or feature?

2018-02-01 Thread Keisuke Miyako via 4D_Tech
I don't think that actually proves that JSON Parse is throwing the runtime error. rather than looking at the "line of code referenced in the error dialog" perhaps you could activate debug log recording in verbose mode (2) at the start of the offending method (and disable it a the end)

Re: Styled text to clipboard - v16

2018-02-01 Thread Keisuke Miyako via 4D_Tech
that would be INVOKE ACTION http://doc.4d.com/4Dv16R4/4D/16-R4/INVOKE-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/

Re: Bug or feature?

2018-01-31 Thread Keisuke Miyako via 4D_Tech
JSON Parse error can be handled with ON ERR CALL, because it is not a runtime error. "Current method name" requires range checking (see docs), but that is unrelated. you just have to be aware that OK isn't updated, you can consult "OB Is defined" instead. > 2018/02/01 14:20、Kirk Brooks via

Re: ImageCaptureCore - to Variable?

2018-01-31 Thread Keisuke Miyako via 4D_Tech
yes, but you receive binary RGB data in chunks, and you have to build your own JPG, PNG, TIFF, whatever, by code. do you really want to go down that path? 2018/02/01 8:03、Keith Culotta via 4D_Tech <4d_tech@lists.4d.com> のメール: Is an image available somewhere using

Re: Problems installing built application

2018-01-30 Thread Keisuke Miyako via 4D_Tech
extended finder attributes cause code sign to fail, but of course, clearing them with xattr mean little if the app is not signed in the first place. basically, if you don’t sign a built application, you have no choice but to ask the end user to disable gate keeper for the app, and install it

Re: Win32API 8.1.2 gui_GetWindowEx("") in v16r5 (Seth Leeper)

2018-01-30 Thread Keisuke Miyako via 4D_Tech
to be clear, you don't need a "v16" SDK to support v16 or v16 R releases. the SDK version is only bumped when there is a major change to the architecture, in my 10+ years of using it, that has only happened 4 times: v2004 (mach-o bundle) v11 (unicode mode) v12 (64-bit for windows) v14 (64-bit

Re: Win32API 8.1.2 gui_GetWindowEx("") in v16r5

2018-01-29 Thread Keisuke Miyako via 4D_Tech
if you just need to get the coordinates then the native command should do the job http://doc.4d.com/4Dv16/4D/16.3/GET-WINDOW-RECT.301-3651735.en.html else https://github.com/miyako/4d-plugin-mdi or https://github.com/miyako/4d-plugin-window-control

Re: Keystroke handling

2018-01-25 Thread Keisuke Miyako via 4D_Tech
perhaps you could use OBJECT SET EVENTS http://doc.4d.com/4Dv16/4D/16.3/OBJECT-SET-EVENTS.301-3651506.en.html to disallow the default button's click event during text edit. (its more subtle than disabling them) > 2018/01/26 0:35、Jim Crate via 4D_Tech <4d_tech@lists.4d.com> のメール:T > I’m not

Re: The writing is on the wall

2018-01-25 Thread Keisuke Miyako via 4D_Tech
blog: https://blog.4d.com/easily-create-cross-tables-reports-with-the-quick-report-editor/ doc: http://doc.4d.com/4Dv16R5/4D/16-R5/Overview.300-3509185.en.html --- thinking aloud: the HTML template feature http://doc.4d.com/4Dv16R5/4D/16-R5/QR-SET-HTML-TEMPLATE.301-3481576.en.html which is

Re: Keystroke handling

2018-01-24 Thread Keisuke Miyako via 4D_Tech
the "On Losing Focus" event fires as a "result" of another object taking its focus way. is the default button focusable? I don't think you can write generic code without knowing the next/previous object in entry order. also, keystrokes are not the only way to edit text, it can be drag and

Re: v13 - Is it possible to find all forms with letter as defined print settings

2018-01-23 Thread Keisuke Miyako via 4D_Tech
I suppose you can iterate over all forms http://doc.4d.com/4Dv16R5/4D/16-R5/FORM-GET-NAMES.301-3481424.en.html call page setup http://doc.4d.com/4Dv16R5/4D/16-R5/PAGE-SETUP.301-3482297.en.html and look up print settings http://doc.4d.com/4Dv16R5/4D/16-R5/GET-PRINT-OPTION.301-3482277.en.html

Re: Web Services Using HTTPS

2018-01-22 Thread Keisuke Miyako via 4D_Tech
you mean, you want to publish SOAP web services from 4D (and not consume one) ? all the principles for setting up the web server applies; certificate, redirection, etc. http://doc.4d.com/4Dv16/4D/16.3/Using-TLS-Protocol.300-3652280.en.html 2018/01/23 6:43、Stephen J. Orth via 4D_Tech

Re: 4D SQL Question

2018-01-22 Thread Keisuke Miyako via 4D_Tech
Not so dissimilar from your idea but you could do Begin SQL SELECT * FROM [myTable] LIMIT 0 into LISTBOX :myListbox; End SQL ** 4D Internet Users Group (4D iNUG) FAQ: http://lists.4d.com/faqnug.html Archive:

Re: dot notation object

2018-01-22 Thread Keisuke Miyako via 4D_Tech
yes, but the syntax would look like: $nTable:=$oParameters[kOParam_Requested_nTableNumber] see http://doc.4d.com/4Dv16R4/4D/16-R4/Using-object-notation-preview.300-3303773.en.html the example to follow is employee.name:="Smith" $vName:=employee["name"] > 2018/01/22 23:14、Jim Dorrance via

Re: v16 List Box Set Enterable not working?

2018-01-21 Thread Keisuke Miyako via 4D_Tech
I can't say if it is a bug, but the "standard" way to disable cell entry is to reject it in the On Before Data Entry event. http://doc.4d.com/4Dv16/4D/16.3/Managing-List-Box-Objects.300-3651812.en.html jump to "Managing entry" 2018/01/22 12:41、4d--- via 4D_Tech

Re: Docs about "twinned" process and pre-emptive mode

2018-01-18 Thread Keisuke Miyako via 4D_Tech
Hello, focusing on commands or syntax may lead you in the wrong direction, as there are so many possibilities in SQL and QUERY. are you familiar with the request log file? you will see a P (for preemptive) or C (for cooperative) indicated for each network request.

Re: Creating .docx files

2018-01-18 Thread Keisuke Miyako via 4D_Tech
although it's true that DOCX files are created using the zip algorithm, you can't just zip a folder and change it's fie extension; that's not how it works. to prove that point, you could change the extension of a valid DOCX to ZIP, zip it back, and change it's extension back to DOCX. it's now a

Re: Best way to fill a variabe with styled text?

2018-01-17 Thread Keisuke Miyako via 4D_Tech
windows=96DPI, mac=72DPI so the ratio is always 4:3. c.f. DPI used for internal pixels <->points conversion (integer). Always 96 (read-only) http://doc.4d.com/4Dv16R4/4D/16-R4/4D-Write-Pro-Attributes.300-3332062.en.html 2018/01/18 1:27、Piotr Chabot Stadhouders via 4D_Tech

Re: Parsing output from EXPORT STRUCTURE

2018-01-17 Thread Keisuke Miyako via 4D_Tech
perhaps the xml contains RTF comments that fails the parser... > 2018/01/18 1:07、Jeffrey Kain via 4D_Tech <4d_tech@lists.4d.com> のメール: > When I try using DOM Parse XML variable I get the error message 'The XML file > is not valid or is not well-formed. (no declaration found for element >

Re: File Size

2018-01-14 Thread Keisuke Miyako via 4D_Tech
KB = 1000 bytes KiB = 1<<10 bytes https://en.wikipedia.org/wiki/Kibibyte ** 4D Internet Users Group (4D iNUG) FAQ: http://lists.4d.com/faqnug.html Archive: http://lists.4d.com/archives.html Options:

Re: Using web areas in v16, is there a way to 'talk back' to 4d...

2018-01-04 Thread Keisuke Miyako via 4D_Tech
the difference between system vs embedded is more significant on Windows, but in general, if a JS/CSS/HTML feature is missing, there should be a decent polyfill to cover that. the embedded engine is CEF on v16 64-bit, not the somewhat outdated version of WebKit, which generally delivers

Re: Using web areas in v16, is there a way to 'talk back' to 4d...

2018-01-04 Thread Keisuke Miyako via 4D_Tech
I should have been more clear. in the examples posted, $4d is used if the web area is integrated, but a URL-based callback is used if the web area is system. 2018/01/05 9:50、Lee Hinde via 4D_Tech <4d_tech@lists.4d.com> のメール: Thanks Keisuke, but the integrated webkit

Re: Using web areas in v16, is there a way to 'talk back' to 4d...

2018-01-04 Thread Keisuke Miyako via 4D_Tech
this example contains both $4d and URL-based callbacks. https://github.com/miyako/4d-tips-web-area-charts see also https://github.com/miyako/4d-utility-compare-webarea-features --- either way, web server license is totally unnecessary. URL-based callback doesn't talk to the web server, it

Re: On Column Resize event

2018-01-04 Thread Keisuke Miyako via 4D_Tech
if what you want is equal distribution of growth, then there is another v16 feature that does that: https://blog.4d.com/listbox-columns-auto-resizing/ > 2018/01/05 2:13、Piotr Chabot Stadhouders via 4D_Tech <4d_tech@lists.4d.com> > のメール: > > When setting the Horizontal sizing option of the

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