@vov() Function

Top  Previous  Next

@vov() ,Value of Value, function evaluates given expression and assumes that the result of the evaluation is a symbol and returns its value.

Syntax:

@vov(expression)
 

Examples:

 

@set(LANGS,'TR,EN,DE')

@set(DESC_TR,'Türkçe Metin')

@set(DESC_EN,'English Text')

@set(DESC_DE,'Deutscher Text')

 

 

  UPDATE resource SET

    @accfs( LANGS,',',, 

      'DESC_' + . = '''' + vov('DESC_' + .) + '''', ',',

    )

  WHERE ID = 12;

 

Result:

  UPDATE resource SET

    DESC_TR = 'Türkçe Metin', DESC_EN = 'English Text', DESC_DE = 'Deutscher Text'

  WHERE ID = 12;