Sign up on the Revelation Software website to have access to the most current content, and to be able to ask questions and get answers from the Revelation community

At 11 APR 2001 07:33:58PM Donna wrote:

Is there a way to have a calculated symbolic field show up in a fixed fmc without a global?

Thanks


At 12 APR 2001 09:02AM Don Miller - C3 Inc. wrote:

Donna ..

Sure..do it all the time. Here is an example of a symbolic dict that will to this:

Name UP_COST

OPEN 'PARTS' TO PARTS ELSE

@ANS=NO PARTS'
GOTO DONE

END

@ANS=' ;* CLEAR FOR LATER

..DO MY PARTS COST CALCULATION HERE .. I WON'T BORE YOU WITH IT

..IT WILL SET @ANS TO THE COST. I ALSO SAVE IT IN THE VAR CALCCOST

LOCK PARTS,@ID THEN

@RECORD=CALCCOST  ;* UPDATE A REAL FIELD AND WRITE IT BACK
WRITE @RECORD ON PARTS,@ID ELSE
   @ANS=WRITE ERROR ':@ID  ;* CATCH THE WRITE ERROR
END
UNLOCK PARTS,@ID

END ELSE

@ANS=LOCKED ':@ID  ;* CATCH THE LOCK ERROR

END

DONE:

Hope this is useful

Don Miller

C3 Inc.

View this thread on the forum...

  • third_party_content/community/commentary/forums_nonworks/46501c1a6cb4b7b585256a2b0081740d.txt
  • Last modified: 2023/12/28 07:40
  • by 127.0.0.1