Re: Tip (?): Escaping escape characters

2017-01-06 Thread Robert Livingston
> On Jan 5, 2017, at 7:37 PM, David Adams wrote: > > $escaped:="" > > If (Count parameters>=1)// If this isn't true, you should deal with it. > $escaped:=$1 > > $escaped:=Replace string($escaped;"\\";"";*) > $escaped:=Replace string($escaped;"\n";"\\n";*) >

pointer and array element issue

2017-01-06 Thread Chip Scheide
I have a method which resizes any number of arrays, regardless of type. In this method I want to clear the {0} elements of these arrays if the new size of the array is Zero [utl_array_Resize_Array]. In this method I am calling another method which converts text to an appropriate data type

Re: Why does a converted v13 db limit text vars to 32k?

2017-01-06 Thread Kirk Brooks
On Thu, Jan 5, 2017 at 2:08 PM, Kirk Brooks wrote: > What's the dang deal here? > ​Well, I'm not really sure what the deal is but I resolved it by running MSC, correcting a few other, unrelated problems, and then running 'repair'. Verified with: ​C_TEXT($text)

Client upgrade

2017-01-06 Thread stardata.info
Hi All, I have a client server compiled application in 4D V13.2 on windows. When i do an upgrade, i copy into the folder: server database these two file: .4dc and .4dindy, and copy the folder Upgrade4Dclient. For do an client's upgrade i must to delete even some settings, options or folders?

RE: pointer and array element issue

2017-01-06 Thread Dennis, Neil
> If ($New_Size=0) //clear {0} value >utl_text_Convert_From_Text (->($Current_Array->{0});"") >//**Fails here > End if In this particular case you could just use clear variable, it would be faster than a roll your own method to set the correct type. If($New_Size=0) CLEAR

Listbox Mysteries

2017-01-06 Thread bob . miller
Hello Everyone, (4Dv15r5, Windows) I have an array-type listbox that I've configured so that every cell is enterable (the 'Single Click Edit' property is ON). This has presented a few challenges: > If someone clicks in a cell, that cell gets focus, but if I want to move focus completely

RE: pointer and array element issue

2017-01-06 Thread Chip Scheide
Thanks I saw that solution... but since the method utl_text_Convert_From_Text does the same/similar thing I was trying not to duplicate functionality. I know I have used smiler syntax to ->($Current_Array->{0}) in other places but probably not with an array element On Fri, 6 Jan 2017

Re: Tip (?): Escaping escape characters

2017-01-06 Thread David Adams
On Sat, Jan 7, 2017 at 3:52 AM, Kirk Brooks wrote: > I think what David is trying to do is something like this: > > $code:="$text:=\"\"damn\" dog \\on hill\r\n" > $code:=$code+"ALERT(___escape ($text)+\"\r\r\"+$text)" > > and then run $code. > > > ​In this context the

Re: Why does a converted v13 db limit text vars to 32k?

2017-01-06 Thread Keisuke Miyako
I remember there was a bug where if you upgrade from v11 straight to v13 unicode mode was deactivated yet the compatibility dialog told otherwise. > 2017/01/07 2:26、Kirk Brooks のメール: > ​Well, I'm not really sure what the deal is but I resolved it by running > MSC,

Re: Tip (?): Escaping escape characters

2017-01-06 Thread Kirk Brooks
David, On Fri, Jan 6, 2017 at 4:13 PM, David Adams wrote: > Out of interest, is automated testing in 4D an area of interest to many? > And, yes, I'm aware of Mark Schaake's unit testing component: > ​I'm interested. But it's tough. Not just for 4D though ​it's particularly

Re: Why does a converted v13 db limit text vars to 32k?

2017-01-06 Thread Kirk Brooks
Hi Miyako, That may have been the issue. I wasn't part of the project at that time but it's possible. It would be consistent with the behaviour I observed. The good news is MSC/repair seems to fix it. On Fri, Jan 6, 2017 at 4:29 PM, Keisuke Miyako wrote: > I remember

Re: Tip (?): Escaping escape characters

2017-01-06 Thread Keisuke Miyako
maybe it's better not to include the seed values as static text in the code itself. either an external plain text document, or structure resources such as lists, method comments, that is easily accessible from the code at runtime, but that doesn't impose some kind of escaping system (so XLIFF

Re: Tip (?): Escaping escape characters

2017-01-06 Thread David Adams
> On Sat, Jan 7, 2017 at 11:51 AM, Keisuke Miyako wrote: > maybe it's better not to include the seed values as static text in the code > itself. Is it okay if I agree with you while carrying on what I'm doing ;-) Seriously, your suggestions are spot on and I'd advise

