hexagon logo

Basic Forms automatisation

Hello

I need help with VB form for user input on begining of measurement
We have 32 PCDMIS CMM. We want to a little automated process for measurement and I made one user form for inputting data when we start measuring program.
Form we will use for inputting some data for Q-das database. (In attachment is picture of form).

My problem is keep the data in from after run or after click OK. Form works fine and give us all necessity info and data into tracefileds, but when we run program from beginning we always get totally empty form. That is very hard that operator need to fill everything in form from beginning even if change only for example, sample Id

Can someone please help me with code which will do that, I mean keep the last entered data in form even we leave program or restart pcdmis..

Thank you very much.

Attached Files
Parents
  • Anders, yes I have *.txt files with all data in, see att.. I just stacked here. I can't find where I made a mistake!


    To start with, I would remove the DO/ UNTIL/ in the reading part. The only effect I can see from that is that those lines are all repeated twice, second time around doing (hopefully) nothing... And if the text file contains more lines, some of your PARxx will be from the first part, some from the second.

    Then verify that PAR1 - PAR12 *do* have the right values just before calling the FORM in the actual program. It might be a problem of access rights.

    If everything is OK so far, the problem must be in the FORM, either clearing the fields before or after showing.
Reply
  • Anders, yes I have *.txt files with all data in, see att.. I just stacked here. I can't find where I made a mistake!


    To start with, I would remove the DO/ UNTIL/ in the reading part. The only effect I can see from that is that those lines are all repeated twice, second time around doing (hopefully) nothing... And if the text file contains more lines, some of your PARxx will be from the first part, some from the second.

    Then verify that PAR1 - PAR12 *do* have the right values just before calling the FORM in the actual program. It might be a problem of access rights.

    If everything is OK so far, the problem must be in the FORM, either clearing the fields before or after showing.
Children
No Data