You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When the template strings are converted to pure brightscript they became a complex expression.
this means that you cannot directly call "methods" attached to strings (like encodeUri()) because it will be applied only to the last segment.
minimal example:
subs()
example=`${1}${2}`.encodeUri()
example=`${1}-`.encodeUri()
end sub
translate to:
subs()
example=bslib_toString(1) +bslib_toString(2).encodeUri()
example=bslib_toString(1) +"-".encodeUri()
end sub
As a workaround, for now, I can just "wrap" the template string with brackets (as in
example = (`...`).encodeUri()
) , but it should be bsc job, IMHO
The text was updated successfully, but these errors were encountered:
When the template strings are converted to pure brightscript they became a complex expression.
this means that you cannot directly call "methods" attached to strings (like
encodeUri()
) because it will be applied only to the last segment.minimal example:
translate to:
As a workaround, for now, I can just "wrap" the template string with brackets (as in
) , but it should be
bsc
job, IMHOThe text was updated successfully, but these errors were encountered: