suppose I have a string like (that's how I get the function parameters from my regex)
Code: Select all
sParams := "true, 123, ""Hello"" "
After parsing that string I get an array of parameter values:
Code: Select all
aParams := []
Loop, Parse, sParams, `, , %A_Space%
{
sParam := A_LoopField
aParams.Push( sParam )
}
That works, but how can I preserve the function parameter types?
Test code:
Code: Select all
sFuncName := "FuncTest"
sParams := "true, 123, ""Hello"" " ; that's how I get the function parameters from my regex
aParams := []
Loop, Parse, sParams, `, , %A_Space%
{
sParam := A_LoopField
aParams.Push( sParam )
}
oFunc := Func( sFuncName ).Bind( aParams* )
oFunc.Call()
FuncTest( p_bVal, p_iVal, p_sVal)
{
MsgBox, % "bVal = " p_bVal "`niVal = " p_iVal "`nsVal = " p_sVal
}
Many thanks and greetings
hotkeyguy