Two lan card on same pc

2019-07-03 Thread stardata.info via 4D_Tech
Hi All, I use 4D server and two clients. In the pc of one 4D client, i have two lan cards. Sometime i have a segnalations regarding record damaged, " Record is out of range during goto record " The customer restart 4D Client and work fine. I think that the segnalation happen because 4D

Re: Macs slow down generating PDFs

2019-07-03 Thread Charles Miller via 4D_Tech
What is drive like? WhT kind of drive? How full is it? When was last time you restarted the machine? Regards Chuck On Wed, Jul 3, 2019 at 8:43 AM Jeffrey Kain via 4D_Tech < 4d_tech@lists.4d.com> wrote: > Interesting - Mac 32-bit is blazing fast and doesn't have this issue. > 64-bit Mac can

Is there a Status Bar in 4DWrite Pro?

2019-07-03 Thread Tom Benedict via 4D_Tech
In 4DWrite Classic there a Status Bar at the bottom of the 4DWrite area. It includes current page number, total page count, current line number, current column (character) number and whether NumLock or CAPS Lock is on. It can be hidden or displayed by using WR SET DOC PROPERTY

Re: Macs slow down generating PDFs

2019-07-03 Thread Jeffrey Kain via 4D_Tech
Interesting - Mac 32-bit is blazing fast and doesn't have this issue. 64-bit Mac can crank about a one per second (slowing down to a handful per minute after a few hours). Windows 10 is steady at about 1 per second on very fast hardware. My 2017 iMac running v17 32-bit can rip through about 3

OUT OF RANGE

2019-07-03 Thread stardata.info via 4D_Tech
Hi All, I use 4D V13 on windows in one client server application. In the command CREATE SELECTION FROM ARRAY sometimes i have one error: The cannot be used to build the selection Record # is out of range during GOTO RECORD The customer restart the application and this segnalation

Re: OUT OF RANGE

2019-07-03 Thread Narinder Chandi via 4D_Tech
From memory, this error is usually triggered because a record you are trying to access doesn't exist. You need to look at the context in which you are trying to create the selection to figure this error out. Perhaps you are in a transaction? Regards, Narinder Chandi, ToolBox Systems Ltd. --

Re: [off]Apple script issue

2019-07-03 Thread Narinder Chandi via 4D_Tech
Chuck, Been a long, long time since I write any AppleScript and I don't know what the dictionary for Preview supports but did you try passing "properties {...}" to " without print dialog" - logically it doesn't make sense, but it might crazily work?! Another (more hacky) option could be try

Re: [off]Apple script issue

2019-07-03 Thread Chuck Miller via 4D_Tech
Thanks it got me the following: Open Script Editor, navigate to File > Open Dictionary and select what you want It appears that print settings does not list sizing so I am stuck Regards Chuck

Re: OUT OF RANGE

2019-07-03 Thread stardata.info via 4D_Tech
No transaction, seems that there is a record not accessible with GOTO RECORD command. Now I trap this error with ON ERR CALL and after I write in the application logs the record numbers contained into the array. So I can see the record number that gives a problem... Is strange that after

[off]Apple script issue

2019-07-03 Thread Chuck Miller via 4D_Tech
Hi All I have the following apple script created and run via launch external process tell application "Preview" print file "SnapServer:Test_Invoices:Checon_Invoices:2019:04 - April:224747_04_12.PDF" with print dialog print file "SnapServer:Test_Invoices:Checon_Invoices:2019:04 -

Deleting a record from a listbox

2019-07-03 Thread Sannyasin Siddhanathaswami via 4D_Tech
Aloha, I’m trying to update my "delete selection of records from a listbox" code. I’m trying to keep the sort order so that when someone clicks to delete, the only thing they see is the lines they select, get deleted. Here’s the basic code. Of course, deleting a record in this scenario,

Re: Deleting a record from a listbox

2019-07-03 Thread Keith Culotta via 4D_Tech
I recall there being a bit more work in between these two lines, but LONGINT ARRAY FROM SELECTION will create ordered arrays representing the records. Then delete the missing records from the after array, and used CREATE SELECTION FROM ARRAY to get the new selection. Keith - CDI > On Jul 3,

Re: Deleting a record from a listbox

