Quantcast
Channel: Dynamics User Group
Viewing all articles
Browse latest Browse all 15740

Displaying option field text value

$
0
0

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;


Viewing all articles
Browse latest Browse all 15740

Trending Articles