Re: UUIDs internal ID with 4DPop

2018-06-27 Thread Jody Bevan via 4D_Tech
Chip: Thanks!! Jody > On Jun 27, 2018, at 2:50 PM, Chip Scheide via 4D_Tech <4d_tech@lists.4d.com> > wrote: > > In the source code for 4DPop > in the method: CONSTANT_Save_file > change the code at line 104 : > from: > CONSTANT_NEW_CONSTANT >

Re: Counting lines of text

2018-06-27 Thread Keith Culotta via 4D_Tech
That sounds like a job for TEXT TO ARRAY ( varText ; arrText ; width ; fontName ; fontSize {; fontStyle {; *}} ) Keith - CDI > On Jun 27, 2018, at 4:31 PM, Pat Bensky via 4D_Tech <4d_tech@lists.4d.com> > wrote: > > I have a need to know how many lines a block of text will occupy. > Given: >

Counting lines of text

2018-06-27 Thread Pat Bensky via 4D_Tech
I have a need to know how many lines a block of text will occupy. Given: - the plain text - the font - font size - text area width I'm thinking it should be possible to do this by creating a WritePro object, adding the text and setting the various parameters - this would create an accurate

UUIDs internal ID with 4DPop

2018-06-27 Thread Chip Scheide via 4D_Tech
In the source code for 4DPop in the method: CONSTANT_Save_file change the code at line 104 : from: CONSTANT_NEW_CONSTANT ($Dom_constants;$Txt_value;"k_"+String($Lon_constantId);$Txt_label) to: CONSTANT_NEW_CONSTANT ($Dom_constants;$Txt_value;Generate UUID;$Txt_label) This will allow you to use

Does anyone have experience syncing with external contacts?

2018-06-27 Thread Kirk Brooks via 4D_Tech
Like Facebook, Apple Contacts, Google Contacts, Outlook etc. without having to export from there first. If so willing to share some code or at least pointers? Thanks -- Kirk Brooks San Francisco, CA === *We go vote - they go home*

RE: STARTTLS - send secure email 4D v15.5

2018-06-27 Thread Michael McCall via 4D_Tech
Not sure if this helps at all but in case it does, this works for us running 4D v16 R5. We use it to connect to our Exchange account using the Office 365 hosting service. // long working version C_LONGINT($error;$sslSMTPPort) C_LONGINT($smtp_id) C_TEXT($smtpHost) C_TEXT($replyTo;$sendEmailTo)

4D Pop Constants component

2018-06-27 Thread Jim Crate via 4D_Tech
On macOS, 4D 16.3 HF4, when trying to edit a constant, the name is not editable. I thought it used to show up in the bottom area near the value, but only the name of the group shows up. Not knowing how old my 4D POP component was, I downloaded a new copy (at least Google can find it). It has

Re: v13 - Konstants [Solved]

2018-06-27 Thread Arnaud de Montard via 4D_Tech
> Le 27 juin 2018 à 18:02, Jody Bevan via 4D_Tech <4d_tech@lists.4d.com> a > écrit : > > Chip and Keisuke: > > Very interesting thread. We have been using 4D Pop extensively for several > years. > > If UUID are required, and 4D Pop is not handling them right, then I guess we > need to write

Re: v13 - Konstants [Solved]

2018-06-27 Thread Chip Scheide via 4D_Tech
Jody, if you use a text editor (I am using TextWrangler) you can see that 4DPop assigns a simple ID, in numerical, order from top to bottom of the xlif file. While I have not yet tried to (manually) reassign a UUID to constants, I expect that 4DPop would reset this to it's own ID. I also have

Re: v13 - Konstants [Solved]

2018-06-27 Thread Jody Bevan via 4D_Tech
Chip and Keisuke: Very interesting thread. We have been using 4D Pop extensively for several years. If UUID are required, and 4D Pop is not handling them right, then I guess we need to write our own tool. I find it strange that a tool that is packaged from the factory would not handle it

STARTTLS - send secure email 4D v15.5

2018-06-27 Thread jarosz via 4D_Tech
Has anybody successfully used 4D to send secure emails via STARTTLS & a Microsoft Exchange/Office365 mailbox? I am trying to do this using 4D 15.5 and this code from the docs, but if I pass 1 in the SMTP_Send parameter I get error "10064 - no response has been received within the timeout period",

Re: v13 - Konstants [Solved]

2018-06-27 Thread Keisuke Miyako via 4D_Tech
I might do it manually, I might do it by code (XML or 4D tags). in general the code would be so specific to the work, I would happily trash it by the end of the day. I don't use 4D Pop at all, its a choice but not the law. as for the comment on Menu_@ vs @_Menu, it may simply be an issue of

4D View to 4D View Pro upgrade path

2018-06-27 Thread Uist Macdonald via 4D_Tech
I see that 4D View is not supported on V16 64 bit client. I use many programmatically created dynamic V13 4D View Areas. Is there an upgrade path from 4D View to 4D View Pro? I never use saved 4D View docs. Uist Macdonald -- Ceres Computer Consultants Ltd Registered Office: South

Re: v13 - Konstants [Solved]

2018-06-27 Thread Chip Scheide via 4D_Tech
Keisuke, I see what you are saying, however, how is this accomplished? Do you just generate a UUID, and manually assign it? 4DPop does not do this sort of assignment (UUIDs) for the IDs. Yesterday, while trying to diagnose and resolve the problems I was having, I did try to see if there were

4D View upgrade path

2018-06-27 Thread Uist Macdonald via 4D_Tech
I see that 4D View is not supported on V16 64 bit client. I use many programmatically created dynamic 4D View Areas. Is there an upgrade path from 4D View to 4D View Pro? I never use saved 4D View docs. Uist Macdonald -- Ceres Computer Consultants Ltd