Select to view content in your preferred language

Arcade Question

220
2
Jump to solution
08-22-2024 06:46 AM
JeffHanson2
Occasional Contributor

I'm converting a VB Script Calculate Field expression to Arcade and can't get it right.   The VB Script is:

Left([Control_Number__Control_Account___Control_Account_], 5)   (Yes, it is a long field name)

The FarmCtrl field is set to the first 5 characters of field Control_Number__Control_Account___Control_Account_

 

I just can't get the Arcade syntax right, I've tried:

Left($Feature"Control_Number__Control_Account___Control_Account_", 5) but that doesn't work.

Tags (1)
1 Solution

Accepted Solutions
KenBuja
MVP Esteemed Contributor

You have to encase the field name in brackets

Left($feature["Control_Number__Control_Account___Control_Account_"], 5)

feature

View solution in original post

2 Replies
KenBuja
MVP Esteemed Contributor

You have to encase the field name in brackets

Left($feature["Control_Number__Control_Account___Control_Account_"], 5)

feature

JeffHanson2
Occasional Contributor

Thank you, that works.   I'm learning Arcade now after years of VB Script and Python

 

0 Kudos