I have a PI point that contains integer numbers 1 thru 50. Each value corresponds to a specific product made on a plant process system. I want to display the NAME of the product on a process book display that corresponds to the value in this PI point.
I am very familiar with VBA programming on Excel and Word, and somewhat familiar with VBA in processbook for simple Display_Open formatting code, but I have not ever programmed something in VBA that would do the above.
I would plan on using a 'Select Case' type of branching code that would populate a VBA variable with the corresponding string value depending on what the point's integer value was at the time.
The problem is I don't know how (and can't figure out from the PI Help documents) to read a point value inside the VBA code itself. What is the syntax for that???
Also, after the string variable is populated, what is the VBA necessary to send the final string variable back to the processbook display? In other words, how do you load the string variable into a field value that is displayed on the processbook display.
Much Thanks, sauerj