Re: Contextual Cut, Copy & Paste...?

2017-06-27 Thread Keisuke Miyako via 4D_Tech
the source code for this example is lost, but an early version (with bugs) is still hosted here: http://forums.4d.fr/Post//6273875/1 > 2017/06/27 17:51、Keisuke Miyako via 4D_Tech <4d_tech@lists.4d.com> のメール: > > http://sources.4d.com/trac/4d_keisuke/wiki/Custo

Re: Contextual Cut, Copy & Paste...?

2017-06-27 Thread Keisuke Miyako via 4D_Tech
contextual (or otherwise) click on an editable text input is only available in v14 or later, in older version you need to work around with ON EVENT CALL. http://sources.4d.com/trac/4d_keisuke/wiki/CustomContextualMenu but then, if your are on v14 or later, you could simply use the built-in

Re: Rotate Picture in 4D

2017-06-27 Thread Keisuke Miyako via 4D_Tech
by the way, GD has a rotate function too, https://github.com/miyako/4d-plugin-gd also available via 4D native PHP ** 4D Internet Users Group (4D iNUG) FAQ: http://lists.4d.com/faqnug.html Archive:

Re: Rotate Picture in 4D

2017-06-25 Thread Keisuke Miyako via 4D_Tech
it's not so much "my" component since rotating a picture is an innate feature of SVG. the only the component does it is make sure the center of rotation is at the center of the image. did you look into the source of the resulting SVG? the center of rotation is probably wrong.

Re: Storing an using Print sttings

2017-06-22 Thread Keisuke Miyako via 4D_Tech
There used to be a compatibility issue onWin10 and 15.2 (ACI0095543) but that should be fixed now. as for the 194 bytes, that is standard behaviour; it only returns the size of the platform agnostic settings, which is a header (signature and version 8 byte) + print parameters (66 byte) + mac

Re: Sending Emails Quicker?

2017-06-20 Thread Keisuke Miyako via 4D_Tech
4D Internet Commands is not multi-threaded so using multiple processes will have no positive effect on speed. why not use a single process, login once and reuse the same SMTP reference? for example, commands such as SMTP_Body has a "replace" option. > 2017/06/21 8:21、Sujit Shah via 4D_Tech

Re: Enterable Variables in Output Form headers

2017-06-18 Thread Keisuke Miyako via 4D_Tech
p.142 4D v11 SQL Upgrade Reference ftp://ftp.4d.com//ACI_PRODUCT_REFERENCE_LIBRARY/4D_PRODUCT_DOCUMENTATION/PDF_Docs_by_4D_Product_A-Z/4D/4D_v11_SQL/4D_v11_Upgrade.pdf section "Why Use Project Forms?" quote: Lastly, project forms can be used to create interfaces that comply with OS standards

Re: Cleaning Text & Replace string speed

2017-06-15 Thread Keisuke Miyako via 4D_Tech
as a match regex exercise, you could do... $test:=Method1 ("abcdefghijklmnopqrstuvwxyz";\ Character code("k");Character code("m");\ Character code("d");Character code("y")) //dklmy > // > // Method: StringOmit > // - Uses REPLACE

Re: LDAP user validation

2017-06-10 Thread Keisuke Miyako via 4D_Tech
if you haven't already, I would invite you to watch this short clip: http://blog.4d.com/single-sign-on-sso/ it's about a different feature, SSO, but LDAP does get a mention in the latter part of the demo. 1) use the user-supplied username/password to log into the LDAP server and see if the

Re: HTTP Get when a domain name returns multiple IP addresses

2017-06-09 Thread Keisuke Miyako via 4D_Tech
I would invite you to test the latest nightly build which fixes ACI0096586 http://bugs.4d.fr/fixedbugslist?Branch=16 "HTTP Get" request fails with certain https web sites > 2017/06/09 16:03、lists--- via 4D_Tech <4d_tech@lists.4d.com> のメール: > but not from 4D Any ideas appreciated.

Re: Need plugin that will set macOS window modified indicator

2017-06-07 Thread Keisuke Miyako via 4D_Tech
just posted: https://github.com/miyako/4d-plugin-window-button > 2017/06/08 4:25、Tim Nevels via 4D_Tech <4d_tech@lists.4d.com> のメール: > > I’m looking for a plugin that can be used with 4D v14+ to set the window > modified indicator. You know the little black dot in the center of red close >

Re:

2017-06-06 Thread Keisuke Miyako via 4D_Tech
true, some editors are so smart they replace two dashes with a single long dash.

Re: Dynamic Process Variables???

2017-06-06 Thread Keisuke Miyako via 4D_Tech
it's worth keeping in mind that the internal design of a pointer has been updated in v15. this is documented. > RESOLVE POINTER now returns -1 instead of 0 in fourth parameter for pointers > on variables and single dimension arrays. > When passing a pointer on an element of a two dimensional

