Author Topic: Some virtual functions only accept integer constants  (Read 379 times)

Messiaen

  • Jr. Member
  • **
  • Posts: 103
A silly example, but:

$Left("123",$Add(1,1)) results in an error, whereas $Left("123",2) gives the expected result.

Essentially the use of any integer-returning function (especially a useful one like $Len) will error out when applied to an integer-expecting parameter in $Left(), $Right(), $CutLeft(), and $CutRight() virtual expressions.
Last Edit: January 06, 2023, 12:49:48 PM by Messiaen

boroda

  • Sr. Member
  • ****
  • Posts: 4595
confirmed.

maybe the problem is incorrect parsing of the second comma (which is considered to delimit 2nd and (illegal) 3d parameter of $Left function.), i.e. incorrect parsing of nested functions.

Steven

  • Administrator
  • Sr. Member
  • *****
  • Posts: 34312