Page 1 of 1
String Limit
Posted: Tue Feb 04, 2014 6:49 pm
by loulou25223
Cab someone says me which is the cumulative limits for all variable.
I have a varaible which is 230 Mo lenght
with Regexp i want to create another string
regexp find what i want but don arrvie ti load the result in a string and the programm crash
With a string of 21O Mo all is good
Re: String Limit
Posted: Wed Feb 05, 2014 12:41 am
by PB
Strings are unlimited.
If your app is crashing, post some code that shows it so we
can see what's going on, and then we can either correct your
code or file a bug report.
Re: String Limit
Posted: Wed Feb 05, 2014 8:30 am
by loulou25223
I create a variable fill with xml data which is 230 M0
I use Regexp for extraction data which is 210 MO
The Regexp return no error and Nb1 is equal to 1
But wheni want to put the result in variable , variable is 0 lenght and nothing in string
Here is my probleme
With a file of 220 M0 there is no problem, yhese instruction works well and return in variable the good value that's while i find that strange
Thanks PB if you give me a solution
Code: Select all
If CreateRegularExpression(1, "(<PmtInf>)(.*)(</CstmrDrctDbtInitn>)" ,#PB_RegularExpression_DotAll | #PB_RegularExpression_MultiLine)
Dim Resultat1$(0)
Nb1 = ExtractRegularExpression(1, toto23, Resultat1$())
variable = Resultat1$(nb1-1)
FreeRegularExpression(1)
EndIf
Re: String Limit
Posted: Wed Feb 05, 2014 9:00 am
by Crusiatus Black
Why don't you use the XML functions? You could stream in the large XML file and show
progress, after it has finished, you can process the XML data using the XML functions.
Re: String Limit
Posted: Wed Feb 05, 2014 10:01 am
by loulou25223
I don't use XML lib because with such big files , i have to pass through all collections and using regexp can be very faster 10 or 12 more speedy