Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Bug Reports
Which manual do you refer to? I never find a useful manual within the latest fbc release, not to say an up-to-date manual. Do you all surf the internet for document while programming? I suggest to put documents on http://fbc.sourceforge.net/about.php into the zippd file- even if they are lack of update.


Another topic. Here is a code segment
Code:
a$ = "hello" + CHR$(0) + "world"
PRINT "a$="; a$, "len(a$)="; LEN(a$)

b$ = LEFT$(a$, 5) + RIGHT$(a$, 5)
PRINT "b$="; b$, "len(b$)="; LEN(b$)

PRINT LEN("hello")

TYPE u
        q AS INTEGER
        w AS STRING * 5
END TYPE
DIM r AS u
PRINT "len of type u="; LEN(u)
PRINT "len of r="; LEN(r)
qb gives
Quote:a$=hello world len(a$)= 11
b$=helloworld len(b$)= 10
5
len of type u= 4 <- why is it 4 other than 7?
len of r= 7
so guess what does fbc say?

I find
Quote:FB: Real length is the given len plus one (null-char), even on TYPE fields
Strings are filled with nulls (char 0), so strings can't contain chr$(0) chars

on http://fbc.sourceforge.net/about.php?section=diffs. so is the answer
Quote:a$=hello len(a$)= 6 <- given len+1=6, well perhaps your answer is 5
b$=hellohello len(b$)= 10
5
len of type u= ?? <- I can not think it out.
len of r= 10

?
No! The real answer is
Quote:a$=hello len(a$)= 11
b$=helloworld len(b$)= 10
5
len of type u= 12
len of r= 10 <- 4+5+len of padding 0?
the "hello" on 1st line meets "strings can't contain chr$(0) chars", but len(a$) and the 2nd line say that it is wrong.

First, is there anyone can explain what does LEN(UDT) mean in QB and fbc, and why is LEN(UDT) not equal to LEN(UDT var), (in C, sizeof(UDT)==sizeof(UDT var), right?) ?

No, please do not misunderstand me and do not fix the LEN function. I do not like the way that C treates string( chr$(0) is only used to end a string), so can you let fbc be more Qb-ish by fixing PRINT, and fix LEN on UDT and UDT-var for the Qb-ish reason and consistant reason( len(integer)=4 in fbc)?

thank you.
Reply


