Trying to have advanced posting tab with the ability to turn chip auger on or off for pocketing routine

Can get the tab to show up in the wizard,but posting does not acknowledge it

So I figure something on line 3 or 2001 is wrong

any help appreciated




3. Tool change
n,spindle_off
n,"M09"
n,program_block_1
n,rapid_move,incremental_coord,"G28","Z0."
n,optional_stop
" "
"(NEXT CUT - NEXT TOOL)"
system_comment
feature_name_comment
" "
n,t,"M06"
n,rapid_move,absolute_coord,work_coord,force_x,xr, force_y,yr,rotary_xyr_angle,,s,spindle_on
n,rapid_move,length_offset,coolant_on
output_rotary_angle



2001. Program Block 1 - Output code M33 or M31

code = MILL_GetUserSelectComboVariable(0) 'Get which item is selected for COMBO_BOX 1
'0 = M33, 1 = M31

'ans = MsgBox("code is " & code) 'Display message box with value of code

Select Case code 'Output the correct string based on user selection
Case 0
MILL_SetReturnString(" M31”)
Case 1
MILL_SetReturnString(" M33”)
End Select