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
structures with fixed lenght of string
-
BackupUser
- PureBasic Guru

- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
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
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
-
BackupUser
- PureBasic Guru

- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
-
BackupUser
- PureBasic Guru

- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
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
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
-
BackupUser
- PureBasic Guru

- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
-
BackupUser
- PureBasic Guru

- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
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
Fixed lenght strings in structure.
Check this example
viewtopic.php?t=2396">http://forums.pur ... ebasic.htm
-
BackupUser
- PureBasic Guru

- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm