WordToStr error definition in help file

General discussion on mikroBasic PRO for PIC.
Post Reply
Author
Message
Kalain
Posts: 1093
Joined: 11 Mar 2005 18:26
Location: Aubenas, France

WordToStr error definition in help file

#1 Post by Kalain » 24 Apr 2009 21:09

Hi,

Here is what's written in help file about WordToStr instruction :

Code: Select all

sub procedure WordToStr(dim input as word, dim byref output as string[4])
.....
....
dim t as word
    txt as string[4]
...
t = 437
WordToStr(t, txt)  ' txt is "  437" (two blanks here)
but it should be written "string[5]" instead of "string[4]"
Alain

janni
Posts: 5373
Joined: 18 Feb 2006 13:17
Contact:

#2 Post by janni » 25 Apr 2009 14:29

Seems to be a systematic mistake for all conversion routines' prototypes. It certainly should be "string[3]" for ByteToStr, "string[4]" for ShortToStr, "string[5]" for WordToStr, etc.

User avatar
marko.ziv
mikroElektronika team
Posts: 531
Joined: 06 Dec 2007 10:11
Contact:

#3 Post by marko.ziv » 27 Apr 2009 13:02

Correct.
Help section for Conversion libraries will be fixed for the coming release of mikroBasic PRO for PIC.

Best Regards.

Post Reply

Return to “mikroBasic PRO for PIC General”