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

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

From: Doug Stemen <stemenda@...>
Date: Fri, 01 Oct 1999 06:27:56 -0400

Chris Stasny wrote:

> >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)
>
> And how did it work when you dimmed S% ?

No error, but result is 0.