Promotic
WikipediaLinkedInYoutubeTwitterFacebook

StringScan - method of object Pm

Description:
Reading data from the string formatted in the C language convention.
Syntax:
StringScan(sFormat As String, sSource As String) As Array
Calling:
arr = Pm.StringScan(sFormat, sSource)
Parameters:
sFormat(String) Formatting string written in the C language convention. See C language string format specification. For real numbers the number of decimal places mustn't be stated (instead of "%5.2f" must be only "%5f").
sSource(String) string from which data are read according to the format
Return Values:
This data are returned by the method in the array of values.
Note:
The method can also be called in the graphic item events for Web Panels.

The method is functional also in Macro expression $.expr.

Example:
Dim sText, aData, nTemperature, nPressure
sText = "Temperature=25.48, Pressure=112.8"
aData = Pm.StringScan("Temperature=%5f, Pressure=%5f", sText)
nTemperature = aData(0)
nPressure = aData(1)
Navigation:
 
- Pm
 
- Abs
- Cos
- E
- Exp
- LN2
- PI
- Pow
- Sin
- StringScan
 
 
- Tan
© MICROSYS, spol. s r. o.Tavičská 845/21 703 00 Ostrava-Vítkovice