[futurebasic] Re: [FB] FB^3 conversion questions

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : September 1999 : Group Archive : Group : All Groups

From: Chris Stasny <staz@...>
Date: Thu, 30 Sep 1999 09:24:29 -0500
>I am getting two errors that I don't understand.
>Can someone give me some guidence on how to fix these?
>Preferences are set to all variables must be dimmed & no redimming
>1. CHARWIDTH is a toolbox function that returns an integer and worked
>under FB II. Fontwidth% is dimmed in the local function. I have tried
>enclosing S in quaotation markes and putting S in a variable but
>nothing works. I checked with Inside Macintosh at Apple and I don't
>think the toolbox call changed.
>Error: String used when a Number was expected.
>Fontwidth%=FN CHARWIDTH(S)

It works for me. Did you dimension S$ in some earlier line?

>2. Page is an FB^3 function that tells the number of lines printed. It
>is highlighted in the editor as an FB^2 function and in caps, but this
>error message displays it as small case.
>Error: Variable 'PAGE' Not yet Dim'ed

I believe that PAGE ejects the page. It does not return a line count.


-STAZ  ~)~

800.348.2623 Orders  http://www.stazsoftware.com
228.255.7086 FAX     mailto:staz@...