Re: syntax : pointer to an element of a sub-array of 2D array

2017-06-02 Thread Keisuke Miyako via 4D_Tech
sometimes its much easier to simply COPY ARRAY the whole array and back. > 2017/06/02 22:46、Chip Scheide via 4D_Tech <4d_tech@lists.4d.com> のメール: > > And this is where the dereferencing a pointer to a 2D array, sub-array > access problem is occurring, inside the component method and it's >

Re: Empty 2D arrays - how to determine type

2017-06-01 Thread Keisuke Miyako via 4D_Tech
F.Y.I. Type() returns 18 in the subroutine as well, in v16. it seems like you are pushing the limits of v13 in terms of generic coding. > 2017/06/02 6:14、Chip Scheide via 4D_Tech <4d_tech@lists.4d.com> のメール: > > if ($Type= 13) > $Type:=Type($Array->{0}) //$Type = 5 (interpreted) -- Is

Re: 4D web server protected by a proxy server - pdfs don't come through

2017-05-31 Thread Keisuke Miyako via 4D_Tech
did you Google for that error message? 2017/06/01 6:52、Jim Hays via 4D_Tech <4d_tech@lists.4d.com> のメール: "Resource interpreted as Document but transferred with MIME type application/pdf" ** 4D

Re: Procedural Splitter Movement

2017-05-30 Thread Keisuke Miyako via 4D_Tech
it depends on *how* you procedurally move the splitter. say you have a splitter (which has a numeric data source) assigning a value like Splitter:=Splitter-10 will move it to the left (or up) and other objects will follow. but OBJECT MOVE will be shifting its base, so it will not interact

Re: USE DATABASE from 4D client

2017-05-30 Thread Keisuke Miyako via 4D_Tech
rather activating the "execute on server" method property, I would recommend using the REMOTE keyword: http://doc.4d.com/4Dv15/4D/15/USE-DATABASE.300-2288124.en.html 2017/05/30 23:25、David Samson via 4D_Tech <4d_tech@lists.4d.com> のメール: One suggestion I saw on the

Re: USE DATABASE from a component. ?

2017-05-29 Thread Keisuke Miyako via 4D_Tech
that you can avoid by passing AUTO_CLOSE. the advantage of not using AUTO_CLOSE is that the structure definition of the external database is cached, so subsequent access becomes faster. it's useful, for example, if you want to switch contexts several times. 2017/05/30 9:12、David Adams via

Re: USE DATABASE from a component. ?

2017-05-29 Thread Keisuke Miyako via 4D_Tech
that's the idea. Component.4DC would have an empty placeholder Component.4DD, even if Component and Product were in fact identical. whether to put the data inside Resources is a decision based on whether you want the data to be sent to the client. although you can place multiple 4DB/4DC/4DD

Re: USE DATABASE from a component. ?

2017-05-29 Thread Keisuke Miyako via 4D_Tech
opening a 4DC/4DD pair as an external database does not make sense. I mean, it kind of makes sense, but I can't see why it has to be done using a 4DC. there are not methods, including triggers, to call in that context, so what is the virtue of the structure file being compiled? you can create a

Re: Please give us a split-pane in the Method Editor

2017-05-29 Thread Keisuke Miyako via 4D_Tech
I felt splitting panes was more alike a carry over from classic Mac OS, that the "removal" was more a case of "not (easily) portable" to newer SDKs. (also being less critical as screen sizes got bigger) true, many code editors have a similar feature, but more relevant in a "diff" context.

Re: USE DATABASE from a component. ?

2017-05-29 Thread Keisuke Miyako via 4D_Tech
are you sure that the index is "embedded"? it's true that an external database created using SQL does not have an accompanying 4DIndx, but an MSC repair would add one. and if you open that database with USE DATABASE, the 4DIndx is opened too, so I would assume that the index is external to the

Re: USE DATABASE from a component. ?

2017-05-29 Thread Keisuke Miyako via 4D_Tech
yes, the original (during beta) specification was that an external database must be created using SQL, but that changed in the release of v12, as explained in the documentation: An external database is a standard 4D database. It can be opened and worked with as the main database by a 4D or 4D

Re: Picture Buttons in v16

2017-05-29 Thread Keisuke Miyako via 4D_Tech
I would recommended converting the source pictures inside the library, from PICT to PNG. there is nothing wrong with using the picture library, you can consider resource files in new development. so, take a 32-bit v16, iterate all pictures in your picture library, use GET PICTURE FORMATS to

Re: Favorite tricks and keystrokes: Please take one and leave on

2017-05-28 Thread Keisuke Miyako via 4D_Tech
- grab a window anywhere and move control+left click+right click on Windows; control+command+drag on macOS - trace a process alt+shift+right click on Windows; option+command+right click on macOS - skip On Startup edit "*.4DLink" file: skip_onstartup_method="true" - launch multiple instances of

