Thanks for the responses. Following are additional comments. Chris Stasny wrote: > >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? > For the example sent in the original message I had dimmed S$ in an attempt to get this to work. I removed the dim and received the following error message. My toolbox information indicates that I should be able to enter a character rather than the ASCII code. Error: Variable 'S' Not yet Dim'ed Fontwidth%=FN CHARWIDTH(S) > > >-------------------------- > >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 > >t2%=page > > > > I believe that PAGE ejects the page. It does not return a line count > Best, > > -STAZ ~)~ PAGE used by itself does eject the page. However, as explained on page 364 of the FB^3 reference manual, and as implemented in FB II, variable=PAGE returns a line count. If this is changed in FB^3 then what is the equivalent command? Doug Stemen