Hi all,
I want to split a field and then translate the split codes into plain english. The field (INMOON_VIEW.Weapon_Used) can contain up to three elements separated by "/". I want to split and translate in one formula if possible. This is what I have picked up from previous postings. In the code below the case does not work. Any and all help is appreciated. I can do multiple formulas, but hope there is a quicker solution.
if ubound(split({INMOON_VIEW.Weapon_Used},"/")) >= 1 then
split({INMOON_VIEW.Weapon_Used},"/")[1]
case"AXE":"AXE / SAW"
case"BAT":"BAT / BOARD"
case"VEHIC":"VEHICLE"
case"BBGN":"PELLET / BB GUN"
case"BODY":"HANDS / FEET / OTHER"
case"BOMB":"BOMB / EXPLOSIVES"
case"BOTTL":"BOTTLE / BROKEN BOTTLE"
case"CHAN":"CHAIN"
case"CHEM":"CHEMICALS"
case"CLUB":"CLUB"
case"FLAM":"OPEN FLAME"
case"GAS":"GASOLINE / ACCELERANT"
case"GLAS":"GLASS OBJECT"
case"GUN":"UNKNOWN TYPE FIREARM"
case"GUNH":"HANDGUN"
case"GUNR":"RIFLE"
case"GUNS":"SHOTGUN"
case"KITUT":"KITCHEN UTENCILS"
case"KNIFE":"POCKET / FIXED BLADE KNIFE"
case"NUNCH":"NUNCHUKA STICKS"
case"OTH":"OTHER"
case"PIPE":"PIPE / TIRE IRON"
case"RAZR":"RAZOR"
case"ROCK":"ROCK / BRICK"
case"SACK":"SACK / BAG"
case"SIMU":"SIMULATED WEAPON"
case"TOOLS":"WRENCH / HAMMER / ETC."
case" ":"NOT ENTERED IN ARS"
Phil
I want to split a field and then translate the split codes into plain english. The field (INMOON_VIEW.Weapon_Used) can contain up to three elements separated by "/". I want to split and translate in one formula if possible. This is what I have picked up from previous postings. In the code below the case does not work. Any and all help is appreciated. I can do multiple formulas, but hope there is a quicker solution.
if ubound(split({INMOON_VIEW.Weapon_Used},"/")) >= 1 then
split({INMOON_VIEW.Weapon_Used},"/")[1]
case"AXE":"AXE / SAW"
case"BAT":"BAT / BOARD"
case"VEHIC":"VEHICLE"
case"BBGN":"PELLET / BB GUN"
case"BODY":"HANDS / FEET / OTHER"
case"BOMB":"BOMB / EXPLOSIVES"
case"BOTTL":"BOTTLE / BROKEN BOTTLE"
case"CHAN":"CHAIN"
case"CHEM":"CHEMICALS"
case"CLUB":"CLUB"
case"FLAM":"OPEN FLAME"
case"GAS":"GASOLINE / ACCELERANT"
case"GLAS":"GLASS OBJECT"
case"GUN":"UNKNOWN TYPE FIREARM"
case"GUNH":"HANDGUN"
case"GUNR":"RIFLE"
case"GUNS":"SHOTGUN"
case"KITUT":"KITCHEN UTENCILS"
case"KNIFE":"POCKET / FIXED BLADE KNIFE"
case"NUNCH":"NUNCHUKA STICKS"
case"OTH":"OTHER"
case"PIPE":"PIPE / TIRE IRON"
case"RAZR":"RAZOR"
case"ROCK":"ROCK / BRICK"
case"SACK":"SACK / BAG"
case"SIMU":"SIMULATED WEAPON"
case"TOOLS":"WRENCH / HAMMER / ETC."
case" ":"NOT ENTERED IN ARS"
Phil