2019-07-03 Thread Keith Culotta via 4D_Tech
Sorry, I meant delete from the Before array. This is untested, but should show the idea. LONGINT ARRAY FROM SELECTION($tablePtr->;$aBefore) USE SET($highlightSet) LONGINT ARRAY FROM SELECTION($tablePtr->;$aAfter) DELETE SELECTION($tablePtr->) $size:=Size of array($aBefore) For ($i;$size;1;-1)

Re: [off]Apple script issue

2019-07-03 Thread the 4Dmd via 4D_Tech
If you don't need any interaction with the user, I print PDFs on a Mac with the "lpr" command $printerName:=Get current printer $pathToPDF:="SnapServer:Test_Invoices:Checon_Invoices:2019:04 - April:224747_04_12.PDF" LAUNCH EXTERNAL PROCESS("lpr -P "+$printerName+" "+Replace string(Convert path

Re: OUT OF RANGE

2019-07-03 Thread stardata.info via 4D_Tech
Hi Chip, In the current mode of use, is not possible that another user deletes one record (I'm reading into the log) and there are only two users. Consider that if one record is deleted, even the record that contains your record number is deleted. In normal work, only one user can create the

4D v17r4 Windows Print To PDF ignoring PAGE SETUP

2019-07-03 Thread Cameron Ambrose via 4D_Tech
Just updated to 4D v17r4 and it appears that when using the Windows 10 (64 bit) PDF printer, the client is no longer honouring the PAGE SETUP definition and instead just printing in portrait letter. Still works properly on Mac or printing to physical printer on Windows but Print to PDF appears

Re: [off]Apple script issue

2019-07-03 Thread Chip Scheide via 4D_Tech
this one got away - it was supposed to have been deleted - so feel free to ignore sorry :) On Wed, 3 Jul 2019 15:51:28 -0400, Chip Scheide via 4D_Tech wrote: > Not been really following... > > Are you creating the PDF? > if so, then you should be able to create the pdf such that it is 100% >

SV: Deleting a record from a listbox

2019-07-03 Thread Carl Aage Wangel via 4D_Tech
This is from 4D Knowledge Base and might help you: // Method: listboxDeleteSelectedRecords // Description: Delete all records selected in the selection based listbox // Parameters: $1 - List Box Object Name // C_TEXT($1) If (Count

Re: Deleting a record from a listbox

2019-07-03 Thread Keith Culotta via 4D_Tech
Here is a version with all the parts in the right place, although it seems like Carl's example from the manual, searching a boolean array, would be faster. LONGINT ARRAY FROM SELECTION($tablePtr->;$aBefore) USE SET($highlightSet) LONGINT ARRAY FROM SELECTION($tablePtr->;$aAfter) DELETE

Re: Deleting a record from a listbox

2019-07-03 Thread Chip Scheide via 4D_Tech
if the sort is based on the listbox headers then the solutions to determine which header the listbox is sorted on, and then resort using the same header. if you sort the listbox some other way, and can track the sort criteria then you could use that to re-sort after deleting. I can't be of

Re: [off]Apple script issue

2019-07-03 Thread Chip Scheide via 4D_Tech
Not been really following... Are you creating the PDF? if so, then you should be able to create the pdf such that it is 100% (or maybe better 95%) maybe th On Wed, 3 Jul 2019 15:23:10 -0400, Chuck Miller via 4D_Tech wrote: > Thanks it got me the following: > > Open Script Editor, navigate to

Re: OUT OF RANGE

2019-07-03 Thread Chip Scheide via 4D_Tech
in a multi user system it could be that a different user deleted the record In your logs, a record number is not necessarily enough to ID the trouble record. In your log - write some data specific information - UUID, or some other info that is unique to the record, as 4D can/does reuse record

Null End Point errors - a couple of years back

2019-07-03 Thread Allan Udy via 4D_Tech
Date:Thu, 13 Oct 2016 19:40:30 -0400 From: Randy Jaynes Subject: NULL End Point errors So I finally have an installation location where many of the clients get the "NULL End point error dialogs” which point me to issues with the network. Hi Randy, Did you ever track down what was causing

Re: 4D v17r4 Windows Print To PDF ignoring PAGE SETUP

2019-07-03 Thread Jeffrey Kain via 4D_Tech
The newest versions of 4D do better if you set these options in code instead of a saved page setup. Try using SET PRINT OPTION to change it to landscape mode. > On Jul 3, 2019, at 6:13 PM, Cameron Ambrose via 4D_Tech > <4d_tech@lists.4d.com> wrote: > > Just updated to 4D v17r4 and it