IonicWind Software

Creative Basic => General Questions => Topic started by: TexasPete on November 26, 2010, 07:38:46 AM

Title: When working with fonts I ran into this.
Post by: TexasPete on November 26, 2010, 07:38:46 AM

When working with fonts . I ran into the following error message. It said that "VAL" was not a defined variable. I have checked all the other variables they are defined and they are global. In the main module it did not return an error message for the same line of code:

Manual Example: SetFont window,typeface, weight {,flags| Charset}{,ID}
I am not using this the change a control.


setfont Win2,FontArray$[FontArrayIndex],VAL(NumericArray$[FontNumberIndex]),Number,FontWeight[FontNumberIndex],TextDecorationCB[TextDecorationIndex]|LanguageSet[languageIndex]

Are there any takers.

Thanks Texas Pete
Title: Re: When working with fonts I ran into this.
Post by: whitenite1 on November 26, 2010, 09:21:47 AM
Hey TexasPete..
  Maybe I can help with with this one. I've had a similar problem. Mine was that RND was not defined. The answer was that I had forgotten a ending quote, comma or semicolon earlier in the program. After fixing that, no more error. So look for a forgotten quote, etc., and that should fix it.

whitenite1
Title: Re: When working with fonts I ran into this.
Post by: TexasPete on November 27, 2010, 08:29:23 AM
The whiteknight got it. It had nothing to do with "val error" at all.  About four lines up there was a quote that had not been closed.

Thanks
Texas Pete

Special Thanks to Graham for his suggestion.

Thanks
texas pete