For Programmers: Free Programming Magazines  


Home > Archive > Clarion > September 2005 > Re: Creating a file









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: Creating a file
Nelson Kaye

2005-09-23, 6:55 pm

Steve,

I thought, with you guidance that I was home free. However, I am still
evidently doing something wrong. I have the dct file (a DOS file) checked
as Create and turned off create in the app Global properties

In a proc, I want to try opening the file, and if I get an error(i.e., file
does not exist), then I will create one and add a record to the beginning.

Within the proc, I declare the file under other tables. At run time This
causes an
error message of file not found, as I see the system generates a
Relate:DOSFl.Open. If I remove the table declare, then I get many
compile messages relating to the various file coding.

I then OMIT'd out the Relate:DOSFl.Open. However, when I try to create the
file [i.e. CREATE(DOSFl)], I again get the error message 'No Create
Attribute'

Nelson



"steven parker" <sparker@par2.com> wrote in message
news:A921.1127485407.10373@discuss.softvelocity.com...
> Global Properties
> File Control
> Create ... select Create None
>
> Alternately, you can do it file by file in the Individual File Overrides.
>
> --
>
> Steve Parker
> -------------------------------------------
> kb and download center at:
> www.par2.com
> KB: www.par2.com/cws/c5launch.dll/FAQS/THEFAQS.EXE.0
> -------------------------------------------
> Only two things are infinite, the universe and human stupidity, and I'm

not
> sure about the former.
> -- Albert Einstein
>
> "Nelson Kaye" <nkaye1@nyc.rr.com> wrote in message
> news:A921.1127483399.10356@discuss.softvelocity.com...
I'm[color=darkred]
> file
in[color=darkred]
> a
>
>
>



Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2009 codecomments.com