Re: Web Area, 4D method Parameters

2019-11-11 Thread Keisuke Miyako via 4D_Tech
should not the string argument be quoted? since you are already inside double quotation you should use single quotes. alternatively you could pass the javascript 'event' object. ** 4D Internet Users Group (4D iNUG) Archive: h

Re: ListBox - Possible to set choice list programmatically?

2019-11-11 Thread Keisuke Miyako via 4D_Tech
https://doc.4d.com/4Dv16/4D/16.6/OBJECT-SET-LIST-BY-NAME.301-4445051.en.html https://doc.4d.com/4Dv16/4D/16.6/OBJECT-SET-LIST-BY-REFERENCE.301-4445040.en.html there was a trick to refresh the list but I can't find the article (forums) right now 2019/11/11 17:43、rooftop99--- via 4D_Tech <4d_tech

Re: A use case for C_VARIANT

2019-11-03 Thread Keisuke Miyako via 4D_Tech
for reference: For each" expects the iterator and elements to all be of the same time https://doc.4d.com/4Dv17/4D/17.3/For-eachEnd-for-each.300-4621439.en.html but it is possible to use "This.value" in listboxes https://doc.4d.com/4Dv17/4D/17.3/Managing-List-Box-Objects.300-4621083.en.html and

Re: Procedural printing HTML or a WebArea

2019-11-03 Thread Keisuke Miyako via 4D_Tech
example of calling wkhtmltopdf from 4D https://github.com/miyako/4d-component-wkhtmltopdf/ 2019/11/04 1:45、Dani Beaubien via 4D_Tech <4d_tech@lists.4d.com>のメール: I use wkhtmltopdf, It is cross platform and works very well. ***

Re: Windows default pixel scan preferences

2019-11-03 Thread Keisuke Miyako via 4D_Tech
if the scanner is TWAIN there is ICAP_XRESOLUTION and ICAP_YRESOLUTION https://miyako.github.io/2019/09/26/4d-plugin-twain-v2.html if the scanner is WIA, there is WIA_HORIZONTAL_SCAN_RESOLUTION_DPI and WIA_VERTICAL_SCAN_RESOLUTION_DPI 2019/11/04 3:42、Alfonso Zafon via 4D_Tech <4d_tech@lists.4d

Re: 4D Lists Disappearing - Cause Unknown - v17.2

2019-11-01 Thread Keisuke Miyako via 4D_Tech
CLEAR LIST works on a list in memory. should you not rather search for calls to SAVE LIST ? > 2019/11/02 2:19、Alan Tilson via 4D_Tech <4d_tech@lists.4d.com>のメール: > > At one point I commented out all the Clear List calls in the db and the > issue occurred again! **

Re: ORDA/Collections

2019-10-30 Thread Keisuke Miyako via 4D_Tech
"For each" loop is a good place to start. once you've familiarised yourself with collections and objects, you might want to look into collection methods such as map() for this kind of work. 2019/10/31 9:11、Justin Will mailto:jw...@willwerks.com>>のメール: I couldn't seem to get Selection To JSON wi

Re: ORDA/Collections

2019-10-30 Thread Keisuke Miyako via 4D_Tech
rather than using ORDA, you could use classic QUERY and call Selection to JSON with a template. https://doc.4d.com/4Dv15/4D/15.6/Selection-to-JSON.301-3817892.en.html the feature allows you rename and reorder your selection of fields however way you like. > 2019/10/31 5:45、Justin Will via 4D_Te

Re: Write Pro view mode

2019-10-28 Thread Keisuke Miyako via 4D_Tech
this feature was introduced in 17 R5: WP SET VIEW PROPERTIES( wpDoc | ( * ; "zoneWrite") ; prefWritePro) WP Get view properties( wpDoc | ( * ; "zoneWrite")) -> prefWritePro see also: http://forums.4d.fr/Post/FR/18150033/1/18150034 http://forums.4d.fr/Post/FR/18134916/1/18134917 http://forums.4d.

Re: Cache flushing did not complete... best practice

2019-10-25 Thread Keisuke Miyako via 4D_Tech
you should be able to find the flag with JPR's data analyzer. https://kb.4d.com/assetid=77253 > 2019/10/26 1:20、Justin Will via 4D_Tech <4d_tech@lists.4d.com>のメール: > > This is a flag inside the datafile. > I have tried to find this in the datafile a few times without luck. ***

Re: Picture variables in object notation

2019-10-22 Thread Keisuke Miyako via 4D_Tech
in my experience, most commands do not accept pictures via object notation property. > SET LIST ITEM ICON(sBar_RecordsSelect;1000;o_Images.sidebar_All) pictures, blobs and pointers are somewhat different to other sorts of variables, it's not the kind of ambiguity that parentheses can fix. you nee

Re: Compiling for Windows and Mac

