The EvalLanguageValue attribute function determines the contents of the variable's string and interprets contents in pipes as expressions.
|
Syntax | |||||
|
EvalLanguageValue([LanguageID] [, FrameWithQuotes]) | |||||
|
Return value | |||||
|
Type |
Description | ||||
|
Variant |
The evaluated expression | ||||
|
Parameter | |||||
|
Use |
Name |
Type |
Passing |
Description | |
|
Optional |
LanguageID |
String |
ByVal |
Language-ID of the value | |
|
Optional |
FrameWithQuotes |
Boolean |
ByVal |
If True, the string will be framed with quotes before evaluation. Default value: True |
|
|
Note | |||||
|
If LanguageID is not specified, the dialog language applies. | |||||
Example 1:
Dim S As String, L As Long
L := 2001
S := "||L||"
MsgBox(S.EvalLanguageValue)
The output is 2001, because ' ”|L|” ' is evaluated.
Example 2:
Dim S As String, L As Long
L := 2001
S := "L"
MsgBox(S.EvalLanguageValue)
The output is L, because ' L ' is evaluated.
Example 3:
Dim S As String, L As Long
L := 2001
S := "L"
MsgBox(S.EvalLanguageValue(, False))
The output is 2001, because L is evaluated.