Hello all,
Some little things I was curious about. Can't really figure our the syntax of.
Start of my script. From there I go into this.
I use the above function to pull in Variables I have hardcoded in the program and use to display in a form later on in the script. It currently works great.
However if I change the format of the variable it starts to get screwy.
Currently I have the Variables laid out as.
If i change the variables to inlcude a Variable or alter the layout in anyway, the string doesn't compute properly.
I found a vb function for "GetRightSideOfExpression" in the help section. How would i go about implementing it?
Does someone have a better method of pulling in a Variable value?
Version 4.3.
Some little things I was curious about. Can't really figure our the syntax of.
Code:
Sub Main 'PCDMIS COMMANDS assignment Dim App, Part, Cmds, Cmd AsObject Set App = CreateObject("PCDLRN.Application") Set Part = App.ActivePartProgram Set Cmds = Part.Commands
Code:
ForEach Cmd In Cmds If Cmd.Type = ASSIGNMENT Then If Cmd.GetText(DEST_EXPR, 0) = "CMMPROGRAM" Then blr= Cmd.GetText( SRC_EXPR, 0) bll= Len(blr) Prognam=Mid(blr,2,bll-2) Cmd.ReDraw EndIf End If
I use the above function to pull in Variables I have hardcoded in the program and use to display in a form later on in the script. It currently works great.
However if I change the format of the variable it starts to get screwy.
Currently I have the Variables laid out as.
Code:
$$ NO,==================================================== ,PART INFORMATION: ,CMMPROGRAM=Part # & what is being checked ,PRINTNUM=Print # ,PRINTREV=Print Rev. ,PARTNAM=Part Name ,PARTNUM=Is Part # used in-house, may be the same as Print # ,==================================================== ASSIGN/CMMPROGRAM="A Nut Op 1" ASSIGN/PRINTNUM="534543" ASSIGN/PRINTREV="A" ASSIGN/PRINTREV1=PRINTNUM+", Rev. "+PRINTREV ASSIGN/PARTNAM="54w643653" ASSIGN/PARTNUM="4356363ty3y"
I found a vb function for "GetRightSideOfExpression" in the help section. How would i go about implementing it?
Does someone have a better method of pulling in a Variable value?
Version 4.3.
Comment