Path: csiph.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!peer02.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!post02.iad.highwinds-media.com!fx16.iad.POSTED!not-for-mail From: Bob Meador Newsgroups: comp.databases.filemaker Message-ID: <2014012410342175939-email@domaincom> References: <201309181004478188-email55@domaincom> <2013092615124876149-email@domaincom> <2e156e33-7fd8-4428-81eb-6c12c992d3bd@googlegroups.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Subject: Re: FMPro 9 script won't work in FMPro 12 User-Agent: Unison/2.1.10 Lines: 58 X-Complaints-To: http://www.panic.com/unison/dmca.html NNTP-Posting-Date: Fri, 24 Jan 2014 17:34:21 UTC Organization: http://www.panic.com/unison/ Date: Fri, 24 Jan 2014 10:34:21 -0700 X-Received-Bytes: 2878 X-Received-Body-CRC: 3282802668 Xref: csiph.com comp.databases.filemaker:1670 On 2013-09-27 03:27:58 +0000, Howard - FM Pro Solutions said: > On Thursday, September 26, 2013 3:12:48 PM UTC-7, Bob M. wrote: >> On 2013-09-19 04:07:09 +0000, Howard Schlossberg said: >>> On 9/18/2013 10:04 AM, Bob M. wrote: > >>>> Here is the Calculation I was using in 9 that doesn't work in 12: >>>> >>>> Let( >>>> >>>> [ >>>> >>>> _Notes = Comments; >>>> _Prompt = " " ; >>>> _Char = "• " ; >>>> _Divider= TextColor >>>> ("¶––––––––––––––––––––––––––––––––––––––––––––––----–––––––––––––-----–––¶"> >>>> >>> >> ; RGB (150 ; 150 ; 150)); >>>> _Tag = TextStyleAdd ( TextColor ( Get( CurrentTimeStamp ) & ¶ ; RGB> >> >>>> (150 ; 150 ; 150 ) ) ; Bold ); >>>> _Editing = Left( _Notes; Length( _Prompt )) = _Prompt or Left ( _Notes> >>>> >> ; Length( _Char ) ) = _Char >>>> >>>> ]; >>>> >>>> If( _Editing; _Notes; >>>> _Char &_Tag & _Notes & _Divider& Middle ( $$NoteLog ; Length( _Prompt)> >>>> >> ; 1000000 )) >>>> ) >>> >>> >>> You showed what the data is supposed to look like, but what DOES >>> happen> > in 12? There is nothing in your calc that I'm seeing that >>> wouldn't> > work in 12. >>> >>> Howard >> >> Howard, >> >> The data isn't selected and then copied when entering the field so I> >> can't just click in the field, then add new notes and have the >> previous> data appended when I leave the field. It used to work this >> way. > > It works for me if I click into the field and start typing at the > beginning of the field. But it seems maybe that's not how you are > trying to do it. > > Your calc has a global variable ($$NoteLog) that isn't getting set > here. So do you have a script trigger or something else that is > setting $$NoteLog upon entering the field? Howard, I was looking at this thread and it seems my email thanking you for your efforts back in September didn't get posted. Sorry about the delay, but i appreciate your help. It works now.