If unassigned(F.PTR) then open 'f' to F.PTR...
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Doug Chanco
Sent: 02 May 2008 10:21 PM
To: u2-users@listserver.u2ug.org
Subject: [U2] passing file pointers?
Hey all,
In universe 10.1 how can I verify
FILEINFO() will fail if the argument is passed in an unassigned state or is
null.
Therefore, when creating routines that programs written by anyone I will
usually test first with UNASSIGNED and ISNULL before going on to other checks
such as FILEINFO or NUM.
---
u2-users mailing list
Use the Fileinfo routine.
If fileinfo(fv,1) = (if 0 not open, if 1 open)
This checks that is a valid file that is open.
This is good practice to test the file is open before opening, as reopening
the file clears all previous record locks held on that file by that user and
can cause fatal
Ferris
Stamina Software
Visage Better by Design!
-Original Message-
From: [EMAIL PROTECTED] [mailto:owner-u2-
[EMAIL PROTECTED] On Behalf Of David Jordan
Sent: Sunday, 4 May 2008 10:11 PM
To: u2-users@listserver.u2ug.org
Subject: RE: [U2] passing file pointers?
Use the Fileinfo routine
@listserver.u2ug.org
Subject: RE: [U2] passing file pointers?
Wouldn't even BETTER practice be to just ensure that the file is open in
the calling program?
If this is a well used routine that is called for a couple of million
records, then even the overhead of this simple check can quickly mount.
Whilst I agree
Something like this should do the trick
IF ASSIGNED(F.PTR) THEN
STATUS STUFF FROM F.PTR ELSE
* FILE POINTER IS INVALID)
END
END ELSE
* FILE POINTER IS NOT ASSIGNED/OPENED
END
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On
Check out the FILEINFO function
Raul
- Original Message -
From: Doug Chanco [EMAIL PROTECTED]
Sent: 05/02/2008 04:21 PM AST
To: u2-users@listserver.u2ug.org
Subject: [U2] passing file pointers?
Hey all,
In universe 10.1 how can I verify that a file pointer passed via a
subroutine