Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Clarion > Writing file ca...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 1 Topic 8995 of 9143
Post > Topic >>

Writing file causes GPF error

by Jsan618 <tcs@[EMAIL PROTECTED] > Nov 13, 2007 at 08:00 PM

The following code will generate the pages.  I have to press 'No' to a
GPF error because I am having to use Close rather than
Filemanager.Close()   I can't seem to get the module to work
correctly.  What is wrong?  I am about to rewrite in VB and leave
Clarion due to some of the problems and annoyances I keep running
into.

C5.5.08
~~~~~~~~~~~~~~~~~~~~~~~~~
loop picval = 2 to glo_pages
  ASCFILENAME = 'C:\temp\' & Clip(glo_stock_no) & '_' &
format(picval,@[EMAIL PROTECTED]
) & '.htm'

  Open(ASCFile)             !  create filename to store html code to
  IF ERRORCODE() = 2        ! File doesn't exist
     CREATE(ASCFile)
     open(ASCFile)
  END

! Code for Heading on subpages
! Code for proper picture on the page
! Code for 2 Hover Buttons
! Code for Footer - End of Page

  close(ascfile)

end ! loop

!~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ End of Subpages generator


!~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Start of Main Page generator

! Code Variable Setup
! create file name to store main html code to

  Open(ASCFile)             !  create filename to store html code to
  IF ERRORCODE() = 2        ! File doesn't exist
     CREATE(ASCFile)
     open(ASCFile)
  END

! Code for common stuff on page top
! Code for full rows, Do full rows
! Code for last row
! Code for 3 hover buttons, common from here on
! Footer


  close(ascfile)


! Update generation field on vehicle record
VEH:Generated= Today()
Display
 




 1 Posts in Topic:
Writing file causes GPF error
Jsan618 <tcs@[EMAIL PR  2007-11-13 20:00:03 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat Oct 11 21:19:04 CDT 2008.