RE: [warning?] v13 (+?) - Type(String Array) = Text array
Hi Chip, This has been Standard Behavior since Unicode was introduced in v11. Please see Page 260 of the 4D v11 upgrade manual: 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 Kind Regards, Tim PENNER ** 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...@lists.4d.com **
[warning?] v13 (+?) - Type(String Array) = Text array
4D does not return 21 (string array) from TYPE when the item being tested is in fact a string array! Try this: String array($Fred;20) $x := Type($Fred) $x == 18 (text array) I found this while trying to write some generic code to manipulate arrays. In this specific instance I am trying to (blindly) resize array(s) Arrayutl_Resize_array(newSize;Array_ptr1;Array_ptr2...) if the array is any type, except ARRAY STRING, I can simpley use a compiler directive to resize the array. However, this is NOT the case with a string array, as I do not know the string length in the array declaration. So, I have code which uses Delete from array, or Insert into array to resize a string array, preserving/avoiding the string length issue. Case of : ($Difference<0) DELETE FROM ARRAY($Array_Pointer->;$Size+1;Abs($Difference)) : ($Difference>0) INSERT IN ARRAY($Array_Pointer->;Size of array($Array_Pointer->);$Difference) Else //already at correct size End case BUT -- this code will not ever run, as TYPE treats a string array as a text array and returns the value 18 (text array) rather then 21 (string array). Any workarounds?? does this exist in new versions? Thanks Chip --- Gas is for washing parts Alcohol is for drinkin' Nitromethane is for racing ** 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...@lists.4d.com **
RE: Importing contact list from Mail/outlook on OSX
The plugin page says it supports both carbon and cocoa; but the icons on the download page suggest it's only been tested with v15 andv16... https://github.com/miyako/4d-plugin-address-book Are you experiencing any issues with the plugin in v17? Generally speaking, when an issue occurs with something that is available on GitHub it is preferable to have the issue logged on the github issues page, which is sort of like a built in bug tracking system provided by github: List of open issues: https://github.com/miyako/4d-plugin-address-book/issues Submit new issue: https://github.com/miyako/4d-plugin-address-book/issues/new -Tim ** 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...@lists.4d.com **
Importing contact list from Mail/outlook on OSX
I have an email interface in my 4D application that I used to send email and would like to have access to the list of contact from mail and/or outlook on OSX dynamically. I can certainly run a background process on every x minutes to update a table in 4D. But ideally I do not want to store the contact in 4D and just access it on the fly. For speed purposes I understand that I might not have the choice to duplicate the contact in a table. I have used back then the plugins called address book written by Miyako. It was in version 14 and that solution was working nicely. But now I am on v17 and I am not sure if that plugin is compatible with v17 and we still be supported for the next few years. I was wondering if anyone did something similar in 4D. If anyone can point me in any direction, it would be greatly appreciated. Thanks, Luc Devar ** 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...@lists.4d.com **
RE: Automatic updating of built apps
> I’m calling SET UPDATE FOLDER with the path to the folder containing the app, > like this: > SET UPDATE FOLDER(“Macintosh > HD:Users:jeffgrann:Desktop:SuccessWare:AppUpdate”) >Are you saying I should be supplying the path to the app package, like this: > SET UPDATE FOLDER(“Macintosh > HD:Users:jeffgrann:Desktop:SuccessWare:AppUpdate:SuccessWare.app”) Please look at the example in the docs: http://doc.4d.com/4Dv15/4D/15.6/SET-UPDATE-FOLDER.301-3817918.en.html -Tim ** 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...@lists.4d.com **
Re: Automatic updating of built apps
> On Aug 8, 2018, at 12:28 PM, John DeSoi via 4D_Tech <4d_tech@lists.4d.com> > wrote: > > What version of 4D? I'm not having any problems with 16.3. 4D v16 R5 > Are you setting the update folder to the full path of the application > package? For example, I'm updating from a disk image with the same name as > the application with something like: > > $updateFolder:=$appName +Folder separator+$appName+".app” I’m calling SET UPDATE FOLDER with the path to the folder containing the app, like this: SET UPDATE FOLDER(“Macintosh HD:Users:jeffgrann:Desktop:SuccessWare:AppUpdate”) Are you saying I should be supplying the path to the app package, like this: SET UPDATE FOLDER(“Macintosh HD:Users:jeffgrann:Desktop:SuccessWare:AppUpdate:SuccessWare.app”) -- Jeff Grann SuccessWare, Inc. ** 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...@lists.4d.com **
RE: OFF - Reconditioning SSD Drives
> Is TRIM enabled? > If not that would be my first step. Definitely look into running TRIM on a regular basis. Also, have you looked at the software provided by the manufacturer? https://www.samsung.com/semiconductor/minisite/ssd/download/tools/ The manufacturer software usually has some stuff to check if all the settings are correct and also benchmark the drive. -Tim ** 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...@lists.4d.com **
Re: Automatic updating of built apps
What version of 4D? I'm not having any problems with 16.3. Are you setting the update folder to the full path of the application package? For example, I'm updating from a disk image with the same name as the application with something like: $updateFolder:=$appName +Folder separator+$appName+".app" John DeSoi, Ph.D. > On Aug 8, 2018, at 10:43 AM, jeff--- via 4D_Tech <4d_tech@lists.4d.com> wrote: > > In other words, the update process is placing the update app inside the > original app instead of replacing the original app with the update app! > > I must be missing something here. ** 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...@lists.4d.com **
Re: OFF - Reconditioning SSD Drives
Is TRIM enabled? If not that would be my first step. Steve UKVD On 08/08/2018, 16:54, "4D_Tech on behalf of Dave Nasralla via 4D_Tech" <4d_tech-boun...@lists.4d.com on behalf of 4d_tech@lists.4d.com> wrote: Hey All, This isn't related to 4D per se, but our 4D server is running a mirrored RAID with two Samsung 850 Pro drives on Mac OS 10.13.x. Recently I wiped the RAID and upgraded to the current OS from scratch doing a clean install of everything. Now I am seeing a fairly noticeable performance hit with write operations. I used to be able to duplicate a 400MB file in s few seconds, but not anymore. I am not running the new mac file system (APFS) on the RAID. I'm thinking the SSDs need to be reconditioned. Any one have any recommendations? (I can also connect them to a PC to do another wipe if necessary.) dave -- David Nasralla Clean Air Engineering ** 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...@lists.4d.com ** ** 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...@lists.4d.com **
OFF - Reconditioning SSD Drives
Hey All, This isn't related to 4D per se, but our 4D server is running a mirrored RAID with two Samsung 850 Pro drives on Mac OS 10.13.x. Recently I wiped the RAID and upgraded to the current OS from scratch doing a clean install of everything. Now I am seeing a fairly noticeable performance hit with write operations. I used to be able to duplicate a 400MB file in s few seconds, but not anymore. I am not running the new mac file system (APFS) on the RAID. I'm thinking the SSDs need to be reconditioned. Any one have any recommendations? (I can also connect them to a PC to do another wipe if necessary.) dave -- David Nasralla Clean Air Engineering ** 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...@lists.4d.com **
Automatic updating of built apps
When using SET UPDATE FOLDER and RESTART 4D, the resulting app is not a correct application package on MacOS. The update folder contains the app file: AppUpdate SuccessWare.app Contents …. Which is a correctly built app. But after the update, the updated app looks like this: SuccessWare.app SuccessWare.app Contents …. In other words, the update process is placing the update app inside the original app instead of replacing the original app with the update app! I must be missing something here. -- Jeff Grann SuccessWare, Inc. ** 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...@lists.4d.com **
Re: height and width of a fixed prtinted object
Thanks that did it not sure how I missed it as I looked at the command in documentation Thanks and regards Chuck Chuck Miller Voice: (617) 739-0306 Informed Solutions, Inc. Fax: (617) 232-1064 mailto:cjmillerinformed-solutions.com Brookline, MA 02446 USA Registered 4D Developer Providers of 4D and Sybase connectivity http://www.informed-solutions.com This message and any attached documents contain information which may be confidential, subject to privilege or exempt from disclosure under applicable law. These materials are intended only for the use of the intended recipient. If you are not the intended recipient of this transmission, you are hereby notified that any distribution, disclosure, printing, copying, storage, modification or the taking of any action in reliance upon this transmission is strictly prohibited. Delivery of this message to any person other than the intended recipient shall not compromise or waive such confidentiality, privilege or exemption from disclosure as to this communication. > On Aug 7, 2018, at 11:09 AM, Cannon Smith via 4D_Tech <4d_tech@lists.4d.com> > wrote: > > Hi Chuck, > > If I’m understanding what you’re after, you just need to use the max width > parameter with OBJECT GET BEST SIZE. > > HTH. > > -- > Cannon.Smith > Synergy Farm Solutions Inc. > Hill Spring, AB Canada > 403-626-3236 > > > > >> On Aug 7, 2018, at 8:58 AM, Charles Miller via 4D_Tech >> <4d_tech@lists.4d.com> wrote: >> >> *OBJECT GET BEST SIZE*(*;"v_164_056_txt";$BWidth_l;$BHieght_L) > > ** > 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...@lists.4d.com > ** ** 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...@lists.4d.com **