11 lines
2.5 KiB
JSON
11 lines
2.5 KiB
JSON
{
|
|
"header": {
|
|
"version": 1,
|
|
"type": "record"
|
|
},
|
|
"body": {
|
|
"record1": {
|
|
"<1>": "declare function fieldcount, msg, rds_comm\r\n$insert msg_equates\r\n\r\nCurLayerNo = get_property( @window, '@CurLayer' )\r\nif CurLayerNo = 1 then\r\n MsgInfo = ''\r\n MsgInfo<mtext$> = 'You are on the first multi layer RDS...'\r\n MsgInfo<micon$> = 'H'\r\n Void = msg( '', MsgInfo )\r\nend else\r\n\tLayerPromptCnt = get_property( @window, '@LayerPromptCnt' )\r\n\tLayerControls = get_property( @window, '@LayerControls' )\r\n\tLayerDataOnWindow = get_property( LayerControls,'INVALUE' )\r\n\tAllLayers = get_property( @window, '@LayerInfo' )\r\n\tconvert @rm to @fm in LayerDataOnWindow\r\n\tif ( LayerDataOnWindow = str( @fm, LayerPromptCnt-1 ) ) and ( CurLayerNo < fieldcount( AllLayers, char(248) ) ) then\r\n\t MsgInfo = ''\r\n\t MsgInfo<mtext$> = 'You cannot have a blank multi layer RDS...'\r\n\t MsgInfo<micon$> = 'H'\r\n\t Void = msg( '', MsgInfo )\r\n\t return 0\r\n\tend else\r\n\t\tif LayerDataOnWindow = str( @fm, LayerPromptCnt-1 ) then\r\n\t\t * null do not save\r\n\t\tend else\r\n \t\t* there is rds info for this layer save to common\r\n \t\t*LAYERDATAONWINDOW\r\n\t\t AllLayers = fieldstore( AllLayers, char(248), CurLayerNo, 1, LayerDataOnWindow )\r\n\t\t Void = set_property( @window, '@LayerInfo', AllLayers )\r\n end\t\t \r\n\t\tCurLayerNo -= 1\r\n\t\tVoid = set_property( @window, '@CurLayer', CurLayerNo )\r\n\t\t* now display the previous layer\r\n\t\tPrevLayerData = field( AllLayers, char(248), CurLayerNo )\r\n\t\t*\r\n\t\tValueCnt = fieldcount( PrevLayerData, @fm )\r\n\t\t* so set_property does not propagate\r\n\t\tif ValueCnt < LayerPromptCnt then\r\n\t\t PrevLayerData := str( @fm, LayerPromptCnt-ValueCnt-1 )\r\n\t\tend\r\n\t\t* ok\r\n\t\tconvert @fm to @rm in PrevLayerData\r\n\t\tVoid = set_property( LayerControls, 'INVALUE', PrevLayerData )\r\n\t\tNumLayers = fieldcount( AllLayers, char(248) )\r\n\t .layer_desc->text = CurLayerNo+1:' of ':NumLayers+1\r\n void = set_property( @window:'.EPI_TIME', 'FOCUS', 1 ) \r\n\t\tVoid = rds_comm( 'CALC_ALL_RES' )\r\n\t\tVoid = rds_comm( \"SET_ML_LIMITS\" )\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\nreturn 0\r\n"
|
|
}
|
|
}
|
|
} |