Forum Discussion

pranav46's avatar
pranav46
Contributor II
6 months ago

how to use of pov member in C# api.data.calc

Hi, I am trying to build C# finance BR where scenario is being pulled from POV but how to use in api.data.calculate function. If its VB then I can use with & but C# its not working.
  • FredLucas's avatar
    6 months ago

    A couple of options for string concatenation in C# are using the "+" sign instead of "&" or String.Concat function.

    There are a few examples online, here's a sample:

    string firstName = "John ";
    string lastName = "Doe";
    
    //one option:
    string name = firstName + lastName;
    
    //another option:
    string name = string.Concat(firstName, lastName);
    

     

     

  • FredLucas's avatar
    FredLucas
    6 months ago

    Have you try doing:

    api.Data.ClearCalculateData("S#" + curScenario + ":O#Forms:V#Periodic",....)

    Hope this helps.