    

 ## On this page

  

 

 # fromFormattedString

 Last update: 30.07.2026 

public [fromFormattedString](from-formatted-string.md)(value: [String](https://docs.oracle.com/javase/8/docs/api/java/lang/String.html), index: [Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html))

sets the value for the variable from a formatted string

#### Parameters

valuethe formatted valueindexthe array element to set (0-based index)#### Throws

[ModelCenterException](./../-model-center-exception/index.md)