Re: https not working

2017-05-26 Thread Keisuke Miyako via 4D_Tech
is the file in pem format? some agencies issue p12 or even der certificates. c.f. https://github.com/miyako/4d-plugin-convert-certificate > 2017/05/27 3:07、David Ringsmuth via 4D_Tech <4d_tech@lists.4d.com> のメール: > We just installed a new cert.pem from QualitySSL. > I’ve evaluated the cert.pem

Re: Write.4dbase Component ???

2017-05-26 Thread Keisuke Miyako via 4D_Tech
Hello, it might be an early edition of this component: https://github.com/miyako/4d-component-write-converter originally a 2011 Summit presentation http://kb.4d.com/assetid=76535 > 2017/05/26 10:05、Randy Engle via 4D_Tech <4d_tech@lists.4d.com> のメール: > Write.4dbase

Re: OB Get on Time Field

2017-05-25 Thread Keisuke Miyako via 4D_Tech
OB Get is simply doing the reverse of OB SET, which sets milliseconds for time. If you want to convert an ISO GMT timestamp to 4D local date or time you can use the Date and Time commands, which were upgraded in v14: $timestamp:="2017-05-25T23:00:00.294Z" //next day in Japan

Re: OB Get on Time Field

2017-05-24 Thread Keisuke Miyako via 4D_Tech
the same question was posted on the forums a couple of days ago. time values are represented in milliseconds, so a date string, the first part of which is the year 2017, approximates to 2 seconds past midnight. > 2017/05/25 8:32、Tom Dillon via 4D_Tech <4d_tech@lists.4d.com> のメール: > > OB

Re: Compatibility Mode v12 (How to change to Unicode?)

2017-05-23 Thread Keisuke Miyako via 4D_Tech
there is a way to apply a specific encoding for each table during conversion ftp://ftp-public.4d.fr/Documents/Products_Documentation/LastVersions/Line_11/VIntl/PDF_Format/4D_v11_Upgrade.pdf see the description for "multilang.txt" > 2017/05/23 19:42、Alan Chan via 4D_Tech <4d_tech@lists.4d.com>

Re: Compatibility Mode v12 (How to change to Unicode?)

2017-05-22 Thread Keisuke Miyako via 4D_Tech
> 1) What happens to the existing text data in records (and indexes) if I > check-mark "Unicode" in the Compatibility tab? the data is unchanged but the index will be rebuilt the next time you open the application (structure+data). behaviour of string-related features are all different in

Re: SSL RC4 cipher problems

2017-05-22 Thread Keisuke Miyako via 4D_Tech
I think you need to specifically set a list with SET, or else the default hard-coded setting is used but the function returns "". you could set a value found here https://wiki.mozilla.org/Security/Server_Side_TLS and compare the results (you don't need to restart the web server) > 2017/05/23

Re: Can't delete methods

2017-05-17 Thread Keisuke Miyako via 4D_Tech
have tried deleting those 4 methods on the home tab of Explorer, as opposed to the methods tab? ** 4D Internet Users Group (4D iNUG) FAQ: http://lists.4d.com/faqnug.html Archive: http://lists.4d.com/archives.html Options:

Re: Is it possible to do a search in the file system from 4D

2017-05-16 Thread Keisuke Miyako via 4D_Tech
DOCUMENT LIST with the "Recursive parsing" options gives you all the file paths contained in a folder (since v13) http://doc.4d.com/4Dv15/4D/15.4/DOCUMENT-LIST.301-3274226.en.html it has some other useful options too (Ignore invisible, Absolute path) tha makes a lot of previous code for

Re: Importing Data from a SQL-database (Firebird} [ was: How to detect EOL character in text file]

2017-05-16 Thread Keisuke Miyako via 4D_Tech
I think SQL EXECUTE SCRIPT is more suited for managing long SQL statements, rather than creating a method with Begin SQL~End SQL http://doc.4d.com/4Dv15/4D/15/SQL-EXECUTE-SCRIPT.301-2007434.en.html ** 4D Internet Users Group

Re: Is it possible to do a search in the file system from 4D

2017-05-16 Thread Keisuke Miyako via 4D_Tech
as long as the files are moved on the same file system, and the files are moved or edited, and not over-written (many applications do that silently...) then you might be able to track those files by keeping their number. https://github.com/miyako/4d-plugin-file - I am working on a side-project

Re: Importing Data from a SQL-database (Firebird} [ was: How to detect EOL character in text file]

2017-05-16 Thread Keisuke Miyako via 4D_Tech
This message contains a digitally signed email which can be read by opening the attachment. ** 4D Internet Users Group (4D iNUG) FAQ: http://lists.4d.com/faqnug.html Archive: http://lists.4d.com/archives.html Options:

