Re: Print to MS Word Document

2018-02-22 Thread rooftop99--- via 4D_Tech
Thank you Dan and Keisuke! Helpful!! > On Feb 22, 2018, at 9:25 AM, Dan Gallagher via 4D_Tech <4d_tech@lists.4d.com> > wrote: > > Kirk, > > We use process tags to generate an xml document that is packaged in a .docx > file. It is time consuming creating the document templates, but it works >

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.

What causes a 'user interruption -1000' error on an EOS method?

2018-02-22 Thread Kirk Brooks via 4D_Tech
I don't recall ever having this issue. I have a method set to execute on server. It takes a series of pointers and looks like this: $errMsg:=EOS_method (\ ->$obj;\ ->aMY_name;\ ->aMY_ref;\ ->aMy_recID;\ ->aMY_info;\ ->aMY_address;\ ->aMY_amount;\ ->aMY_billed;\ ->aMY_invoiced) If I turn off the

Re: v13 Compiled vs Interp execution

2018-02-22 Thread Chuck Miller via 4D_Tech
As an aside I would use a local variable so command would look like this c_real($MyNumber_R) $MyNumber_R:=500.0 $real:=2*(MAXLONG-$MyNumber_R) I do this so that 4D does not reset results based upon what it thinks it should do I think it will work even without the .0 Regards Chuck

RE: v13 Compiled vs Interp execution

2018-02-22 Thread Chip Scheide via 4D_Tech
Thanks! > I think that using the MAXLONG constant is causing the value to be > treated as a longint. > $Real := 2 * (MAXLONG - 500) > > If you replace the MAXLONG constant with a value you get the correct result: > $Real := 2 * (2147483647 - 500) > > Interestingly, you can keep using

RE: v13 Compiled vs Interp execution

2018-02-22 Thread Timothy Penner via 4D_Tech
I think that using the MAXLONG constant is causing the value to be treated as a longint. $Real := 2 * (MAXLONG - 500) If you replace the MAXLONG constant with a value you get the correct result: $Real := 2 * (2147483647 - 500) Interestingly, you can keep using the MAXLONG constant if

Re: v13 Compiled vs Interp execution

2018-02-22 Thread Chip Scheide via 4D_Tech
yes $real is declared as Real. That is the first thing I checked :) > Do you have a C_REAL($Real) line in your code? The compiler might be > typing that variable as a longint. > > Dani > >> On Feb 22, 2018, at 10:14 AM, Chip Scheide via 4D_Tech >> <4d_tech@lists.4d.com> wrote: >> >> I have

Re: v13 Compiled vs Interp execution

2018-02-22 Thread Dani Beaubien via 4D_Tech
Do you have a C_REAL($Real) line in your code? The compiler might be typing that variable as a longint. Dani > On Feb 22, 2018, at 10:14 AM, Chip Scheide via 4D_Tech <4d_tech@lists.4d.com> > wrote: > > I have code that converts a value from REAL to Hex. > as part of my test routines, maximum

Re: Print to MS Word Document

2018-02-22 Thread Dan Gallagher via 4D_Tech
Kirk, We use process tags to generate an xml document that is packaged in a .docx file. It is time consuming creating the document templates, but it works very well. Dan -- Sent from: http://4d.1045681.n5.nabble.com/4D-Tech-f1376241.html

v13 Compiled vs Interp execution

2018-02-22 Thread Chip Scheide via 4D_Tech
I have code that converts a value from REAL to Hex. as part of my test routines, maximum value convertible is Maxlong (php routine) I set the value to convert to (to test out of range error): $Real := 2 * (MAXLONG - 500) $Real := 2 * (2147483647 - 500) $Real := 2 * (2142483647) $Real :=

cyberark(R)

2018-02-22 Thread Charles Miller via 4D_Tech
Hi all, Is anyone oyt there using cyberark to get opasswords for email or users via 4D I am looking for example LEP scripts. The documentation supplied is 100s of pages and I would rather not charge my client to review and creat LEP commands Regards Chuck --

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

Print to MS Word Document

2018-02-22 Thread rooftop99--- via 4D_Tech
Hi All, Our System: 4D v15 Client/Server - all Windows OS... Printing to a PDF document has been around for a while. We now need to print to a MS Word document… Do any of you have a proven method for doing this from 4D? Thanks!! Kirk