FMP10.0.2.201 shuts down after script trigger
Description of the issue
FM 10 v2, six licencesWindows XPNEC Versa M380 I have a field (part_edit) that runs a script trigger on exit. The script runs well and sets other field values in different tables.However, if this field is selected but left blank, exiting causes the FM file to shut down. If a value is in this field, it does not happen. I have tried an IF function to trap it i.e. if[isEmpty(job_card::part_edit) goto field **** but this does not work. The script If[ Isempty(JOB_CARD::part_qty) or (JOB_CARD::part_qty=0) or (JOB_CARD::part_qty=" ")Show custom Dialog [Title: "repair Number"; Message:"You must enter a quantity for the parts used. Enter a number into the quantity field, then reselect parts description.";Buttons: "OK" ]End IfIf [ IsValid (JOB_CARD::part_edit)]Set Field [JOB_CARD::part_number;JOB_CARD::part_edit]End IfIf [IsValid(JOB_CARD::part_number) ] Insert Calculated Result [ JOB_CARD::part_description; Case(JOB_CARD::part_number=PARTS_INVENTORY::part_number; PARTS_INVENTORY::description)] [Select] Insert Calculated Result [ JOB_CARD::part_description; Case(JOB_CARD::part_number=PARTS_INVENTORY::part_number; PARTS_INVENTORY::cost)] [Select]End Ifand more... but the problem is at the start here.