nick_rogers
19th April 2004, 21:54
anyone know What object the standard seq.gets() function is in ?

mark_h
19th April 2004, 22:15
As far as I know seq.gets is not in a library. Thought it was a function build into Baan. But I could be wrong. Are you having a problem with compiling?

Mark

nick_rogers
19th April 2004, 22:21
Hi Mark. this is related to the porting set upgrade I moaned about, the function is not working as expected. I want to make sure my object is the latest one....

when compiling a script - the assorted bic file are used, maybe its in one of those ie - bic_global etc......

mark_h
20th April 2004, 16:04
I think you are correct and it is in one of those bic files, I just do not know how to tell which one. Anyone else know how to see what is in one of those bic files(like bic_global)?

Mark

nick_rogers
20th April 2004, 18:44
Hi Mark - well I was wrong, all the intrinsic functions are in the bshell6.1 object...

mark_h
20th April 2004, 19:51
I would still like a way to see what is in those files. Hopefully someone else knows and will respond.

Mark

SriksAdi
21st April 2004, 07:34
A few bic files and the corresponding functions :

bic_tt - runtime dictionary related functions (tt.* functions)

bic_gpart - Requests, inquiries, and replies related functions

bic_event - Event handling functions

bic_dam - functions used to access DAMs (Data Access Methods - Business methods in DALs)

bic_dal - functions for DALs

bic_audlib, bic_audhdr.h - Audit information functions

bic_info - display information about an object


Sriks

hpng98
25th March 2008, 09:32
Hi to all
Regarding seq.gets function,
I use it to get the baan/bse/myfile data.

my problem is , myfile have alot of lines, each lines is more than 110 character, and i notice that the system ignore last few character in each line.

is tht any limitation in file access ? is tht any maximum character control for each lines ??


my coding :
---------------------------------
long count
seq.rewind(fp)
while(true)
seq.gets(file.rec , 99 , fp)
if (len(strip$(file.rec)) < 10 then
break
endif

if seq.eof(fp) <> 0 then
break
endif


temp.refa = file.rec(79;30)
---------------------------------

and i notice my temp.refa only get 7 character.


may I know how to settle this problem ?

Thanks.

grzegorz
25th March 2008, 11:13
IMHO you get exactly what you wrote. The second argument in seq.gets is "the maximum number of bytes to be read". So if your lines are longer then 99 characters, only 99 will be read. Try to increase that number and don't forget to declare file.rec string long enough.

toolswizard
25th March 2008, 13:02
Sometimes seq_gets will only read a partial line in there are null characters in the input line. For a debugging of the file, try seq_getc and inspect each character to see if it is a valid character.

george7a
25th March 2008, 13:39
In your case just replace the seq.get line:

|seq.gets(file.rec , 99 , fp) replace 99 with 256 or any higher number.
seq.gets(file.rec , 256 , fp)

And it should work. It did for me ;)

- George

hpng98
26th March 2008, 03:11
Thanks.

I am increase the file.rec size , and increase seq.gets(file.rec , 120 ,fp)