Get the OptionString of an option field

Luc_VanDyckLuc_VanDyck Member, Moderator, Administrator Posts: 3,633
edited 2008-08-20 in NAV Tips & Tricks
I don't know if it has been posted before, but today I found this way to retrieve the OptionString values of a field using C/AL code (using NAV 5.0 SP1):
Name              DataType     Subtype    Length
myRecRef	       RecordRef	
myFieldRef	     FieldRef

myRecRef.OPEN(18);  // Table Customer
myFieldRef := myRecRef.FIELD(39);  // Field Blocked
No support using PM or e-mail - Please use this forum. BC TechDays 2024: 13 & 14 June 2024, Antwerp (Belgium)


Sign In or Register to comment.