Page 1 of 1
Posted: Sat Jan 04, 2003 4:28 am
by BackupUser
Restored from previous forum. Originally posted by goc.
hello
i want to use a structure with strings, to use with a custom database, my question is to know how i can define, in my structure, strings with fixed lenth, for example, i have 50chars for name, 40chars for adresse,etc..
if i have that structure, i can read file directly in structured buffer, record, by record
thank for help
Posted: Sat Jan 04, 2003 5:04 am
by BackupUser
Restored from previous forum. Originally posted by MrVainSCL.
hello goc,
i am not sure... but i dont know any command to limit it, due fact strings in PB (as i know) are generally limited up to 64k.... Fred wanted change this but i am sure if this was change...
viewtopic.php?t=4294
PIII450, 256MB Ram, 80GB HD + 6,4 GB, RivaTNT, DirectX8.1, SB AWE64, Win2000 + all Updates...
greetz
MrVainSCL! aka Thorsten
Posted: Sat Jan 04, 2003 5:23 am
by BackupUser
Restored from previous forum. Originally posted by goc.
it's possible, but i think it may be also due to fact that it is a Zstring structure, (finish by zero)
thanks for link
Posted: Sat Jan 04, 2003 5:27 am
by BackupUser
Restored from previous forum. Originally posted by MrVainSCL.
Yes possible...
Maybe PB dont allocate 64k for any string (that would be strange)... Futuremore i think it only allocate so mutch space as the actual string long is... And this is limited by 64k... You dont have to finish your strings with zero, PB will do this automatic!
PIII450, 256MB Ram, 80GB HD + 6,4 GB, RivaTNT, DirectX8.1, SB AWE64, Win2000 + all Updates...
greetz
MrVainSCL! aka Thorsten
Posted: Sat Jan 04, 2003 5:40 am
by BackupUser
Restored from previous forum. Originally posted by goc.
yes, i think so
i think also that all the string librairy work in zstring format, and there is no function who can translate fixedlenght string into zstring
maybe..
Posted: Sat Jan 04, 2003 9:07 am
by BackupUser
Restored from previous forum. Originally posted by Berikco.
Fixed lenght strings in structure.
Check this example
viewtopic.php?t=2396">http://forums.pur ... ebasic.htm
Posted: Sat Jan 04, 2003 3:11 pm
by BackupUser
Restored from previous forum. Originally posted by goc.
thank for link
hum, for that, i prefer use asm code, it will more quickly execute, i think