FormatForeLine

Syntax

FormatForeLineResult FormatForeLine(FormatForeLineArg tArg)

Parameters

tArg. Operation execution parameters.

Description

The FormatForeLine operation forms a code string.

Comments

The operation formats the code string by adding single indents and deleting insignificant spaces in code string elements. To execute the operation, in the tArg.line field specify the code string, to which formatting should be applied.

The operation results in the cod string after formatting is applied.

Example

Below is the example of applying formatting to code string in the development environment. The request contains code string. The response contains code string after formatting is applied.

SOAP request:

<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<FormatForeLine xmlns="http://www.fsight.ru/PP.SOM.Som">
<tArg xmlns="">
  <line>MB:=MetabaseClass.Active ; </line>
  </tArg>
  </FormatForeLine>
  </s:Body>
  </s:Envelope>

SOAP response:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Body>
<FormatForeLineResult xmlns="http://www.fsight.ru/PP.SOM.Som" xmlns:q1="http://www.fsight.ru/PP.SOM.Som" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <line xmlns="">MB := MetabaseClass.Active;</line>
  </FormatForeLineResult>
  </soapenv:Body>
  </soapenv:Envelope>

JSON request:

{
"FormatForeLine" :
{
"tArg" :
{
"line" : "MB:=MetabaseClass.Active ; "
}
}
}

JSON response:

{
"FormatForeLineResult" :
{
"line" : "MB := MetabaseClass.Active;"
}
}
public static FormatForeLineResult FormatForeLine(string text)
{
var somClient = new SomPortTypeClient(); //Proxy object for operation execution
//Operation execution parameters
var tFormat = new FormatForeLine()
{
tArg = new FormatForeLineArg()
{
line = text
}
};
//
var result = somClient.FormatForeLine(tFormat);
return result;
}

See also:

Working with Development Environment