Re: Is it possible to do a search in the file system from 4D

2017-05-16 Thread Keisuke Miyako via 4D_Tech
This message contains a digitally signed email which can be read by opening the attachment. ** 4D Internet Users Group (4D iNUG) FAQ: http://lists.4d.com/faqnug.html Archive: http://lists.4d.com/archives.html Options:

Re: Missing Edit Menu

2017-05-14 Thread Keisuke Miyako via 4D_Tech
in general (regardless of version, that is), you need to call SET MENU BAR in new each process if want a menu bar to show up, you also need to have the "active menu bar" property for a form if you want the menu to respond during a dialog. the property is only selectable if you have associated a

Re: How to detect EOL character in text file

2017-05-13 Thread Keisuke Miyako via 4D_Tech
if you are on v14 or later, "Document to text" will normalise the end-of-line to whichever one you prefer. http://doc.4d.com/4Dv15/4D/15.4/Document-to-text.301-3274243.en.html it's better than using regex not knowing what the end-of-line is in the loaded text. 2017/05/13 17:16、Jörg Knebel via

Re: Finding where a filter or format is used in a structure

2017-05-12 Thread Keisuke Miyako via 4D_Tech
you could FORM GET NAMES , iterate with FORM LOAD, FORM GET OBJECTS, OBJECT Get filter and process the results. alternatively, you could create a copy of the structure, delete the filter in toolbox and run MSC verify. 2017/05/12 20:08、Paul Lovejoy via 4D_Tech

Re: Hex Colour Picker in Listbox

2017-05-11 Thread Keisuke Miyako via 4D_Tech
a good place to start would be: Select RGB Color http://doc.4d.com/4Dv16/4D/16.1/Select-RGB-Color.301-3374833.en.html OPEN COLOR PICKER http://doc.4d.com/4Dv16/4D/16.1/OPEN-COLOR-PICKER.301-3374843.en.html > 2017/05/11 17:47、Douglas Cryer via 4D_Tech <4d_tech@lists.4d.com> のメール: > >

Re: Circumflex strangeness with v15 on OS X 10.10.5

2017-05-11 Thread Keisuke Miyako via 4D_Tech
how is the user typing the circumflex character? assuming the U.S. keyboard layout is used, option+I would enter a combining circumflex with yellow background. following it with another letter would yield the accented character. but other keyboard layouts (U.S. extended, or FR, for example) have

Re: PDF Manuals for v16

2017-05-11 Thread Keisuke Miyako via 4D_Tech
Hello, we (4D Japan) used the same process to publish our PDF documentation in Japanese, the files are uploaded here for your convenience: http://library.4d-japan.com/REFERENCE/v16/EN/ > Any information when we can expect the PDF-Manuals for v16?

Re: OBJECT SET ENABLED

2017-05-10 Thread Keisuke Miyako via 4D_Tech
well, I can confirm that this does work: OBJECT SET ACTION(*;"Button";Object No standard action) OBJECT SET ENABLED(*;"Button";False) OBJECT SET ACTION(*;"Button";Object Next page action) OBJECT SET ENABLED(*;"Button";True) > 2017/05/11 9:39、Sujit Shah via 4D_Tech <4d_tech@lists.4d.com> のメール: >

Re: OBJECT SET ENABLED

2017-05-10 Thread Keisuke Miyako via 4D_Tech
out of interest, why would you want to over-ride the enabled/disabled state of an object with standard action? B.T.W. until v13, automatic (a.k.a. standard action) objects needed to have an associated variable. since v14, they work with form-local variables, which implied that they now

Re: 4D_Pack Replacement commands in v16

2017-05-10 Thread Keisuke Miyako via 4D_Tech
EXPORT STRUCTURE gives all the information (and more) you could get for a table, field, relation or index. there is a nice demo on the official blog: http://blog.4d.com/detailed-analysis-database-structure/ > 2017/05/10 19:29、Jörg Knebel via 4D_Tech <4d_tech@lists.4d.com> のメール: > > Would

Re: Resources v14

2017-05-10 Thread Keisuke Miyako via 4D_Tech
your XLIFF file is already a resource, you don't have to load it explicitly. if the file is inside your current localisation folder (Resources/en.lproj) it is automatically loaded when you start your application, and automatically re-loaded each time you activate a window in design mode. to

Re: POINTER TO ARRAY

2017-05-10 Thread Keisuke Miyako via 4D_Tech
because local variable do not have a name in compile mode, Get pointer (which works on names) does not work for local variables. 2017/05/11 6:39、stardata.info via 4D_Tech <4d_tech@lists.4d.com> のメール: Someone know because?

Re: 4D Write Pro Interface component