2019-10-17 Thread Keisuke Miyako via 4D_Tech
that's basically right, v11 was the last version that supported i386 and ppc. the label back then was "Compile for PPC and Intel processors (Mac Intel and Windows)" http://library.4d-japan.com/REFERENCE/v11/4D_v11_Design_Ref.pdf --- stating with v12, we have the option to "also compile for 64-

Re: LIST USER FORMS does not work on 4D Server anymore

2019-10-16 Thread Keisuke Miyako via 4D_Tech
actually I should take my statement back; I could not find any reference that describes the feature as deprecated in v17.x. c.f. https://doc.4d.com/4Dv17/4D/17/Deprecated-or-removed-features-in-v17-product-range.200-3761903.en.html https://doc.4d.com/4Dv17/4D/17.3/Overview-of-user-forms.300-462

Re: LIST USER FORMS does not work on 4D Server anymore

2019-10-16 Thread Keisuke Miyako via 4D_Tech
P.S. of course server v132 was already 64-bit, but the non-carbon, non-altura flavour of 64-bit is another thing. ** 4D Internet Users Group (4D iNUG) Archive: http://lists.4d.com/archives.html Options: https://lists.4d.com/m

Re: LIST USER FORMS does not work on 4D Server anymore

2019-10-16 Thread Keisuke Miyako via 4D_Tech
is it really about the server or the user form feature being deprecated in 64-bit? > 2019/10/17 7:16、Julio Carneiro via 4D_Tech <4d_tech@lists.4d.com>のメール: > Beware, because that is not documented on 4D site. No mention there about > that statement not being supported on 4D Server anymore. *

Re: HTTP Request and x-www-form-urlencoded

2019-10-12 Thread Keisuke Miyako via 4D_Tech
http://forums.4d.fr/Post/FR/18982177/1/18982372#18982372 or https://github.com/miyako/4d-plugin-curl-v2 https://github.com/miyako/4d-plugin-houdini in 4D code it would be something like: C_TEXT:C284($1;$0;$escaped) C_LONGINT:C283($i) C_BOOLEAN:C305($shouldEscape) C_BLOB:C604($data) For ($i;1;

Re: 'Zip.bundle will damage your computer...' Error message in macOS Catalina — how to keep it enabled

2019-10-11 Thread Keisuke Miyako via 4D_Tech
) is OK. > 2019/10/12 8:45、Keisuke Miyako via 4D_Tech <4d_tech@lists.4d.com>のメール: > > for reference, > changing to BNDL resulted in the same error. ** 4D Internet Users Group (4D iNUG) Archive: http://lists.4d

Re: 'Zip.bundle will damage your computer...' Error message in macOS Catalina — how to keep it enabled

