go to post Anna Golitsyna · May 15, 2023 I'll watch it, thanks, Raj. I have to say though that I really prefer searchable text that can be visually scanned diagonally in 5 minutes as opposed to watching a 45-minute video. Oh well...
go to post Anna Golitsyna · May 15, 2023 Thanks, @Brett Saviano . I'd like to assess what are plusses and minuses of migrating first.
go to post Anna Golitsyna · May 15, 2023 Is there a recent and detailed article comparing VSCode plugin and the latest Studio? Something like this is what Studio still does better and this is what plugin does better.
go to post Anna Golitsyna · May 10, 2023 That's the code I ended up with. Thanks for your help, everybody! ; str is parsed into two arrays, words and separators (spaces and punctuation) ; Trim leading and trailing spaces here if needed S L=$L(str),(currWord,currSep)="",cnt=0 F i=1:1:L { S currChar=$E(str,i,i) I $MATCH(currChar,"\w") { S currWord=currWord_currChar I currSep'="" { S sepAr(cnt)=currSep,currSep="" }} ELSE { S currSep=currSep_currChar I currWord'="" { S cnt=cnt+1,wordAr(cnt)=currWord,currWord="" } } }
go to post Anna Golitsyna · Apr 14, 2023 It is based on a specific separator as opposed to all regular text separators at the same time, but it is an interesting approach to keep in mind. I was thinking about $LOCATE as well.
go to post Anna Golitsyna · Feb 13, 2023 I searched Journals for ^ROUTINE nodes and the filter displayed nothing. Both RI and RCOPY functions bypass any kind of source control, so GIT or OnAfterSave hooks cannot help.
go to post Anna Golitsyna · Dec 15, 2022 Not quite what I was looking for but very interesting in its own right. Thanks, Alexey!
go to post Anna Golitsyna · Dec 14, 2022 Hi Cristiano, This might do for my ultimate purposes, thanks, but strictly speaking $STACK does not return the line number which in this case is 7 (Teste+2). It returns line number relative to the enclosing function only. So I'll wait in case there is a different solution as well.
go to post Anna Golitsyna · Oct 14, 2021 I added a picture of what I am looking for to the post (Edit/Find). I think FindInFilesRegex corresponds more or less to Use wildcards on this screen.
go to post Anna Golitsyna · Oct 11, 2021 Also %RCOPY preserves date modified of the original routine, and I'd rather preserve it. So far other listed approaches do not preserve it.
go to post Anna Golitsyna · Oct 11, 2021 Yes, that works and assigns the time of copy as the date modified. Thanks, Stephen! BTW, in my experience at least some old-fashioned commands are faster than their modern equivalents though in this case the speed is not an issue.
go to post Anna Golitsyna · Oct 11, 2021 Robert, it does not trigger source control and yes, I'd like it non-interactive too.
go to post Anna Golitsyna · Oct 8, 2021 Marc, a slight variation on your idea, tested whether targetRtn exists or not. Thanks again! zn "A"s currRtn=(##class(%Routine).%OpenId(rtnName))s stream=currRtn.Read()zn "B"s targetRtn=(##class(%Routine).%OpenId(rtnName))s sc=targetRtn.Write(stream)d targetRtn.Save()
go to post Anna Golitsyna · Oct 8, 2021 That would make the routine from namespace A immediately available in namespace B as is. The goal is to have routines in two namespaces different until the time comes for the programmer to make them the same via an RCOPY analog. It is also a "per routine" job used for synchronizing.
go to post Anna Golitsyna · Sep 21, 2021 One more question if I may: I try to exclude global subnodes but so far unsuccessfully. Is it possible?This correctly exports the corresponding node only: s items("SOMEGLOBAL(""ABC"",""XYZ"",""USERFORM_ATEST"").GBL") = ""Now if I try to exclude this node from the SOMEGLOBAL like this, s items("SOMEGLOBAL.GBL",'"SOMEGLOBAL(""ABC"",""XYZ"",""USERFORM_ATEST"").GBL") = "", it does not exclude it. There is a barely visible single negating quote in the beginning of the second item.