Page 1 of 1
Database String Limitations
Posted: Fri Sep 10, 2004 6:01 pm
by GedB
Does anybody know what the string limitations are for the Database functions?
What I really need to know is the maximum string allowed for DatabaseQuery() and GetDatabaseString()
Thanks.
Posted: Mon Sep 13, 2004 9:22 am
by Fred
it should be the internal PB string buffer size (which is 64000 bytes by default but can be changed, check the trick and tips).
Posted: Mon Sep 13, 2004 1:05 pm
by Karbon
Just to save you some time :
Code: Select all
Procedure SetStringManipulationBufferSize(size); - Set the String-Buffer-Size
PBStringBase.l = 0
PBMemoryBase.l = 0
!MOV eax, dword [PB_StringBase]
!MOV [esp+4],eax
!MOV eax, dword [PB_MemoryBase]
!MOV [esp+8],eax
HeapReAlloc_(PBMemoryBase, #GMEM_ZEROINIT, PBStringBase, size)
!MOV dword [_PB_StringBase],eax
EndProcedure
Posted: Mon Sep 13, 2004 2:04 pm
by GedB
Thats great.
Thanks.