Fast scrolling was v 14/Mac OS graphics issues

2017-01-06 Thread Paul Ringsmuth
Sometime in around December 2016 the fast scrolling in a text field was fixed. I don’t know if it was changes in 4D v15.3 HF1 or if it was repairing fonts with font book. But now the scrolling is smooth as butter, not too fast and not too slow and I am able to read scrolling text using the

Re: Tip (?): Escaping escape characters

2017-01-06 Thread Keisuke Miyako
are you sure that doesn't over-escape? http://www.json.org says \" \\ \/ \b \f \n \r \t so forward slash might have a problem (forget the bell and form feed) 宮古 啓介 セールス・エンジニア 株式会社フォーディー・ジャパン 〒150-0043 東京都渋谷区道玄坂1-10-2 渋谷THビル6F Tel: 03-6427-8441 Fax: 03-6427-8449 keisuke.miy...@4d.com

RE: pointer and array element issue

2017-01-06 Thread Tim Nevels
On Jan 6, 2017, at 7:18 PM, Chip Scheide wrote: > However, it might be useful to know how to go about setting to be able > to pass a pointer in this manner. > Any more Ideas? I would try using a local pointer variable. Maybe something like this: If ($New_Size=0) //clear {0} value

Re: Why does a converted v13 db limit text vars to 32k?

2017-01-06 Thread Tim Nevels
On Jan 6, 2017, at 7:18 PM, Keisuke Miyako wrote: > I remember there was a bug where if you upgrade from v11 straight to v13 > unicode mode was deactivated yet the compatibility dialog told otherwise. Miyako, you are the king of 4D secrets and details. You are a human 4D wikipedia! OK, there

Re: Why does a converted v13 db limit text vars to 32k?

2017-01-06 Thread David Adams
> Anything computationally expensive that's naturally suitable for > parallelization. Not all problems are easy to parallelize. Dividing the work > and marshaling the results can end up being more trouble than it's worth. Then > again, when it's good...it's great. Well, a few ideas...keeping in

Re: Why does a converted v13 db limit text vars to 32k?

2017-01-06 Thread David Adams
Will the initials DPA serve? I don't have insights into the 4D internals. I've always approached 4D as a black box and only believe what I can measure. That's served me very well down the years. Below are some thoughts on CALL WORKER and CALL FORM. For what it's worth, I consider these the most

Re: Why does a converted v13 db limit text vars to 32k?

2017-01-06 Thread Tim Nevels
On Jan 6, 2017, at 8:28 PM, David Adams wrote: > Will the initials DPA serve? I don't have insights into the 4D internals. > I've always approached 4D as a black box and only believe what I can > measure. That's served me very well down the years. Now that you mention it, I think DPA should

Re: Why does a converted v13 db limit text vars to 32k?

2017-01-06 Thread JPR
[JPR] > I’m sure JPR has an email filter that flags messages that includes “JPR” so > he’s reading this. Gosh! Tim, you've caught red-handed! > On a serious note, assuming JPR is reading this message, are you going to be > doing the 4D World Tour this year? I enjoyed your presentation last

Re: Implementing Audit Trails

2017-01-06 Thread Pat Bensky
Daniel, Yes, we have an Audit Trail feature in CatBase: https://www.catbase.com/the-audit-trail-manager.html Want the code? Pat On 6 January 2017 at 11:52, Daniel N. Solenthaler wrote: > Hi everyone, > > We are thinking about adding Audit Trails to our database. > >

[Off] Anyone in Spain?

2017-01-06 Thread Paul Lovejoy
Hi, Are any of you based in Spain? If so, I’d like to talk off list about 4D and opportunities in Spain. Send me a private e-mail please. tia Paul ** 4D Internet Users Group (4D iNUG) FAQ: http://lists.4d.com/faqnug.html

Re: Tip (?): Escaping escape characters

2017-01-06 Thread Kirk Brooks
Robert, On Fri, Jan 6, 2017 at 3:17 AM, Robert Livingston wrote: > C_TEXT($someText) > $someText:=DavidEscapeMethod("dog \on hill") > Alert($someText) > ​I just pasted David's code into a new method and ran it and it gave back what I expected: "dog \\on hill"​ If you pass