HP3000-L Archives

April 1998, Week 3

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
John Zoltak <[log in to unmask]>
Reply To:
John Zoltak <[log in to unmask]>
Date:
Tue, 21 Apr 1998 13:01:49 -0400
Content-Type:
text/plain
Parts/Attachments:
text/plain (49 lines)
:deletevar fc
           ^
Variable name not found in variable table. (CIWARN 8101)
:setvar fc finfo("orders","file code")
:calc typeof(fc)
1, $1, %1

Its an integer!

John Zoltak
North American Mfg Co

> -----Original Message-----
> From: Donna Garverick [SMTP:[log in to unmask]]
> Sent: Tuesday, April 21, 1998 12:51 PM
> To:   [log in to unmask]
> Subject:      Re: [HP3000-L] A bug in FINFO or HELP FINFO
>
> Leonard S. Berkowitz wrote:
>
> >  9    FILE CODE MNEMONIC          String         File code of disk
> file
> >       FMTFCODE
> >       FILE CODE
> >
> > -9    FCODE                       Integer        File code of disk
> file
> >       INTFCODE
> >
> > Then I did the following:
> >
> > :SETVAR FC  FINFO ("ZMS001","FILE CODE")
> > :SHOWVAR FC
> > FC = 1052
>
> hmmm, i wondering fc's value is numeric or string.  it can
> be devilishly hard to tell if a ci variable is numeric or string
> simply be looking at it.  i'd suggest going one step
> farther and doing this:
>   :setvar my_test typeof(!fc)
>   :showvar my_test
> 0 = not set/available, 1 = integer, 2 = string, 3 = boolean
>          - d
> --
> Donna Garverick     Sr. System Programmer
> 925-210-6631        [log in to unmask]
>
> >>>MY opinions, not Longs Drug Stores'<<<<

ATOM RSS1 RSS2