home *** CD-ROM | disk | FTP | other *** search
/ Australian Personal Computer 1999 April / APC443.iso / features / grpware / coldfus / coldfusi.exe / data1.cab / Documentation / snippets / cflock.cfm < prev    next >
Encoding:
Text File  |  1998-10-08  |  731 b   |  26 lines

  1. <!--- This view-only example shows how CFLOCK can be used to guarantee the
  2. consistency of data updates to variables in the Application, Server, and
  3. Session scopes. The following code might be part of Application.cfm. --->
  4. <HTML>
  5. <HEAD>
  6. <TITLE>CFLOCK Example</TITLE>
  7. </HEAD>
  8. <BODY>
  9. <H1>CFLOCK Example</H1>
  10. <P>This view-only example shows how to use CFLOCK.
  11. <P>
  12. See the View Example pane to see the code.
  13. <!---
  14. <CFLOCK TIMEOUT=30>
  15.     <CFIF NOT IsDefined("Application.IsApplicationDataInitialized")>
  16.         <CFSET Application.IsApplicationDataInitialized = TRUE>
  17.         <CFSET Application.ImportantValue = 5>
  18.     </CFIF>
  19. </CFLOCK>
  20. <CFOUTPUT>
  21.     Important value is #Application.ImportantValue#
  22. </CFOUTPUT>
  23. --->
  24. </BODY>
  25. </HTML>
  26.