{ "header": { "version": 1, "type": "record" }, "body": { "record1": { "<1>": "declare function fieldcount, msg, rds_comm\r\n$insert msg_equates\r\n$insert logical\r\n\r\nLayerPromptCnt = get_property( @window, '@LayerPromptCnt' )\r\nLayerControls = get_property( @window, '@LayerControls' )\r\nLayerDataOnWindow = get_property( LayerControls, 'INVALUE' )\r\nconvert @rm to @fm in LayerDataOnWindow\r\nif LayerDataOnWindow = str( @fm, LayerPromptCnt-1 ) then\r\n MsgInfo = ''\r\n MsgInfo = 'You cannot have a blank multi layer RDS...'\r\n MsgInfo = 'H'\r\n Void = msg( '', MsgInfo )\r\n return 0\r\nend else\r\n\tCurLayerNo = get_property( @window, '@CurLayer' )\r\n\tAllLayers = get_property( @window, '@LayerInfo' )\r\n\tif CurLayerNo = fieldcount( AllLayers, char(248) ) then\r\n\t * on last layer trying to add a new\r\n\t * check security\r\n\t \tContinue = false$\r\n\t \t* REMOVE CODE BELOW BY BRYCE MEEK ON 1/15/99 \r\n\t \t* WILL NOT ALLOW NEW LAYERS TO BE ADDED JUST OVERRIDE WHAT IS THERE\r\n \t*if .epi_dopant->enabled = 0 then\r\n\t\t* ValidSecurity = rds_comm( 'OVERRIDE' )\r\n\t\t* if ValidSecurity then\r\n\t\t* Continue = true$\r\n\t * Controls = get_property( @window, '@LayerControls' )\r\n\t\t* Void = set_property( Controls, 'ENABLED', 1 )\r\n\t\t* .recipe_no->enabled = 0\r\n\t\t* end\r\n\t *end else\r\n\t * Continue = true$\r\n\t *end\r\n\t MsgInfo = ''\r\n\t MsgInfo = 'You are on the last multi layer RDS...'\r\n\t MsgInfo = 'H'\r\n\t Void = msg( '', MsgInfo )\r\n\tend else\r\n\t Continue = true$\r\n\tend\r\n\tif Continue then\r\n\t\tAllLayers = fieldstore( AllLayers, char(248), CurLayerNo, 1, LayerDataOnWindow )\r\n\t\tVoid = set_property( @window, '@LayerInfo', AllLayers )\r\n\t\tCurLayerNo += 1\r\n\t\tVoid = set_property( @window, '@CurLayer', CurLayerNo )\r\n\t\t* now display the next RDS layer\r\n\t\tNextLayerData = field( AllLayers, char(248), CurLayerNo )\r\n\t\t*\r\n\t\tValueCnt = fieldcount( NextLayerData, @fm )\r\n\t\t* so set_property does not propagate\r\n\t\tif ValueCnt < LayerPromptCnt then\r\n\t\t NextLayerData := str( @fm, LayerPromptCnt-ValueCnt-1 )\r\n\t\tend\r\n\t\t* ok\r\n\t\tNewLayer = false$\r\n\t\tif NextLayerData = str( @fm, LayerPromptCnt-1 ) then\r\n\t\t NewLayer = true$\r\n\t\tend\r\n\t\tconvert @fm to @rm in NextLayerData\r\n\t\tVoid = set_property( LayerControls, 'INVALUE', NextLayerData )\r\n\t\tNumLayers = fieldcount( AllLayers, char(248) ) + NewLayer\r\n\t .layer_desc->text = CurLayerNo+1:' of ':NumLayers+1\r\n\t void = set_property( @window:'.EPI_TIME', 'FOCUS', 1 ) \r\n\t\tVoid = rds_comm( 'CALC_ALL_RES' )\t \r\n Void = rds_comm( \"SET_ML_LIMITS\" )\t\t\r\n\t\tif .res_units->text = 'ê/Ü' then\r\n\t\t * ohms squared use sheetrho for label and calculations\r\n\t\t .thick_resrho_label->text = 'Thickness:SheetRHO:' \r\n\t\tend else\r\n\t\t .thick_resrho_label->text = 'Thickness:Resistivity:' \r\n\t\tend \r\n\tend\r\nend\r\n\r\nRETURN 0" } } }