2017-05-08 Thread Keisuke Miyako via 4D_Tech
the 4D Write Pro feature "horizontal ruler" was added in 16R2 http://blog.4d.com/4d-write-pro-horizontal-ruler/ > Anyone know how to get that ruler to show? ** 4D Internet Users Group (4D iNUG) FAQ:

Re: Bar code

2017-05-07 Thread Keisuke Miyako via 4D_Tech
Hello, the plugin returns a regular picture (you have the choice between PNG and SVG) so you should be able to use regular picture commands, such as PICTURE PROPERTIES, TRANSFORM PICTURE, or even picture operators. http://doc.4d.com/4Dv16R2/4D/16-R2.1620/PICTURE-PROPERTIES.301-3111814.en.html

Re: Preemptive mode flaw

2017-05-07 Thread Keisuke Miyako via 4D_Tech
the reason why I think > CALL WORKER("Preemptive_Worker";"MethodWithCooperativeCode") or more specifically > CALL WORKER("Preemptive_Worker";"MethodWithPreemptiveCode") > CALL WORKER("Preemptive_Worker";"MethodWithCooperativeCode") is not a problem goes like this: 4D performs 2 checks;

Re: Tip: Code to get all thread-safe commands

2017-05-06 Thread Keisuke Miyako via 4D_Tech
also check out the "How Do I?" example http://blog.4d.com/preemptive-processes-for-4d-language/ http://download.4d.com//Demos/4D_v15_R5/HDI_Command_name.zip another important piece of the puzzle is PROCESS PROPERTIES http://doc.4d.com/4Dv16R2/4D/16-R2.1620/PROCESS-PROPERTIES.301-3111842.en.html

Re: location of Macros for version 16

2017-05-01 Thread Keisuke Miyako via 4D_Tech
you can have your own Macros V2 folder in your database folder, or even a component database folder. http://doc.4d.com/4Dv15/4D/15.4/Creating-and-using-macros.300-3285561.en.html > 2017/05/02 9:46、Jörg Knebel via 4D_Tech <4d_tech@lists.4d.com> のメール: > Could someone be so kind and tell me where I

Re: PROCESS 4D TAGS

2017-04-28 Thread Keisuke Miyako via 4D_Tech
if the document is not correctly loaded, as others have speculated: 1. given this is Mac, could there be a hidden file extension? 2. Given no encoding is not specified, could it be saved in UTF-16? Document to text doesn't update OK, the only way to know that it worked is to check that the

Re: Components, forms & menu bars

2017-04-27 Thread Keisuke Miyako via 4D_Tech
the "active menu bar" form property needs to be activated for a menu to work while a dialog is running. but, to set this property, you also need to first associate a menu with that form. so, even if the plan is to use a menu reference (|MR...|) passed from host, you need to set a menu from the

Re: 4D Write Pro CSS

2017-04-24 Thread Keisuke Miyako via 4D_Tech
Hello, > I want to create HTML files and open them in 4D Write Pro. > The docs state that the .4wp format is HTML, but if I try to import even a > very simple HTML document, it fails. I am sorry to say this won't work. 4D Write Pro is not a Web Browser, it so happens that a 4D Write Pro

Re: Why does 4D have uppercase UUIDs?

2017-04-23 Thread Keisuke Miyako via 4D_Tech
I wasn't aware of the argument that they should always be lowercase. it's true that the native function on Windows (UuidCreate, UuidToString) creates lowercase, but on Mac (NSUUID.UUIDString, CFUUIDCreate/CFUUIDCreateString) they are uppercase and also hyphenated. uppercase-non-hyphenated

Re: Preventing On Start Up from Running

2017-04-23 Thread Keisuke Miyako via 4D_Tech
Hello, find {Get 4D folder}/Favorites v16/Local/ open the 4DLink file with a text editor, in the element database_shortcut, add skip_onstartup_method="true", save, and open it with 4D. > 2017/04/24 5:13、Mitchell Shiller via 4D_Tech <4d_tech@lists.4d.com> のメール: > > I accidentally inserted some

Re: 4D Write Pro CSS

2017-04-23 Thread Keisuke Miyako via 4D_Tech
Hello, if the question is "which experimental CSS is supported in 4D Write Pro?", then I think you might be asking the wrong question. quote: "4D specific tags" means 4D XHTML with a 4D namespace and 4D CSS styles. http://doc.4d.com/4Dv16/4D/16/WP-EXPORT-DOCUMENT.301-3048103.en.html in other

Re: 4D Write Pro CSS

2017-04-22 Thread Keisuke Miyako via 4D_Tech
http://doc.4d.com/4Dv15/4D/15.4/Supported-tags.300-3274727.en.html explains proprietary CSS attributes such as and Click here > 2017/04/23 1:12、Pat Bensky via 4D_Tech <4d_tech@lists.4d.com> のメール: > its own subset of HTML/CSS attributes and tags, specified in this manual."

Re: Components and custom constants files

