I am creating new e_em_dt detail for 20 Operating parameters from the existing faceplate (e_em_dt) and added Operating parameters( 11- 20) group in next tab and modified script for Parameter description (which need to show on Data entry popup) as below but workspace application error is found in Runmode.
Please see below script and Error screenshot:
Newly added**************************************
lngI1 = 0 For intUpvalue = 1 To 20 ( Previous value is 10) If intUpvalue < 20 Then ( Previous value is 10) strUpvalue = "0" & Trim(Str(intUpvalue)) Else strUpvalue = Trim(Str(intUpvalue)) End If strReqPath = frsreadvalue(ps_nm.CurrentValue & "/PRM/" & StrType & strUpvalue & ".A_$REF", lerror) strReqFormat = frsreadvalue(ps_nm.CurrentValue & "/PRM/" & StrType & strUpvalue & "_FORMAT.A_CV", lerror2) If lerror = 0 And lerror2 = 0 Then iTmp = InStr(strReqPath, "^") iLen = Len(strReqPath) If iTmp > 0 Then strReqPath = Mid(strReqPath, iTmp + 1, iLen) strTemp = frsreadvalue(ps_nm.CurrentValue & "/PRM/" & StrType & strUpvalue & "_D.A_CV", lerror) If lngerror1 = 0 Then If StrType = "OP" And strTemp <> "" Then objDescOP(lngI1).Source = ps_nm.CurrentValue & "/PRM/" & StrType & strUpvalue & "_D.A_CV" objValOP(lngI1).Source = ps_nm.CurrentValue & strReqPath & "." & strReqFormat & "_CV" objValOP(lngI1).Description = strTemp objValOPVw(lngI1).Source = ps_nm.CurrentValue & strReqPath & "." & strReqFormat & "_CV" objValOPVw(lngI1).Description = strTemp End If Else MsgBox "Parameter " & strTemp & " Not Found" End If End If lngI1 = lngI1 + 1 Next intUpvalue 'Newly added**************************************
Run mode Error :
In reply to Matt Stoner: