Jump to content

PCM/inquireList


Recommended Posts

I'm using the to prompt the operator with a two option choice.
Their choice will be displayed on the report via a Text Element.

Is there and easier way to do this?

Part_Type = inquireList("Are you running the Master Part or Production?","Master_Part","Production")
selectCase Part_Type
case "Master_Part"
getRecordHead("partid","Master_Part")
case "Production"
getRecordHead("partid","Production")

endSelect
Link to comment
https://qualityforum.zeiss.com/topic/14682-pcminquirelist/
Share on other sites

I would say that PCM is similar in some ways to VBA. I took the class last year, and am still scratching the surface. It is a very powerful tool. I would recommend it, especially if you have part families (Same geometry, different sizes). Say you have a part family of 12 sizes. With PCM, one program measures them all.
Link to comment
https://qualityforum.zeiss.com/topic/14682-pcminquirelist/#findComment-77344
Share on other sites

Sorry about that. I was looking at it and realized a small error. I had "getRecorHead" should be setRecordHead" Then I got rid of the text element because with the setRecordHead, it automatically goes to the report header. Back to my initial question, is there an easier way to do this?

Part_Type = inquireList("Are you running the Master Part or Production?","Master_Part","Production")
selectCase Part_Type
case "Master_Part"
setRecordHead("partid","Master_Part")
case "Production"
setRecordHead("partid","Production")

endSelect
Link to comment
https://qualityforum.zeiss.com/topic/14682-pcminquirelist/#findComment-77350
Share on other sites

Please sign in to view this quote.

Its kinda close but not really the same.
the 1 thing i don't like about PCM is there is little to no "error fixing" within the program, so you'll have a command like inquirelist() and it wont work and nothing will tell you what you did wrong and nothing will change color to show that the command needs a capital letter in the second word inquireList().
PCM is great as long as you don't need any help with it......

You should trick your boss into ordering it, tell him you can do a lot of important things with it, then when you get it just do what you want to do instead.
Link to comment
https://qualityforum.zeiss.com/topic/14682-pcminquirelist/#findComment-77362
Share on other sites

Please sign in to view this quote.

I think you are in the correct way... my suggestion is to make it more difficult for yourself, then if you fail, only you will know it; on the other hand if you have success you will impress your requesters…
Of course there is always a limit, in my case sometimes I offer unnecessary ideas, but later when is needed we have the solution available..

In our programs we have a lot of attributes in each measuring. Years ago we added all the probe calibration data and temperature in order to detect sources of variation… after was requested to add the name of the operative System, RAM, Processor, IP address and program version. The management is very interested in the KPIs that we generated, mainly because our machines are worldwide distributed.
Link to comment
https://qualityforum.zeiss.com/topic/14682-pcminquirelist/#findComment-77364
Share on other sites

Please sign in to view this quote.

If your qeustion is regarding the code it self, then yes. Your code is not wrong, but suboptimal.

Here is a suggestion:
setRecordHead("partid", inquireList("Are you running the Master Part or Production?","Master_Part","Production"))
Try to avoid flow control like "if" and "case" syntax when it's not required.
Link to comment
https://qualityforum.zeiss.com/topic/14682-pcminquirelist/#findComment-77366
Share on other sites

Yes they have modified the code by adding code.

But it is C++ so mush so that it installs all of this during the installation of calypso
And if you are having problems install older versions of calypso it is the C++ and SQL server likely causing your problem.
If I steal someone's idea and change 10th% I can patent it to. Just like Winklevoss brothers idea being stolen by Facebook founder Mark Zuckerberg

But I'm an Idiot that doesn't know anything. But Calypso needs all the right version of C++ to run

Capture.PNG

Link to comment
https://qualityforum.zeiss.com/topic/14682-pcminquirelist/#findComment-77382
Share on other sites

×
×
  • Create New...