2017-04-18 Thread Keisuke Miyako via 4D_Tech
maybe one or more constants are redefining default 4D constants with a different type. > 2017/04/19 13:01、David Adams via 4D_Tech <4d_tech@lists.4d.com> のメール: > The argument list for the method named "MessageHub_Unsubscribe" in the > component "MesageHub" is incompatible with the database or

Re: Automated tasks on 4D Server

2017-04-18 Thread Keisuke Miyako via 4D_Tech
some time ago our Tech Support (not me) posted this: https://github.com/4D-JP/sample-outside-call-for-windows please don't freak out because of the language, the sample code is what's important. basically, you configure the Windows Task Scheduler to run a script (JS) periodically. the script

Re: Converting Little Endian Byte Representation To a String

2017-04-18 Thread Keisuke Miyako via 4D_Tech
Hello, I think there was a bug in the carry-over logic, I've uploaded a cleaner version here: https://github.com/miyako/4d-tips-text-integer-maths > 2017/04/19 2:03、Cannon Smith via 4D_Tech <4d_tech@lists.4d.com> のメール: > Thanks, Miyako! That does indeed work and is plenty fast as well. I really

Re: Remedial question about components

2017-04-18 Thread Keisuke Miyako via 4D_Tech
to recap, why do you need to know from a compiled component if the host is interpreted? > 2017/04/18 19:16、David Adams via 4D_Tech <4d_tech@lists.4d.com> のメール: > > is there a way to find out if the host is compiled without having the > host pass that information into the component?

Re: Remedial question about components

