Heloisa Paiva · Apr 19, 2023 go to post

PS.: it also works if you concatenate strings:
 

write "my string"_stringVariable_"continue string"

In the first case you would be calling the "WRITE" method 3 times, once for each string divided by ",", and in the second you would be calling "WRITE" once with only one string that is a copy of the 3 strings combined together. 

You could also use concatenating to set a new variable:
 

Set stringVariable = " | "
Set stringsCombined = "my string"_stringVariable_"continue the string"

And then you can work with this new variable.
I.E. if you called WRITE stringsCombined, you would have as an output:

my string | continue the string
Heloisa Paiva · Apr 19, 2023 go to post

Hi Kurro!
I like using this feature of COS:

 write "my string", stringVariable, "continue the string"

it works fine for the WRITE calls, but if you need the string formatting in any other cases please specify them so we can find an easy way to do it! 

Heloisa Paiva · Mar 2, 2023 go to post

Me too! I feel that some configurations such as where to store globals and routines, and mapping with other namespaces are more "user friendly" in the Management Portal, but when creating samples those things aren't really something to worry about or to spend time on.

Heloisa Paiva · Mar 2, 2023 go to post

Hi @Evgeny Shvarov!
Thank you!
I've changed the second title to Create Table! 
Thank you for the feedback! I made a little confusion because I was deciding if I would use the first title as create database or create namespace and I ended up leaving both of them and deleting the "Create Table" haha 

Heloisa Paiva · Feb 17, 2023 go to post

Hi @Michael Davidovich ! Thank you for the feedback. Now, let's take a look at those questions:

1- Does embedded Python support return values?
For a  short answer, yes it does. But as there are many ways to access python, there are many ways I can answer that. In fact I found it a very interesting topic to discuss and I'm working on a new article so I can cover more cases, but just to give it a taste, if you're using in IRIS a ClassMethod [ Language = python ] you can use "return ..." to finish the method and return a value, as you would after declaring a function in python.
2- 
Also, is there a well documented source for the iris Python package?

The documented source is Native SDK for Python Quick Reference. Now, if it is "well documented" you'll have to answer for yourself hahaha, but I'm working on getting more information and examples here. From what I've learned so far, the package has ways to connect from your python environment to IRIS, in such a way that you can access any methods you've created on IRIS, so I see it as a door to everything in IRIS.

Heloisa Paiva · Jan 24, 2023 go to post

Hi! I had already joined the community when I entered the global masters. Will my previous contributions be considered? 
Thanks!

Heloisa Paiva · Sep 20, 2022 go to post

There is an easy way to do it on Notepad++

  • Open the file with the classes on Notepad++
  • Open the Find and Replace menu (with Ctrl+H or selecting it on the tools bar)
  • Type this on the Find text box: (?s)(?=<Storage)(.+?)(?=</Storage)
  • On the "Search mode" box, you will want to select "Regular expression"
  • Then you can click on Find Next to see if it's selecting everything you want, or, if you're confindent, go straight to the "Replace All" button!

PS.: you might have to use the replace tool to replace the </Storage> part that's left, but it's pretty much the same steps.

PPS.: yes you can leave the Replace text box empty!

Here's the explanation for the expression on a similar situation: https://community.notepad-plus-plus.org/topic/21308/how-to-find-and-sel…

Heloisa Paiva · Sep 20, 2022 go to post

You will wanna follow this steps for what i think it's the easiest and securest way for that:

  • Export everything in a project to an XML
  • Open the file in a notepad or anything similar
  • Open the "Find and Replace" menu - on Windows you use Ctrl+H for that
  • On "Find" you type the current name and on "Replace" the new one, for each class
  • Import again this new document and delete the remaining classes with the old names