[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference iosg::all-in-1_v30

Title:*OLD* ALL-IN-1 (tm) Support Conference
Notice:Closed - See Note 4331.l to move to IOSG::ALL-IN-1
Moderator:IOSG::PYE
Created:Thu Jan 30 1992
Last Modified:Tue Jan 23 1996
Last Successful Update:Fri Jun 06 1997
Number of topics:4343
Total number of notes:18308

834.0. "Checking format of .WPL file" by SUBURB::TAFF::Wob (Robert Screene, UK Finance EUC) Tue Jun 09 1992 14:36

Hi,
Does anyone know a way within ALL-IN-1 programming to 
determine if a .WPL file actually contains a valid WPS-PLUS 
format file, against simple incorrect ASCII text.  

The TEXT_FILE and COPY functions don't seem to set 
OA$STATUS if there is merely ASCII text inside the input 
file.   Any ideas of a suitable DSR?

The list function seems to get upset about such files, but 
I don't know how to trap a returned message or to stop the 
output if the file is OK.

Thanks in advance, 
Robert.

p.s. this question was part of the 20/20 topic (642.3), but   
   I hid the question in there quite well!

T.RTitleUserPersonal
Name
DateLines
834.1Stab in the darkMDCRAB::HOWARDOur business is computers not moneyFri Jun 12 1992 08:584
    Can you get TEXT_FILE to tell you the ruler settings?  Won't it tell
    you that there isn't a ruler?
    
    Ben
834.2GET giving a Ruler backKETJE::CAPPELLEMANSThe Dark side of the \FORCEFri Jun 12 1992 16:057
re :-1 Even if i'ts a ASCII file it comes back with
a ruler like
L-------T-------T------T...
and checking for that type of ruler will not help as you can
craete such a Ruler in WPS-PLUS

Pierre
834.3First record TYPE is ruler?SANFAN::LESLIE_DAGreetings & SolutionsMon Jun 15 1992 08:223
    Maybe -.2 has a good idea after all.  I believe if you open the file
    (using TEXT_FILE) the first record would be a ruler.  The record type
    should indicate ruler, maybe this will help?