Messages In This Thread
Bug Reports - by marzecTM - 12-02-2004, 08:18 AM
Bug Reports - by VonGodric - 12-02-2004, 10:06 AM
Bug Reports - by v3cz0r - 12-02-2004, 10:41 AM
Bug Reports - by SJ Zero - 12-02-2004, 11:32 AM
Bug Reports - by v3cz0r - 12-02-2004, 12:11 PM
Bug Reports - by Z!re - 12-02-2004, 02:01 PM
Bug Reports - by Z!re - 12-02-2004, 02:13 PM
Bug Reports - by v3cz0r - 12-02-2004, 05:21 PM
Bug Reports - by Z!re - 12-02-2004, 08:32 PM
Bug Reports - by Z!re - 12-02-2004, 08:36 PM
Bug Reports - by v3cz0r - 12-02-2004, 09:05 PM
Bug Reports - by Z!re - 12-02-2004, 09:05 PM
Bug Reports - by v3cz0r - 12-02-2004, 09:09 PM
Bug Reports - by Z!re - 12-02-2004, 09:13 PM
Bug Reports - by Jofers - 12-02-2004, 09:15 PM
Bug Reports - by adosorken - 12-02-2004, 10:48 PM
Bug Reports - by v3cz0r - 12-02-2004, 11:44 PM
Bug Reports - by barok - 12-03-2004, 06:06 AM
Bug Reports - by Jofers - 12-03-2004, 07:31 AM
Bug Reports - by barok - 12-03-2004, 07:39 AM
Bug Reports - by Jofers - 12-03-2004, 07:51 AM
Bug Reports - by ShadowWolf - 12-03-2004, 08:10 AM
Bug Reports - by marzecTM - 12-03-2004, 08:14 AM
Bug Reports - by Z!re - 12-03-2004, 08:20 AM
Bug Reports - by marzecTM - 12-03-2004, 08:22 AM
Bug Reports - by ShadowWolf - 12-03-2004, 08:26 AM
Bug Reports - by Z!re - 12-03-2004, 08:33 AM
Bug Reports - by marzecTM - 12-03-2004, 08:38 AM
Bug Reports - by ShadowWolf - 12-03-2004, 08:41 AM
Bug Reports - by marzecTM - 12-03-2004, 08:45 AM
Bug Reports - by relsoft - 12-03-2004, 08:48 AM
Bug Reports - by ShadowWolf - 12-03-2004, 09:14 AM
Bug Reports - by marzecTM - 12-03-2004, 09:20 AM
Bug Reports - by barok - 12-03-2004, 10:26 AM
Bug Reports - by relsoft - 12-03-2004, 12:50 PM
Bug Reports - by v3cz0r - 12-03-2004, 04:19 PM
Bug Reports - by marzecTM - 12-03-2004, 05:49 PM
Bug Reports - by barok - 12-03-2004, 07:36 PM
Bug Reports - by v3cz0r - 12-03-2004, 08:27 PM
Bug Reports - by Jofers - 12-03-2004, 08:57 PM
Bug Reports - by KiZ - 12-03-2004, 09:10 PM
Bug Reports - by v3cz0r - 12-03-2004, 09:45 PM
Bug Reports - by KiZ - 12-03-2004, 10:07 PM
Bug Reports - by v3cz0r - 12-03-2004, 10:21 PM
Bug Reports - by KiZ - 12-03-2004, 10:40 PM
Bug Reports - by v3cz0r - 12-03-2004, 11:17 PM
Bug Reports - by marzecTM - 12-03-2004, 11:22 PM
Bug Reports - by v3cz0r - 12-03-2004, 11:24 PM
Bug Reports - by na_th_an - 12-06-2004, 12:33 AM
Bug Reports - by Jofers - 12-06-2004, 12:49 AM
Bug Reports - by v3cz0r - 12-06-2004, 01:20 AM
Bug Reports - by Z!re - 12-06-2004, 01:28 AM
Bug Reports - by Jofers - 12-06-2004, 01:47 AM
Bug Reports - by Z!re - 12-06-2004, 01:48 AM
Bug Reports - by Z!re - 12-06-2004, 02:48 AM
Bug Reports - by Jofers - 12-06-2004, 02:51 AM
Bug Reports - by v3cz0r - 12-06-2004, 02:54 AM
Bug Reports - by Z!re - 12-06-2004, 02:54 AM
Bug Reports - by na_th_an - 12-06-2004, 05:28 AM
Bug Reports - by na_th_an - 12-06-2004, 06:00 AM
Bug Reports - by v3cz0r - 12-06-2004, 06:42 AM
Bug Reports - by na_th_an - 12-06-2004, 06:44 AM
Bug Reports - by Sterling Christensen - 12-06-2004, 08:28 AM
Bug Reports - by v3cz0r - 12-06-2004, 08:33 AM
Bug Reports - by na_th_an - 12-06-2004, 09:20 AM
Bug Reports - by adosorken - 12-06-2004, 09:32 AM
Bug Reports - by SJ Zero - 12-06-2004, 09:39 AM
Bug Reports - by na_th_an - 12-06-2004, 09:43 AM
Bug Reports - by adosorken - 12-06-2004, 10:07 AM
Bug Reports - by v3cz0r - 12-06-2004, 10:15 AM
Bug Reports - by Sterling Christensen - 12-06-2004, 12:04 PM
Bug Reports - by Dr_Davenstein - 12-06-2004, 12:13 PM
Bug Reports - by relsoft - 12-06-2004, 12:40 PM
Bug Reports - by adosorken - 12-06-2004, 06:07 PM
Bug Reports - by v3cz0r - 12-06-2004, 07:19 PM
Bug Reports - by adosorken - 12-06-2004, 09:10 PM
Bug Reports - by Blitz - 12-06-2004, 09:22 PM
Bug Reports - by Z!re - 12-06-2004, 10:32 PM
Bug Reports - by Z!re - 12-06-2004, 10:49 PM
Bug Reports - by v3cz0r - 12-06-2004, 11:16 PM
Bug Reports - by adosorken - 12-07-2004, 12:59 AM
Bug Reports - by na_th_an - 12-07-2004, 01:30 AM
Bug Reports - by v3cz0r - 12-07-2004, 03:15 AM
New bug? - by red_Marvin - 12-07-2004, 03:46 AM
Bug Reports - by Z!re - 12-07-2004, 04:01 AM
Bug Reports - by red_Marvin - 12-07-2004, 04:05 AM
Bug Reports - by Blitz - 12-07-2004, 04:22 AM
Bug Reports - by na_th_an - 12-07-2004, 04:51 AM
Bug Reports - by v3cz0r - 12-07-2004, 07:53 AM
Bug Reports - by SJ Zero - 12-07-2004, 11:48 AM
Bug Reports - by na_th_an - 12-07-2004, 09:26 PM
Bug Reports - by Z!re - 12-08-2004, 02:33 AM
Bug Reports - by v3cz0r - 12-08-2004, 02:47 AM
DIM SHARED - by Badjas - 12-08-2004, 04:22 AM
and.. - by Badjas - 12-08-2004, 04:27 AM
Bug Reports - by v3cz0r - 12-08-2004, 05:08 AM
ooops - by Badjas - 12-08-2004, 05:17 AM
hard crash - by Badjas - 12-08-2004, 05:38 AM
Bug Reports - by v3cz0r - 12-08-2004, 06:08 AM
Bug Reports - by adosorken - 12-08-2004, 06:26 AM
Bug Reports - by Jofers - 12-08-2004, 07:25 AM
Bug Reports - by v3cz0r - 12-08-2004, 07:39 AM
Bug Reports - by Jofers - 12-08-2004, 09:10 AM
Bug Reports - by Z!re - 12-08-2004, 09:48 AM
Bug Reports - by adosorken - 12-08-2004, 09:48 AM
Bug Reports - by Jofers - 12-08-2004, 10:13 AM
Bug Reports - by CGI Joe - 12-08-2004, 05:44 PM
Bug Reports - by Z!re - 12-08-2004, 07:01 PM
Bug Reports - by CGI Joe - 12-08-2004, 09:21 PM
Bug Reports - by Z!re - 12-08-2004, 09:54 PM
Bug Reports - by aetherfox - 12-08-2004, 11:04 PM
Bug Reports - by v3cz0r - 12-09-2004, 04:18 AM
Bug Reports - by na_th_an - 12-09-2004, 06:03 AM
Bug Reports - by adosorken - 12-09-2004, 08:59 AM
Bug Reports - by Badjas - 12-11-2004, 04:41 AM
Bug Reports - by Jofers - 12-11-2004, 06:32 AM
Bug Reports - by marzecTM - 12-11-2004, 06:39 AM
Bug Reports - by VonGodric - 12-11-2004, 06:58 AM
Bug Reports - by v3cz0r - 12-11-2004, 09:48 AM
Bug Reports - by Badjas - 12-11-2004, 10:35 PM
Bug Reports - by VonGodric - 12-12-2004, 09:15 AM
Bug Reports - by na_th_an - 12-29-2004, 09:27 PM
Bug Reports - by v3cz0r - 12-30-2004, 08:22 AM
Bug Reports - by na_th_an - 12-31-2004, 08:19 AM
Bug Reports - by Ryan - 12-31-2004, 09:46 AM
Bug Reports - by v3cz0r - 12-31-2004, 12:44 PM
Bug Reports - by Sterling Christensen - 12-31-2004, 01:15 PM
Bug Reports - by VonGodric - 12-31-2004, 07:42 PM
Bug Reports - by adosorken - 12-31-2004, 07:51 PM
Bug Reports - by VonGodric - 12-31-2004, 07:55 PM
Bug Reports - by adosorken - 12-31-2004, 07:58 PM
Bug Reports - by na_th_an - 12-31-2004, 08:03 PM
Bug Reports - by v3cz0r - 12-31-2004, 09:06 PM
Bug Reports - by Jotz - 01-01-2005, 05:17 AM
Bug Reports - by VonGodric - 01-01-2005, 06:09 AM
Bug Reports - by Jotz - 01-01-2005, 09:23 AM
Bug Reports - by v3cz0r - 01-01-2005, 09:30 AM
Bug Reports - by VonGodric - 01-01-2005, 08:20 PM
Bug Reports - by v3cz0r - 01-01-2005, 08:45 PM
Bug Reports - by VonGodric - 01-01-2005, 08:54 PM
Bug Reports - by theuserbl - 01-02-2005, 07:48 PM
Bug Reports - by Z!re - 01-02-2005, 11:50 PM
Bug Reports - by VonGodric - 01-03-2005, 12:28 AM
Bug Reports - by lkd85 - 01-03-2005, 02:06 AM
Bug Reports - by v3cz0r - 01-03-2005, 04:26 AM
Bug Reports - by lkd85 - 01-03-2005, 10:21 AM
Bug Reports - by barok - 01-03-2005, 11:47 AM
Bug Reports - by Sterling Christensen - 01-03-2005, 12:47 PM
Bug Reports - by barok - 01-03-2005, 09:06 PM
Bug Reports - by DrV - 01-04-2005, 05:17 AM
Bug Reports - by barok - 01-04-2005, 06:20 AM
Bug Reports - by retsyo - 01-04-2005, 07:14 PM
Bug Reports - by adosorken - 01-04-2005, 07:26 PM
Bug Reports - by zydon - 01-04-2005, 07:34 PM
thx - by theuserbl - 01-04-2005, 08:12 PM
Bug Reports - by retsyo - 01-04-2005, 08:24 PM
Bug Reports - by theuserbl - 01-04-2005, 09:15 PM
Bug Reports - by VonGodric - 01-04-2005, 10:44 PM
Bug Reports - by adosorken - 01-05-2005, 12:04 AM
Bug Reports - by Sterling Christensen - 01-05-2005, 01:50 AM
Bug Reports - by Sterling Christensen - 01-05-2005, 01:52 AM
Bug Reports - by VonGodric - 01-05-2005, 02:30 AM
Bug Reports - by v3cz0r - 01-05-2005, 05:22 AM
Bug Reports - by zydon - 01-05-2005, 06:15 AM
Bug Reports - by DrV - 01-05-2005, 06:17 AM
Bug Reports - by Z!re - 01-05-2005, 09:59 AM
Bug Reports - by v3cz0r - 01-05-2005, 10:18 AM
Bug Reports - by retsyo - 01-05-2005, 10:22 AM
Bug Reports - by Z!re - 01-05-2005, 10:42 AM
Bug Reports - by Z!re - 01-05-2005, 11:18 AM
Bug Reports - by steven_basic - 01-05-2005, 07:30 PM
Bug Reports - by v3cz0r - 01-05-2005, 07:31 PM
Bug Reports - by Jofers - 01-05-2005, 07:59 PM
Bug Reports - by steven_basic - 01-06-2005, 01:45 AM
"UUID.LIB" warning? - by steven_basic - 01-06-2005, 01:54 AM
Bug Reports - by subxero - 01-06-2005, 03:30 AM
Re: "UUID.LIB" warning? - by Z!re - 01-06-2005, 04:47 AM
Bug Reports - by v3cz0r - 01-06-2005, 04:48 AM
possible command$ bug - by Antoni Gual - 01-06-2005, 05:23 AM
Bug Reports - by v3cz0r - 01-06-2005, 07:07 AM
Bug Reports - by Antoni Gual - 01-06-2005, 07:37 AM
Bug Reports - by adosorken - 01-06-2005, 07:51 AM
Bug Reports - by undertow - 01-06-2005, 09:14 PM
Bug Reports - by adosorken - 01-06-2005, 09:26 PM
Bug Reports - by v3cz0r - 01-06-2005, 10:17 PM
Bug Reports - by 1000101 - 01-07-2005, 03:12 AM
Bug Reports - by v3cz0r - 01-07-2005, 03:39 AM
Bug Reports - by 1000101 - 01-07-2005, 03:55 AM
Bug Reports - by 1000101 - 01-07-2005, 06:00 AM
Bug Reports - by adosorken - 01-07-2005, 07:46 AM
Bug Reports - by Dr_Davenstein - 01-07-2005, 01:32 PM
Bug Reports - by 1000101 - 01-07-2005, 10:22 PM
Bug Reports - by v3cz0r - 01-08-2005, 09:44 AM
Bug Reports - by retsyo - 01-08-2005, 12:33 PM
Bug Reports - by Z!re - 01-08-2005, 12:43 PM
Bug Reports - by Dr_Davenstein - 01-08-2005, 12:44 PM
Bug Reports - by adosorken - 01-08-2005, 05:21 PM
Bug Reports - by na_th_an - 01-08-2005, 08:25 PM
Bug Reports - by retsyo - 01-09-2005, 08:36 AM
Bug Reports - by v3cz0r - 01-09-2005, 09:17 AM
Bug Reports - by 1000101 - 01-09-2005, 09:21 AM
Bug Reports - by v3cz0r - 01-09-2005, 10:16 AM
Bug Reports - by Z!re - 01-09-2005, 10:59 AM
Bug Reports - by relsoft - 01-09-2005, 11:03 AM
Bug Reports - by Z!re - 01-09-2005, 11:06 AM
Bug Reports - by adosorken - 01-09-2005, 11:49 AM
Bug Reports - by Z!re - 01-09-2005, 11:55 AM
Bug Reports - by undertow - 01-09-2005, 07:01 PM
Bug Reports - by v3cz0r - 01-09-2005, 08:03 PM
Bug Reports - by zydon - 01-09-2005, 08:04 PM
Bug Reports - by Sterling Christensen - 01-09-2005, 08:08 PM
Bug Reports - by v3cz0r - 01-09-2005, 08:16 PM
Bug Reports - by subxero - 01-09-2005, 08:25 PM
Bug Reports - by v3cz0r - 01-09-2005, 08:32 PM
Bug Reports - by Sterling Christensen - 01-09-2005, 08:48 PM
Bug Reports - by v3cz0r - 01-09-2005, 09:19 PM
Bug Reports - by zydon - 01-09-2005, 09:39 PM
Bug Reports - by v3cz0r - 01-09-2005, 09:58 PM
Bug Reports - by na_th_an - 01-09-2005, 11:19 PM
Bug Reports - by relsoft - 01-10-2005, 11:35 AM
Bug Reports - by zydon - 01-10-2005, 12:27 PM
Bug Reports - by subxero - 01-10-2005, 05:27 PM
Bug Reports - by Jofers - 01-10-2005, 07:16 PM
Bug Reports - by v3cz0r - 01-10-2005, 08:23 PM
Bug Reports - by Sterling Christensen - 01-10-2005, 10:25 PM
Bug Reports - by 1000101 - 01-10-2005, 10:33 PM
Bug Reports - by Jofers - 01-11-2005, 05:35 AM
Bug Reports - by ShadowWolf - 01-11-2005, 07:16 AM
Bug Reports - by v3cz0r - 01-11-2005, 07:44 AM
Bug Reports - by ShadowWolf - 01-11-2005, 07:56 AM
Bug Reports - by adosorken - 01-11-2005, 11:07 AM
Bug Reports - by SJ Zero - 01-11-2005, 02:49 PM
Bug Reports - by Blitz - 01-11-2005, 05:22 PM
Bug Reports - by SJ Zero - 01-11-2005, 09:01 PM
Bug Reports - by v3cz0r - 01-11-2005, 09:44 PM
Bug Reports - by fsw - 01-11-2005, 10:10 PM
Bug Reports - by v3cz0r - 01-11-2005, 10:32 PM
Bug Reports - by zydon - 01-11-2005, 10:37 PM
Bug Reports - by v3cz0r - 01-11-2005, 10:44 PM
Bug Reports - by zydon - 01-11-2005, 10:55 PM
Bug Reports - by Jofers - 01-11-2005, 11:04 PM
Bug Reports - by adosorken - 01-11-2005, 11:26 PM
Bug Reports - by v3cz0r - 01-11-2005, 11:34 PM
Bug Reports - by fsw - 01-12-2005, 12:46 AM
Bug Reports - by Jofers - 01-12-2005, 01:31 AM
Bug Reports - by Z!re - 01-12-2005, 01:51 AM
Bug Reports - by fsw - 01-12-2005, 02:15 AM
Bug Reports - by Badjas - 01-12-2005, 02:18 AM
Bug Reports - by Jofers - 01-12-2005, 04:06 AM
Bug Reports - by retsyo - 01-12-2005, 08:18 AM
Bug Reports - by adosorken - 01-12-2005, 10:31 AM
Bug Reports - by retsyo - 01-12-2005, 12:06 PM
Bug Reports - by Sterling Christensen - 01-13-2005, 06:27 PM
Bug Reports - by v3cz0r - 01-13-2005, 08:03 PM
Bug Reports - by adosorken - 01-14-2005, 12:42 AM
Bug Reports - by Sterling Christensen - 01-14-2005, 03:51 AM
Bug Reports - by adosorken - 01-14-2005, 04:30 AM
Bug Reports - by relsoft - 01-14-2005, 10:15 AM
Bug Reports - by Z!re - 01-16-2005, 09:50 PM
Bug Reports - by na_th_an - 01-16-2005, 10:06 PM
Bug Reports - by aetherfox - 01-16-2005, 10:44 PM
Bug Reports - by Z!re - 01-17-2005, 06:44 AM
Bug Reports - by v3cz0r - 01-17-2005, 09:29 AM
Bug Reports - by relsoft - 01-17-2005, 12:44 PM
Bug Reports - by Z!re - 01-17-2005, 02:55 PM
Bug Reports - by v3cz0r - 01-17-2005, 07:26 PM
Bug Reports - by relsoft - 01-18-2005, 12:55 PM
Bug Reports - by na_th_an - 01-18-2005, 02:03 PM
Bug Reports - by v3cz0r - 01-18-2005, 08:00 PM
Bug Reports - by Jotz - 01-25-2005, 08:49 AM
Bug Reports - by Dr_Davenstein - 01-25-2005, 09:29 AM
Bug Reports - by relsoft - 01-25-2005, 11:24 AM
Bug Reports - by Dr_Davenstein - 01-25-2005, 11:46 AM
Bug Reports - by lillo - 01-25-2005, 01:57 PM
Bug Reports - by v3cz0r - 01-25-2005, 08:00 PM
Bug Reports - by Zap - 01-26-2005, 09:08 PM
Bug Reports - by subxero - 01-27-2005, 08:36 AM
Bug Reports - by Zap - 01-27-2005, 10:22 PM
Bug Reports - by Z!re - 01-28-2005, 01:26 AM
Bug Reports - by v3cz0r - 01-28-2005, 01:29 AM
Bug Reports - by Aquarius - 01-28-2005, 02:31 AM
Bug Reports - by nathan - 01-29-2005, 03:02 PM
Bug Reports - by relsoft - 01-29-2005, 03:12 PM
Bug Reports - by whitetiger0990 - 01-29-2005, 08:21 PM
Bug Reports - by Dr_Davenstein - 01-30-2005, 09:45 AM
Bug Reports - by v3cz0r - 01-30-2005, 11:51 AM
Bug Reports - by ShadowWolf - 01-30-2005, 12:06 PM
Bug Reports - by Dr_Davenstein - 01-30-2005, 12:43 PM
Bug Reports - by na_th_an - 02-03-2005, 12:41 AM
Bug Reports - by v3cz0r - 02-03-2005, 01:05 AM
Bug Reports - by na_th_an - 02-03-2005, 01:18 AM
Bug Reports - by Z!re - 02-03-2005, 01:58 AM
Bug Reports - by v3cz0r - 02-03-2005, 02:09 AM
Bug Reports - by na_th_an - 02-03-2005, 02:12 AM
Bug Reports - by theuserbl - 02-03-2005, 05:30 PM
Bug Reports - by lillo - 02-03-2005, 05:54 PM

Forum Jump:


Users browsing this thread: 6 Guest(s)