Displaying option field text value

I am trying to display the text value of an option field and not the numerical value, I am getting the error below. Currently the numerical value does show up on the report. How would i display the text value of the option field

The record Value must belong to 50059 and not 0

LifeCycle.SETRANGE(“Item No.”,“No.”);

IF LifeCycle.FINDLAST THEN

LastLifeCycle := LifeCycle.“Lifecycle Status”

Else LifeCycle:=‘0’;

Case “LastLifeCycle” OF

0: LifeCycle := ‘TEST’;

//1: LifeCycle := ‘B’;

//2: LifeCycle := ‘C’;

//3: LifeCycle := ‘D’;

//4: LifeCycle := ‘E’;

//5: LifeCycle := ‘F’;

//6: LifeCycle := ‘G’;

END;

If you’re trying to display an option value for a record variable that is not the current data item you can enter Format(LifeCycle.“Lifecycle Status”) in the SourceExpr of the text box property.

Also, your code looks a little odd to me. It looks like you’re trying to assign a value to a record variable (LifeCycle) in your case statement. This would generate an error.

Should Else LifeCycle:=‘0’; be

Else LastLifeCycle:=‘0’; ??