IonicWind Software

IWBasic => IWB3.x Bug Reports => Resolved Issues => Topic started by: Logman on August 19, 2015, 10:11:52 AM

Title: IWBasic User's Guide - Error in Float Example
Post by: Logman on August 19, 2015, 10:11:52 AM
Click on the HELP menu and then select IWBasic User's Guide.

In the User's Guide select GENERAL PROGRAMMING > FILE OPERATIONS > WRITING TO THE FILE in the TOC

Regarding the 6th code example:


DEF myfile as FILE
DEF fNum as FLOAT
fNum = 3453423.3423
IF OPENFILE(myfile, "C:\\temp\\temp.txt", "W") = 0
   WRITE myfile, iNum
   CLOSEFILE myfile
ENDIF


The example makes the DEF fNum as FLOAT statement and then sets fNum = 3453423.3423.

But then on the 5th line the example shows an integer variable not defined in the example > "i.e. iNum" to be written out to the file. iNum needs to be changed to fNum.

Logman
Title: Re: IWBasic User's Guide
Post by: LarryMc on August 19, 2015, 10:23:02 AM
thanks for reporting the error -- correction made and will appear in next update.
Title: Re: IWBasic User's Guide
Post by: Logman on August 19, 2015, 10:42:12 AM
Thanks Larry.

I know some of these reported errors are nit-picky, but to new users they may seem confusing.

Logman