2019-10-11 Thread Keisuke Miyako via 4D_Tech
for reference, changing to BNDL resulted in the same error. > 2019/10/12 8:38、Keisuke Miyako via 4D_Tech <4d_tech@lists.4d.com>のメール: > I changed the bundle type from to APPL ** 4D Internet Users Group (4D i

Re: 'Zip.bundle will damage your computer...' Error message in macOS Catalina — how to keep it enabled

2019-10-11 Thread Keisuke Miyako via 4D_Tech
I don't have Catalina with me right now but I found that > spctl --assess --type exec - /Zip.bundle returns > rejected (the code is valid but does not seem to be an app) following hints from https://forums.developer.apple.com/thread/77430 I changed the bundle type from to APPL (defaul

Re: 4D and FTP - AGAIN

2019-10-10 Thread Keisuke Miyako via 4D_Tech
for future reference, could you be more specific about this statement: > 2019/10/10 19:07、Jörg Knebel via 4D_Tech <4d_tech@lists.4d.com>のメール: > There is some kind of timeout/time limit when one is debugging > "forward/backward/left/right” without leaving the debugger or even restart 4D… are you

Re: Option click close box

2019-10-10 Thread Keisuke Miyako via 4D_Tech
I am a bit confused; so what Keith posted was just about regular (non-option) clicks..? as I posted earlier, I can not say if this is a bug or not. we can not find a 4D documentation that says explicitly that option-click shall not invoke the event, your argument makes sense; maybe time to open

Re: Option click close box

2019-10-10 Thread Keisuke Miyako via 4D_Tech
thank you for sharing, so if that is the case, I suppose we can say that... the splash screen is not a dialog; On Close Box is not applicable by default. to prevent it from closing, you could use DIALOG in the application process. that said, starting a DIALOG (event loop) in On Startup is a very

Re: Option click close box

2019-10-10 Thread Keisuke Miyako via 4D_Tech
Hello, I am out of my depth on this subject, but would system preferences / general / ask whether to save changes before closing document (unchecked by default) make any difference? for what it's worth, you can control the dirty bit and disable the close box with this: https://miyako.github.

Re: Option click close box

2019-10-10 Thread Keisuke Miyako via 4D_Tech
not the close box, but "Option-Command-W" is standard Apple shortcut. https://support.apple.com/en-us/HT201236 no mention of option+close here: https://support.apple.com/guide/mac-help/work-with-app-windows-mchlp2469/mac I can not comment if the form event not firing or the splash window closin

Re: File Decoding: EBCDIC

2019-10-07 Thread Keisuke Miyako via 4D_Tech
A plugin to perform various text conversion that are not currently support in 4D: https://github.com/miyako/4d-plugin-text-convert might help (no first hand experience with EBCDIC, sorry for that) ** 4D Internet Users Group

Re: v15 - Array Object and Append array

2019-10-03 Thread Keisuke Miyako via 4D_Tech
objects are references, so you can't use the same object over and over again, as if they point to different things. bad code: ARRAY OBJECT($oo;0) C_OBJECT($o) For ($i;1;3) OB SET($o;"value";$i) APPEND TO ARRAY($oo;$o) End for good code #1: ARRAY OBJECT($oo;0) C_OBJECT($o) For ($i;1;3) OB

Re: Printing structures

2019-10-03 Thread Keisuke Miyako via 4D_Tech
for what it's worth, I've put out an XML to SVG example here: https://github.com/miyako/4d-utility-structure-to-svg-converter-v2 --- the native exported HTML is supposed to look like this: https://imgur.com/RGfiPq5 however, because cross reference of XSL is blocked be default in Safari, you'l

Re: 4D v17 Property List Issues - is this only me?

2019-10-02 Thread Keisuke Miyako via 4D_Tech
what if you create a new user account on the same Mac, login as the other user, and use 4D from that Desktop? I ask, because I've had similar experiences with M. Excel in the past, where (maybe) the preferences info plist file or some other support file was corrupt in my primary account. 2019/10

Re: v15 - what code runs before On Startup?

2019-10-02 Thread Keisuke Miyako via 4D_Tech
also there can be per-user startup methods defined (see Toolbox, Users) > 2019/10/02 23:38、Keisuke Miyako via 4D_Tech <4d_tech@lists.4d.com>のメール: > > deprecated in recent versions, > but a project method named "startup" or "debut" is reserved (v3 start

Re: 4D v17 Property List Issues - is this only me?

2019-10-02 Thread Keisuke Miyako via 4D_Tech
is this in project mode or binary structure mode? the project mode property list / form editor is still in beta. > 2019/10/02 0:44、Daniel Solenthaler via 4D_Tech <4d_tech@lists.4d.com>のメール: > > In 4D v17R5 I click onto a cell of the property list and nothing happens. It > takes 3 seconds and a „

Re: v15 - what code runs before On Startup?

2019-10-02 Thread Keisuke Miyako via 4D_Tech
deprecated in recent versions, but a project method named "startup" or "debut" is reserved (v3 startup procedure) in legacy databases. ** 4D Internet Users Group (4D iNUG) Archive: http://lists.4d.com/archives.html Options: h

Re: Difference between loading a compiled and interpreted component

2019-10-02 Thread Keisuke Miyako via 4D_Tech
I don't think the events are relevant in this instance. what if you create a copy of the component and make all methods private (don't share with host) ? would you still get the error? if the error stops, you know that a shared method is being invoked. in that case, you can add a trace at the

Re: Difference between loading a compiled and interpreted component

2019-10-02 Thread Keisuke Miyako via 4D_Tech
perhaps you can export the symbols file and see if there are any global symbols (process variable, project method) that could be invoked unintentionally. it sounds like a method is being called recursively. ** 4D Internet User

Re: HTTP AUTHENTICATE - how to know if the authentification worked

2019-09-27 Thread Keisuke Miyako via 4D_Tech
are you sure it is HTTP Get that is throwing the error? the command is not supposed to touch the body unless you pass OBJECT and the content type is application/json or you pass PICTURE and the content type is image/*, or you pass TEXT and the content type is text/* https://doc.4d.com/4Dv17/4D/17

Re: Silly question

2019-09-26 Thread Keisuke Miyako via 4D_Tech
just like any regular form object (button, etc), the object name should have no inferred effect on the subform. the bounding variable (data source) should be the only thing that inherently controls its behaviour. anything else should be considered an option and explicitly given to the subform fro

Re: v16 - Verify & Repair log files

2019-09-19 Thread Keisuke Miyako via 4D_Tech
this (written for v17 but you can parse logs from v16) can be a starting point: github.com/4D-JP/code-audit/blob/master/parse_verify_log.txt 2019/09/20 5:42、Chip Scheide via 4D_Tech <4d_tech@lists.4d.com>のメール: is there a parser

Re: Apple Events Manager Process?

2019-09-16 Thread Keisuke Miyako via 4D_Tech
the "Apple" in "Apple Event Manager" has no correlation to the platform operation system. it could be interpreted more generically as the system event manager. if you see this process popping up, check your On System Event database method; if a blank method exists, delete it completely. if you d

Re: Shared objects and collections

2019-09-16 Thread Keisuke Miyako via 4D_Tech
you can grow a collection implicitly using bracket notation. quote: If this element index is beyond the last existing element of the collection, the collection is automatically resized and all new intermediary elements get the null value https://doc.4d.com/4Dv17/4D/17.3/Using-object-notation.30

Re: Shared objects and collections

2019-09-09 Thread Keisuke Miyako via 4D_Tech
> So it looks like you can’t .push() a shared object onto a shared collection. not quite. a shared object is either single (solo) or multiple (once belonged to a group) if an object joins a group, it is free to leave it, but it can't join another group. i.e. once you divorce your spouse, you c

Re: "automatically repaired method"

2019-09-06 Thread Keisuke Miyako via 4D_Tech
seems like complex manipulation (combination of redo, undo, copy, paste, cut, duplicate, group, ungroup) can create orphans and widows. less frequent with newer versions, but as long as resources are managed by association (itself not a bad solution) sync issues can happen. 2019/09/06 4:08、Tom B

Re: NTK 3.1.0 crashing on some Windows 10 1803 Home, 4D Remote v17R4 build 232574

2019-09-06 Thread Keisuke Miyako via 4D_Tech
does it help if you change the DNS to 8.8.8.8 (google) ? I find that some networks are disconnected from microsoftonline or google endpoints for a short while. > 2019/09/06 12:04、David Ringsmuth via 4D_Tech <4d_tech@lists.4d.com>のメール: > > It still crashed when NTK 3.1.0 is used to contact googl

Re: unicode, blobs, and the web

2019-09-01 Thread Keisuke Miyako via 4D_Tech
> 2019/08/29 12:31、webmaster namethatplant.net > のメール: > > I still have a question. > The write-up for PROCESS HTML TAGS contains the warning, "It is now highly > inadvisable to store texts in BLOBs". > > I don't use the command "PROCESS HTML TAGS" but I have used BLOB variables in > several ot

Re: Formulas with XLS Plugin

2019-09-01 Thread Keisuke Miyako via 4D_Tech
First I would fully recommend XL plugin from Pluggers, for any serious project. What I posted as "XLS" is a limited wrapper of xlslib (not libxls) http://xlslib.sourceforge.net the feature list (of the library) is here http://xlslib.sourceforge.net/features.php snd the TODO is here http://xls

Re: Possible to SELECT a record number?

2019-08-29 Thread Keisuke Miyako via 4D_Tech
select the virtual field __ROW_ID https://doc.4d.com/4Dv16/4D/16/Replication-via-SQL.300-3201184.en.html > 2019/08/30 7:10、Jeffrey Kain via 4D_Tech <4d_tech@lists.4d.com>のメール: > Is it possible to SELECT a 4D record number in the SQL engine? I'm not > finding it in the documentation yet but I tho

Re: _ as first character in Method Name [was 64 bit...]

2019-08-24 Thread Keisuke Miyako via 4D_Tech
Hello rhe extended 255 lengrh applies to form object names. ** 4D Internet Users Group (4D iNUG) Archive: http://lists.4d.com/archives.html Options: https://lists.4d.com/mailman/options/4d_tech Unsub: mailto:4d_tech-unsubscr

Re: Regex expert needed??

2019-08-23 Thread Keisuke Miyako via 4D_Tech
GET TEXT KEYWORDS breaks strings the same way as when you double-click a word in a text editor. spaces, tabs, etc. are boundaries, commas periods and apostrophes depend on the context. e.g. (one word) 1,000,000 (one word) Macy's (one word) http://userguide.icu-project.org/boundaryanalysis 2019

Re: Regex expert needed??

2019-08-23 Thread Keisuke Miyako via 4D_Tech
for reference: simple diff tool for 4D https://github.com/miyako/4d-plugin-diff-match-patch ** 4D Internet Users Group (4D iNUG) Archive: http://lists.4d.com/archives.html Options: https://lists.4d.com/mailman/options/4d_tec

Re: Regex expert needed??

2019-08-22 Thread Keisuke Miyako via 4D_Tech
regex is pattern matching. "the longest substring" is as generic as it gets, not a pattern at all, so one thing for sure is that this is not a regex problem. ** 4D Internet Users Group (4D iNUG) Archive: http://lists.4d.com/ar

Re: Win32API setup woes

2019-08-20 Thread Keisuke Miyako via 4D_Tech
license error is the default exception when a plugin call fails. the real cause could be anything. first you should check in 4D's explorer that the plugin is loaded. if not, you'd get the licensing error. maybe you are missing vc runtimes. maybe the architecture doesn't match. keep in mind tha

Re: My 4D Experience Blog

2019-08-20 Thread Keisuke Miyako via 4D_Tech
you know there is a popup to switch languages? https://imgur.com/dFnn6H3 > 2019/08/20 17:49、Jeremy Roussak via 4D_Tech <4d_tech@lists.4d.com>のメール: > > The dark background colour scheme is great, but poses difficulties for SQL > code, which is subject to the “black on black” problem and rather tr

Re: _ as first character in Method Name [was 64 bit...]

2019-08-19 Thread Keisuke Miyako via 4D_Tech
4D already uses some private property names, e.g. __LockerID __NEW __KEY https://doc.4d.com/4Dv17R5/4D/17-R5/dataClassfromCollection.305-4128671.en.html https://doc.4d.com/4Dv17R5/4D/17-R5/Shared-objects-and-shared-collections.300-4128430.en.html so beware. > 2019/08/20 2:12、Chip Scheide via 4

Re: 64 bit readiness report - some questions

2019-08-16 Thread Keisuke Miyako via 4D_Tech
underscore prefixes are reserved for internal features, for plugins in particular. in the past, they were used to auto-save 4D Write/View/Draw plugin areas. I don't know if there are any other plugins that take advantage of the implicit association, but to avoid unintended consequences, it's bett

Re: 64 bit readiness report - some questions

2019-08-16 Thread Keisuke Miyako via 4D_Tech
you can use Path to object in v17 https://doc.4d.com/4Dv17/4D/17.2/Path-to-object.301-4386218.en.html or File and Folder in 17R https://doc.4d.com/4Dv17R6/4D/17-R6/File-and-Folder.201-4310307.en.html > 2019/08/17 8:17、Chip Scheide via 4D_Tech <4d_tech@lists.4d.com>のメール: > > So.. these commands

Re: 64 bit readiness report - some questions

2019-08-16 Thread Keisuke Miyako via 4D_Tech
PLATFORM PROPERTIES can be replaced by Is Windows Is macOS https://doc.4d.com/4Dv17/4D/17/Is-Windows.301-3760425.en.html https://doc.4d.com/4Dv17/4D/17.2/Is-macOS.301-4387313.en.html if you are only interested in the platform. --- you can also use Get system info https://doc.4d.com/4Dv17/4

Re: Prevent Client from Sleeping

2019-08-15 Thread Keisuke Miyako via 4D_Tech
does not 4D already provide sleep detection with v16 and new network layer? https://blog.4d.com/application-sleep-notification/ solutions such as this: https://github.com/miyako/4d-plugin-system-notification/ should no longer be necessary. --- c.f. https://docs.microsoft.com/en-us/windows/wi

Re: unicode, blobs, and the web

2019-08-14 Thread Keisuke Miyako via 4D_Tech
2019/08/10 2:35、webmaster namethatplant.net via 4D_Tech <4d_tech@lists.4d.com>のメール: I didn't see that important detail mentioned anywhere but in reference to that one command, but, since text variables can now hold up to 2 GB, I tried sub

Re: Confirmation for SQL Execute Immediate

2019-08-14 Thread Keisuke Miyako via 4D_Tech
Hello, I don't think the statement (that "execute immediate" should only be used with the internal SQL db) was ever true. the only restrictions that I know of are: no local variables with EXECUTE IMMEDIATE. https://doc.4d.com/4Dv17R5/4D/17-R5/Overview-of-SQL-Commands.300-4128371.en.html no ODBC

Re: Old version (2003) export the data

2019-08-02 Thread Keisuke Miyako via 4D_Tech
I would invoke the process list Alt+Shift+Right click https://download.4d.com/Documents/Products_Documentation/LastVersions/Line_2004/VIntl/PDF_Format/4D_2004_Keyboard_Shortcuts.pdf then perform some action that executes a method (click, etc) then break the debugger. ***

Re: How to decode this text

2019-07-31 Thread Keisuke Miyako via 4D_Tech
the original post was about decoding so I would assume receiving. as for sending "manually" built MIME, you could use curl, https://github.com/miyako/4d-plugin-curl-v2 or, to some extent, QuickSend in MIME mode. http://doc.4d.com/4Dv17/4D/17/SMTP-QuickSend.301-3785447.en.html Transporter can ex

Re: Write Pro wk anchor layout attribute permanent when using wk behind text

2019-07-31 Thread Keisuke Miyako via 4D_Tech
Hello, have you tried modifier+click? 2019/08/01 0:58、Tom Benedict via 4D_Tech <4d_tech@lists.4d.com>のメール: Has anyone else experienced this? ** 4D Internet Users Group (4D iNUG) Archive: http://l

Re: How to decode this text

2019-07-31 Thread Keisuke Miyako via 4D_Tech
The MIME header is an multi layered specification. https://en.wikipedia.org/wiki/MIME one can switch encodings or charsets mid-sentence, or use multiple lines, so the decoding logic can get really complex. c.f. https://github.com/miyako/4d-plugin-gmime > 2019/07/31 5:52、Chip Scheide via 4D_Tec

Re: Where is this resource file

2019-07-29 Thread Keisuke Miyako via 4D_Tech
to be clear, do you not have an RSR file at all. or were you unable to locale any resources (PICT, cicn, MASK...) inside your RSR file? if you are on Mac, it could be that the structure file is forked and the resource is inside the resource fork. > 2019/07/29 16:04、JOHN BAUGHMAN via 4D_Tech <4d

Re: v17R5 bug?

2019-07-28 Thread Keisuke Miyako via 4D_Tech
why not use a key value pair instead of a flat collection of pointers? > 2019/07/29 2:16、John DeSoi via 4D_Tech <4d_tech@lists.4d.com>のメール: > Disappointing because you can search for pointers in a pointer array, but not > in a collection. And the above gives -1 implying that the search was > com

Re: Where is this resource file

2019-07-28 Thread Keisuke Miyako via 4D_Tech
before v11, the .RSR file adjacent to the structure file that shares the same name was automatically opened. starting from v11, the recommendation is to move any .RSR files to the Resources folder, and explicitly open it with Open resource file. https://doc.4d.com/4Dv17/4D/17.2/Resources.201-438

Re: Resize Window and Move Code

2019-07-28 Thread Keisuke Miyako via 4D_Tech
sounds like you just need to use both W. SET RECT and RESIZE F. WINDOW > 2019/07/29 7:56、John J Foster via 4D_Tech <4d_tech@lists.4d.com>のメール: > Doe anyone have an code they’d be willing to share for managing > both the resize and moving of a window to the exact location and width and > height

Re: REATE SELECTION FROM ARRAY

2019-07-25 Thread Keisuke Miyako via 4D_Tech
CREATE SELECTION FROM ARRAY doesn't write any records, so I don't think locking is the problem. https://doc.4d.com/4Dv17R5/4D/17-R5/CREATE-SELECTION-FROM-ARRAY.301-4127676.en.html I am a bit concerned about the description > 1 - Client_1 create the record. I assume you take care of the fact tha

Re: Find in Design and Replace

2019-07-25 Thread Keisuke Miyako via 4D_Tech
I think the best way is to use METHOD GET CODE/METHOD SET CODE, and do the replacement using code. 4D tends to self-correct backslashed inserted in the middle of a token, so you might need to regex your way to find the right insertion point. > 2019/07/26 2:57、Chip Scheide via 4D_Tech <4d_tech@lis

Re: list box and form open and close detail events

2019-07-25 Thread Keisuke Miyako via 4D_Tech
open/close detail form events are only applicable when a table list form is used standalone. (modify/display selection) they never worked when the same list form was used as a subform. in that sense, this is not really a listbox issue. perhaps you can use the on load/on unload event of the detai

Re: Get System Info vs PLATFORM PROPERTIES

2019-07-18 Thread Keisuke Miyako via 4D_Tech
Hello, I think the verbose version string is for human consumption, for example, to help the end user or support contact identify the running platform. I can't think of any situation where the internal build number would be needed in 4D code. For osVersion, I think it would help if there was a

Re: MacOS Character Viewer (emojis) and 4D

2019-07-16 Thread Keisuke Miyako via 4D_Tech
there was a discussion several months ago: https://forums.4d.com/Post/FR/28908540/1/28911673#28911673 but it looks like the trick no longer works with 17 R5. > 2019/07/17 8:00、Jeffrey Kain via 4D_Tech <4d_tech@lists.4d.com>のメール: > > It seems like 4D doesn't allow the macOS character viewer to op

Re: Stylesheet Search?

2019-07-12 Thread Keisuke Miyako via 4D_Tech
FYI stylesheets are deprecated in project mode. I think the FORM LOAD approach continues to be the best option. > 2019/07/13 5:27、Dani Beaubien via 4D_Tech <4d_tech@lists.4d.com>のメール: > Might be easier to update it to v17 R5 and save the structure as a project > and then use a file based search

Re: LISTBOX SELECT ROW

2019-07-11 Thread Keisuke Miyako via 4D_Tech
the background colour is grey when the listbox does not have focus (presumably) you could use GOTO OBJECT to move the focus. or. you could "hide selection highlight" and manage the background colour completely. https://blog.4d.com/customize-highlight-color-upon-listbox-row-selection/ 2019/07/1

Re: Entity selection / collection listbox

2019-07-08 Thread Keisuke Miyako via 4D_Tech
my understanding is that when you assign an entity selection (which is an object, not collection) as the data source of a listbox, a kind of proxy collection is created to bind the entity selection to the UI. basic features are common ("This" is an object and This.property is a value), but there

Re: Importing from camera

2019-07-07 Thread Keisuke Miyako via 4D_Tech
There are SD cards with integrated WiFi that can send media to a designated PC folder. --- plugin to monitor a folder: https://github.com/miyako/4d-plugin-folder-watch > 2019/07/08 12:25、JOHN BAUGHMAN via 4D_Tech <4d_tech@lists.4d.com>のメール: > What options are there, native or otherwise, for im

Re: Subform 'Variable or Expression' (Bound variable) not working with it is a Form.variable

2019-07-07 Thread Keisuke Miyako via 4D_Tech
that is correct... an object property is not a variable, so it doesn't qualify as a bound variable. and a pointer can only point to a table, field, variable, array or array element, so again, an object property is out of luck. the widget system works best when the expression or variable is blan

Re: v 17.1 potential gotcha

2019-06-26 Thread Keisuke Miyako via 4D_Tech
are you referring the the scaling dialog invoked from the "Form" menu (when the form editor is frontmost) scaling is not a constant property. it is a one-shot operation that globally resizes all form objects. the dialog offers 3 options, 133% (72 to 96 DPI), 75% (opposite), or custom (default

Re: Indexing taking a log time to reindex

2019-06-26 Thread Keisuke Miyako via 4D_Tech
perhaps the reindexing of the 250k table has saturated the cache, leaving little space the smaller table. FLUSH CACHE (FLUSH BUFFERS) with the * could be used to purge objects from the cache, if that's the case. also 15R4 improved the indexing process https://download.4d.com/Documents/Products

Re: APPLESCRIPT FROM 4D

2019-06-26 Thread Keisuke Miyako via 4D_Tech
the "tell" verb specifies the target object in applescript. so if there is only one line, > tell application "Preview" > print POSIX file "/Volumes/SnapServer/Test_Invoices/Checon_Invoices/2019/04 - > April/224747_04_12.PDF" with print dialog > end tell could be reduced to > tell application "

Re: APPLESCRIPT FROM 4D

2019-06-26 Thread Keisuke Miyako via 4D_Tech
you can insert a line activate in the tell~end tell block > 2019/06/27 5:50、Chuck Miller via 4D_Tech <4d_tech@lists.4d.com>のメール: > How would I bring Preview to the front ** 4D Internet Users Group (4D iNUG) Archive: http://

Re: Create Object Field Under Program Control?

2019-06-25 Thread Keisuke Miyako via 4D_Tech
haven't investigated thoroughly, but I think it is possible to update an existing table with IMPORT STRUCTURE https://doc.4d.com/4Dv17/4D/17.2/IMPORT-STRUCTURE.301-4386048.en.html if the UUID matches. you might want to first test and confirm the behaviour with an existing DB. > 2019/06/25 23:5

Re: 2-Way USB Communication

2019-06-24 Thread Keisuke Miyako via 4D_Tech
it depends on the device. if it is an Human Interface Devices, https://docs.microsoft.com/en-us/windows-hardware/drivers/hid/introduction-to-hid-concepts https://developer.apple.com/documentation/kernel/iohiddevice?language=objc you normally interact via an installed device driver. if not (Ardu

Re: Select document command and .4lbp files

2019-06-24 Thread Keisuke Miyako via 4D_Tech
the documentation gives examples of public UTIs. https://doc.4d.com/4Dv17R5/4D/17-R5/Select-document.301-4127312.en.html https://developer.apple.com/library/archive/documentation/FileManagement/Conceptual/understanding_utis/understand_utis_conc/understand_utis_conc.html it seems like public UTIs

Re: Rotate Picture

2019-06-23 Thread Keisuke Miyako via 4D_Tech
I think not. a DOM reference is independent from the 4D picture, except for ones that are embedded (exported with the "Own" option). then, a 4D text (the local variable) that contains the hex. representation of the reference is not in any way associated with the DOM reference, or the picture for

Re: Rotate Picture

2019-06-22 Thread Keisuke Miyako via 4D_Tech
I think the default export option is "copy" if you don't SVG_CLEAR (see Cannon's code) you'd be leaking memory. I suppose you could save speed with the "own" option (you won't need to CLEAR any more) but the difference is probably negligible. 2019/06/23 9:28、JOHN BAUGHMAN via 4D_Tech <4d_tech

Re: Window type -724 (more info)

2019-06-19 Thread Keisuke Miyako via 4D_Tech
use a calculator to break down the number to binary values. -724 decimal is 4 + 16 + 64 + 128 + 512 negative --- old constants used by the old Open window command is a combination of flags. some are official in 4D (1, 2, 4, 8, 16, 32, 2048, 4096, 8192) some are undocumented. https://doc.4d.c

Re: signature capture in 4D

2019-06-18 Thread Keisuke Miyako via 4D_Tech
browsing their web site, perhaps you could start by trying their Active X example inside a 32-bit 4D Web Area (system, not WebKit), then 64-bit Web Area (again, system, not CEF), and see what happens. https://www.topazsystems.com/sigplusproactivex.html --- if using Active X inside a Web Area is

Re: Filter MSC Log File?

2019-06-18 Thread Keisuke Miyako via 4D_Tech
the 32-bit MSC calls XSLT APPLY TRANSFORMATION to convert XML to HTML. XSLT support was discontinued in the 64-bit product line for various reasons, https://doc.4d.com/4Dv15/4D/15/XSLT-commands-deprecated.300-2044605.en.html but technically, you can still use the same XSLT template to get the cl

Re: what format for an Icon file - windows?

2019-06-17 Thread Keisuke Miyako via 4D_Tech
it needs to be an .ico file for windows. 2019/06/18 0:52、Chip Scheide via 4D_Tech <4d_tech@lists.4d.com>のメール: does the icon file need to be in a different location for windows? ** 4D Internet Users

Re: 4D v17 Mac Crashing on First Launch

2019-06-13 Thread Keisuke Miyako via 4D_Tech
4D (or any .app) must be installed by drag & drop from a signed .dmg, directly to a subfolder of /Applications, or by using a signed .pkg. if you .zip it yourself, or install elsewhere, the .app is translocated and you get all sorts of problems. > 2019/06/14 0:03、Narinder Chandi via 4D_Tech <4D

Re: v17.4 source Stand-alone and Remote: picture drop onto a picture field in an input form

2019-06-13 Thread Keisuke Miyako via 4D_Tech
I am unaware of any changes starting with v17 (I presume R4) but in general, the way to process drag and drop over a picture is: On After Edit: accept native drop or paste. On Drop: accept custom drag and drop. $0 must be assigned 0 in On Drag Over. On Drag Over: check if Pasteboard data size is

Re: Emojis in text

2019-06-12 Thread Keisuke Miyako via 4D_Tech
according to https://unicode.org/reports/tr51/#Property_Stability an Emoji is \p{RI} \p{RI} | \p{Emoji} ( \p{EMod} | \x{FE0F} \x{20E3}? | [\x{E0020}-\x{E007E}]+ \x{E007F} )? (\x{200D} \p{Emoji} ( \p{EMod} | \x{FE0F} \x{20E3}? )?)+ no kidding. but the ICU in 4D does not

Re: Conversion from v2003

2019-06-11 Thread Keisuke Miyako via 4D_Tech
it's a plugin, written for v12 (I think a couple of developers used it back then, not sure about now) https://github.com/miyako/4d-plugin-4d-for-oracle 2019/06/12 4:52、Luc Devar via 4D_Tech <4d_tech@lists.4d.com>のメール: I think M. Miyako Keisuke has developed somethi

Re: Linefeed option not working for v16 emails

2019-06-11 Thread Keisuke Miyako via 4D_Tech
oops! sorry for that cryptic message! we had some reports that messages sent from 4D Internet commands v16 were showing up with no carriage returns for Gmail. I wanted to search the archives for any mention of similar issues. **

Re: Linefeed option not working for v16 emails

2019-06-11 Thread Keisuke Miyako via 4D_Tech
参考までに アップデートで解消した: 2018/11/04 5:05、Janet Jonas via 4D_Tech <4d_tech@lists.4d.com>のメール: I went to the link Keisuke provided for the bug fix list for v16 since the v16.4 release, and I decided to be optimistic and select the last build mentioned: 228799.

Re: Special character euro sign in JSON string

2019-06-11 Thread Keisuke Miyako via 4D_Tech
JSON string should be represented in unicode https://www.json.org \u0080 is not the euro sign. $euro:=JSON Parse("{\"euro\":\"\\u20AC\"}") > 2019/06/11 16:22、Piotr Chabot Stadhouders via 4D_Tech > <4d_tech@lists.4d.com>のメール: > When I use $obj:=JSON Parse($json_string) I don't get the euro sign

Re: Using TRANSFORM PICTURE Crop in a Scaled to fit (Proportional) picture variable

2019-06-08 Thread Keisuke Miyako via 4D_Tech
Unfortunately TRANSFORM PICTURE applies the cropping coordinates to the full size picture not the scaled picture, which of course is way off is there a reason why your image is scaled on screen? did you scale the image with TRANSFORM PICTURE or are you relying on the image's form object propert

Re: Open a v17 data file when Structure is unknown

2019-06-06 Thread Keisuke Miyako via 4D_Tech
the data analyser written by JPR https://kb.4d.com/assetid=77253 had code that could essentially be used to retrieve structure information out of a data file. (but it's a compiled database) I used it to write this tool to edit the UUID of a structure and data file (was WEDD resource in v2004)

Re: 4d-component-sendmail issue

2019-06-04 Thread Keisuke Miyako via 4D_Tech
the Mail app for iOS is more faithful to the MIME specification. if you send an HTML mail with the content-type multipart/related, attachments are rendered inline where the HTML body references it by its content-id. if you do not reference your attachments in your HTML by their content-id, they

Re: Invalid JSON?

2019-06-02 Thread Keisuke Miyako via 4D_Tech
perhaps there is a BOM. did you pass a C_TEXT to HTTP Request? you might want to use a BLOB, then Convert to text (which will get rid of the BOM), then parse. 2019/06/03 10:05、JOHN BAUGHMAN via 4D_Tech <4d_tech@lists.4d.com>のメール: JSON malformed in line 1, position

Re: V17R3 vs PowerShell

2019-05-31 Thread Keisuke Miyako via 4D_Tech
> QBXMLRP2.RequestProcessor is the QB SDK based on COM / OLE ? if yes, it shouldn't be a huge problem that information specific to 4D+PowerShell+QB is rather hard to find, because COM /OLE is a common technology on Windows. PowerShell is just one of the ways to invoke it. in theory, generic

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