Modification du contenu du champ de valeur pour utiliser des unités impériales
Option avancée pour vérifier si des unités impériales sont utilisées :
GetValue("ADVANCED_OPTION.XS_IMPERIAL")==TRUE
Appel de chaîne traduit pour texte multilingue :
GetValue("TranslatedText("albl_Diameter_")")
Formatage des unités :
format(GetValue("DIAMETER"),"Length","inch-frac", 1/16)
format(GetValue("DIAMETER"),"Length","mm", 1)
Combinaison de tous les éléments ci-dessus dans une règle :
if GetValue("ADVANCED_OPTION.XS_IMPERIAL")==TRUE then
GetValue("TranslatedText("albl_Diameter_")")+ format(GetValue("DIAMETER"),"Length","inch-frac", 1/16) + " Inches"
else
GetValue("TranslatedText("albl_Diameter_")")+ format(GetValue("DIAMETER"),"Length","mm", 1)+" mm"
endif