September 25, 2020, 12:51:34 pm


IonicWind Snippit Manager 2.xx Released!  Install it on a memory stick and take it with you!  With or without IWBasic!

When working with fonts I ran into this.

Started by TexasPete, November 26, 2010, 07:38:46 am

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.


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


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.



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.

Texas Pete

Special Thanks to Graham for his suggestion.

texas pete