2017-04-18 Thread Keisuke Miyako via 4D_Tech
I think you can do something like $name:="test" (""#METHOD Get path(Path project method;$name)) is a "local" method (""#METHOD Get path(Path project method;$name;*)) //with asterisk is a "host" method > 2017/04/18 19:16、David Adams via 4D_Tech <4d_tech@lists.4d.com> のメール: > As far as I know,

Re: Remedial question about components

2017-04-18 Thread Keisuke Miyako via 4D_Tech
Hello, + to check current execution context Structure file=Structure file(*) this is documented (see example 2) http://doc.4d.com/4Dv15/4D/15.4/Structure-file.301-3274414.en.html + when the host and component share the same methods names this is also documented (see Naming conflicts: masking

Re: Converting Little Endian Byte Representation To a String

2017-04-18 Thread Keisuke Miyako via 4D_Tech
I think this will do it: ASSERT("840003123456770"=Get_value ("02ABC877FAFB0200")) using primary school maths only... -- C_TEXT($1;$0) Case of : (Count parameters=1) C_TEXT(hex;$e;$total) C_LONGINT($i) $hex:=$1 For ($i;1;Length($hex);2) //hex byte code to integer string

Re: Clean Slate - Modern User Experience.

2017-04-15 Thread Keisuke Miyako via 4D_Tech
Hello, if you could spare some time to go through the various "HDI" examples, especially those themes on the listbox, I think it would be a good way to get tuned with the current development styles in 4D. ftp://ftp.4d.com/SAMPLE_DATABASES/4D/ HTML/SVG/Objects are obviously modern and cool, but

Re: How can I suppress the web server creating default index.html?

2017-04-14 Thread Keisuke Miyako via 4D_Tech
just goto preferences > web > settings (path) and remove "index.html" > 2017/04/14 23:37、Kirk Brooks via 4D_Tech <4d_tech@lists.4d.com> のメール: > Can I suppress 4D's urge to create that page if it's missing? ** 4D Internet

Re: Questions about the 'Sum' function

2017-04-13 Thread Keisuke Miyako via 4D_Tech
Sum() has been improved to work with indexes since v11, with arrays since v13. if the restriction is still there, perhaps one can "selection to array" as a workaround. > 2017/04/14 0:06、Keith White via 4D_Tech <4d_tech@lists.4d.com> のメール: > > QUERY([ClientInvoices]; blah blah blah..) >

Re: PK wizard, how to start?

2017-04-13 Thread Keisuke Miyako via 4D_Tech
if you can find the component in Explorer, there should be a shared method that triggers the dialog. right click and run it... ** 4D Internet Users Group (4D iNUG) FAQ: http://lists.4d.com/faqnug.html Archive:

Re: Replacing - OAuth.bundle

2017-04-12 Thread Keisuke Miyako via 4D_Tech
Hello, in general, only the source files (plain text) are expected to be under source-control, as well as common format documents such as PDF or images. large binary files are expected to be published under "Releases". 4D is an unusual case, because the source code (the structure file) is

Re: Off topic, sending binary files

2017-04-09 Thread Keisuke Miyako via 4D_Tech
perhaps you could add another call to LEP that would chmod +x immediate before you call LEP on to execute scamimage... > 2017/04/09 20:09、Peter Mew via 4D_Tech <4d_tech@lists.4d.com> のメール: > The binary is a command line program called scanimage, which allows me to > interface with a flatbed

Re: Unexpected Command Key Shortcuts (15.4)

2017-04-08 Thread Keisuke Miyako via 4D_Tech
in fact, command+L is defined twice, once in File > Open > Form and again in Method > Goto Line when you are using the method editor. similar situation with File > Open > Method and Method > Open Definition both of which are command + K. it is a bad factory setting, in my opinion, as a

Re: Unexpected External Call Back...

2017-04-08 Thread Keisuke Miyako via 4D_Tech
sounds like method with "execute on server" property. > 2017/04/08 12:39、Robert ListMail via 4D_Tech <4d_tech@lists.4D.com> のメール: > "External Call Back” was part of the call chain. ** 4D Internet Users Group (4D iNUG) FAQ:

Re: Listbox row select

2017-04-06 Thread Keisuke Miyako via 4D_Tech
in general, selected list items are grey when inactive (does not have focus) > 2017/04/07 8:38、Sujit Shah via 4D_Tech <4d_tech@lists.4d.com> のメール: > > I am getting 2 different row highlight (colors) > > - When row is selected indirectly LISTBOX SELECT ROW (grey) > - When row is directly clicked

Re: Copy out of read only variable/field

2017-04-06 Thread Keisuke Miyako via 4D_Tech
you set the field to non-enterable+focusable. 2017/04/07 6:16、Dennis, Neil via 4D_Tech <4d_tech@lists.4d.com> のメール: I'm questioning if this is possible? Anyone? ** 4D Internet Users Group (4D

Re: Project Method not found in Quick Report Editor

2017-04-06 Thread Keisuke Miyako via 4D_Tech
did you call set allowed methods? ** 4D Internet Users Group (4D iNUG) FAQ: http://lists.4d.com/faqnug.html Archive: http://lists.4d.com/archives.html Options: http://lists.4d.com/mailman/options/4d_tech Unsub:

Re: Migrating Tables with Relations Between Structures

2017-04-05 Thread Keisuke Miyako via 4D_Tech
when you copy multiple tables in the structure editor, you get the table as well as the relation. pasting it back to the structure editor removes all ancillaries such as indexes and links, but the plugin entry-point allows you to re-create them.

Re: Question about passing JSON to 4D

2017-04-04 Thread Keisuke Miyako via 4D_Tech
WEB GET VARIABLES only parses form variables (x-www-form-urlencoded). and then, jQuery post() only sends x-www-form-urlencoded. http://stackoverflow.com/questions/5529685/post-doesnt-send-data-as-json-but-as-x-www-form-urlencoded-instead so with this setup, you are basically working with a

Re: delete or truncate

2017-04-04 Thread Keisuke Miyako via 4D_Tech
ALL RECORDS + DELETE SELECTION, or selecting all records and deleting them in User Mode logs "delete" action for each record in the journal file. TRUNCATE TABLE, on the other hand, has its own single action in the journal file. "Truncate" clears the address table, whereas "Delete" does not. the

Re: Anyone using v16 in WAN

2017-04-04 Thread Keisuke Miyako via 4D_Tech
Hello, I think it is important to investigate whether the instability is specific to application code or not. for instance, it is possible to create a bare bone copy of you database with the export structure command. you can then open a copy of your production data with that structure file.

Re: Methods starting with a number

2017-04-03 Thread Keisuke Miyako via 4D_Tech
I guess SQL/import export would break since it adds an underscore to illegal field names. perhaps the same with XML export of structure. if has been working for some time, maybe it's not such a high priority, but you'd also want to be prepared for dot-notation support whenever that is going to

Re: y2038 -- is 4D ready?

2017-03-28 Thread Keisuke Miyako via 4D_Tech
so code to convert date to epoch time like that one just recently discussed (Re: [4DTidbits Blog] Epoch & Unix Timestamp Conversion) could potentially have trouble... > 2017/03/29 0:37、Chip Scheide via 4D_Tech <4d_tech@lists.4d.com> のメール: > Just reading an article about the next Y2K - y2038. > IN

Re: OPEN PRINTING FORM

2017-03-27 Thread Keisuke Miyako via 4D_Tech
FORM LOAD the command was so useful, it can now be used outside of a printing context. > 2017/03/28 10:04、Sujit Shah via 4D_Tech <4d_tech@lists.4d.com> のメール: > I see this command is not available in v15. > What is the replacement?

Re: HTTP Patch request

2017-03-27 Thread Keisuke Miyako via 4D_Tech
just pass "PATCH" as text literal to HTTP Request. standard constants (GET, POST, etc) are string constants too. 2017/03/28 0:09、Tom Swenson via 4D_Tech <4d_tech@lists.4d.com> のメール: However, there doesn’t seem to be a Constant for a HTTP patch method Any ideas?

Re: 4D v15.4: Internet commands *SOLVED*

2017-03-26 Thread Keisuke Miyako via 4D_Tech
my speculation is that the new line characters have been removed so that the base64 string can now be incorporated more easily as data URIs in SVG and HTML, but I do not know the full story. as a stop-gap measure I posted this plugin https://github.com/miyako/4d-plugin-base64 2017/03/15

Re: 4D email client from Dave Batton, where to get the old sample 4DB ?

2017-03-26 Thread Keisuke Miyako via 4D_Tech
Web 2.0 Pack was released more than 10 years ago (v2004). then, the Live Window Plugin was the predecessor to the Web Area form object introduced in v11.2. I am afraid the project (TinyMCE or something similar) has very limited value today. 2017/03/26 0:15、Armin Deeg via 4D_Tech

Re: [4DTidbits Blog] Epoch & Unix Timestamp Conversion

2017-03-26 Thread Keisuke Miyako via 4D_Tech
you could also... C_LONGINT($yearPosition;$monthPosition;$dayPosition) C_TEXT($digitPosition) GET SYSTEM FORMAT(Short date year position;$digitPosition) $yearPosition:=Num($digitPosition) GET SYSTEM FORMAT(Short date month position;$digitPosition) $monthPosition:=Num($digitPosition) GET SYSTEM

Re: 4D Query error, Beware

2017-03-24 Thread Keisuke Miyako via 4D_Tech
there has been a couple of fixes related to the database engine (transactional query in particular) in recent nightly builds, part of the reasons why some hot-fixes were released during a relatively short time span. 4D v16.0 Hotfix 2 (http://bugs.4d.fr/fixedbugslist?Version=16.0_HF2)

Re: SVG Text Width and Height

2017-03-24 Thread Keisuke Miyako via 4D_Tech
in general, it is best to instruct the rendering engine to decide how to align objects, rather than to compute the exact coordinates yourself. "text-anchor" (start, middle, end) should take care of horizontal align in , but vertical align is going to be difficult since 4D does not support

Re: SVG Text Width and Height

2017-03-24 Thread Keisuke Miyako via 4D_Tech
Hello, could you not simply set text-anchor to middle? ** 4D Internet Users Group (4D iNUG) FAQ: http://lists.4d.com/faqnug.html Archive: http://lists.4d.com/archives.html Options: http://lists.4d.com/mailman/options/4d_tech

Re: repost : Printer selection issue

2017-03-24 Thread Keisuke Miyako via 4D_Tech
the label editor, as well as regular forms, only accepts integer units. the label editor appears to accept decimal coordinates, but it is only a unit converter, internally the values are always stored in points (integer). remarkably, the "Print object" command works with decimal coordinates, as

Re: repost : Printer selection issue

2017-03-24 Thread Keisuke Miyako via 4D_Tech
I think what you describe is a "32-bit" thing. the code SET CURRENT PRINTER("_192_168_1_33") PRINT SETTINGS(Page setup dialog) shows "any printer" on v16 32-bit, the default printer on v16 64-bit. - even using 32-bit, once you have chosen the printer in the page setup dialog, and stored that

Re: 4D V16 fails to launch external programs asynchronously

2017-03-21 Thread Keisuke Miyako via 4D_Tech
it (ACI0096092) is also fixed in 16.0 Hotfix 1 (16.0 Hotfix 2 is the latest) > 2017/03/22 5:16、Julio Carneiro via 4D_Tech <4d_tech@lists.4d.com> のメール: > Downloading V16R2 to confirm that it is fixed. ** 4D Internet Users Group

Re: tab seperated text - what to use for Cr

2017-03-15 Thread Keisuke Miyako via 4D_Tech
to be pedantic, you need to do more than double quote the values, in case the value themselves contain a double quote. and then, importing gets even more messy, since the values may or may not be quoted. anyway, I've published the component here: https://github.com/miyako/4d-component-csv >

Re: Weird variable (non-)refresh issue

2017-03-15 Thread Keisuke Miyako via 4D_Tech
to refresh variables on display, one must CALL PROCESS(-1) http://doc.4d.com/4Dv15/4D/15/CALL-PROCESS.301-2006854.en.html > 2017/03/16 4:56、bob.miller--- via 4D_Tech <4d_tech@lists.4d.com> のメール: > > I've tried throwing in a REDRAW(variablename) and even a DELAY > PROCESS(Current process;60) -

Re: tab seperated text - what to use for Cr

2017-03-15 Thread Keisuke Miyako via 4D_Tech
not sure if Excel supports it, (FileMaker does) but the formal way to include multiple lines in a TSV field is to use the vertical tab character Char(11). (side-note: Char(11) shows up as \v in the debugger, although you can't it in literal text) if you are interested I can share a set of

<    5   6   7   8   9   10   11   >