Page 4 of 6
Re: EditBox control: increase capacity
Posted: Wed Jul 24, 2013 7:39 pm
by EduardoLuis
Hi Esguici:
I've test your propousal, and the results was the same.-
memo field limit in table must be under than 29958
Table format dbf / ftp
Tests were maid under:
OS version Win 7 32 & 64 bit
OS version Win XP SP3 32 bit and Win XP 64 bit
OS version Win 8 32 bit
With regards. Eduardo
Re: EditBox control: increase capacity
Posted: Wed Jul 24, 2013 9:25 pm
by EduardoLuis
Hi Esgici:
Me again.-
Making new tests, i discover that the problem with *.TXT files (from EditBox) becomes on MEMOWRIT command.- If you try to write EditBox contents (200000 bytes for example) memowrit() only save 64kb.- I notice that using your example EDIT_TXT_PDF posted on the forum.-
Although i'll try to solve it.-
With regards. Eduardo
Re: EditBox control: increase capacity
Posted: Wed Jul 24, 2013 9:31 pm
by esgici
EduardoLuis wrote:... memowrit() only save 64kb...
Did you tried HB_MemoWrit() ?
Regards
Re: EditBox control: increase capacity
Posted: Wed Jul 24, 2013 10:02 pm
by esgici
Hello Eduardo
EduardoLuis wrote:
...I've test your propousal, and the results was the same...
Try this once ...
- Memo fields and text file limits test result
- MmoLmTst.JPG (43 KiB) Viewed 5777 times
- MmoLmTst.zip
- Memo fields and text file limits test source files ( .hbp, .prg )
- (1.44 KiB) Downloaded 935 times
Viva HMG
Re: EditBox control: increase capacity
Posted: Thu Jul 25, 2013 12:06 am
by esgici
Hi Eduardo
esgici wrote:EduardoLuis wrote:... memowrit() only save 64kb...
Did you tried HB_MemoWrit() ?
Regards
Tried separately; no size difference found between MemoWrit() and HB_MemoWrit();
only difference is MemoWrit() added EOF marker ( CHR( 26 ) ) at end of output file.
Happy HMG'ing
Re: EditBox control: increase capacity
Posted: Fri Jul 26, 2013 12:53 pm
by EduardoLuis
Hi Esguici:
I'm sorry not to answer you yesterday, but as is don't work yesterday and have no internet at home, since now i saw you post.-
I'll test you sample today.-
Thanks very much for your suggestions.-
With regards. Eduardo
Re: EditBox control: increase capacity
Posted: Fri Jul 26, 2013 1:38 pm
by EduardoLuis
Hi Esgici
Your demo wokrs OK.-
The only problem i can't solve (like i like) is dbf memo field capacity.-
On my project developed an nearly 260000 characters must stored it on memo field of a principal table, independant from a txt file where the take the portion of text to copy & paste.-
To solve that problem text captured from *.txt file is stored on various memo fields of the table, in portions of 29000 characters.- I know this is not the proper solution, but is the one i found functions OK.- When end user needs to recover that information, EDITBOX loads each one of the memo fields contents; if end user make any changes on the EDITBOX, the sistem split EDITBOX contents on portions of 29000 char and stored again on various memo fields.-
Another chance i'm testing is storing on a character file the name and root of the original *.txt file, so when end user want to check that information, the sistem loads that specify *.txt file.-
As you told me, i create a *.dbf / *.fpt table; but the result was the same as on *.dbf /*.dbt table.-
I'll continuing looking for a better solution.-
Again thanks very much for your cooperation.-
With regards. Eduardo
Re: EditBox control: increase capacity
Posted: Fri Jul 26, 2013 2:15 pm
by EduardoLuis
Hi Esgici:
I've rewrite some of your lines to implement on my project and:
IT WORKS FINE.- SUPERB!!!!!!!!!!!!
Thanks again for your share your knowledge with all of us.-
Again very much thanks.
With regards. Eduardo
Re: EditBox control: increase capacity
Posted: Fri Jul 26, 2013 7:30 pm
by esgici
Hi Eduardo
I'm glad I can be helpful to you
EduardoLuis wrote:...
Another chance i'm testing is storing on a character file the name and root of the original *.txt file, so when end user want to check that information, the sistem loads that specify *.txt file.
...
Please look at also
here.
I hope
FIF will give to you an idea
Note that FIF support any type / size of file, not only .txt files
Viva HMG
Re: EditBox control: increase capacity
Posted: Fri Jul 26, 2013 8:54 pm
by EduardoLuis
Hi Esgici:
I've made new test - modifying your sample - and again limits appear.-
I attach your sample with the additions i've made to match what i need to do on my developement.-
I include a *.txt file with the lenght i may need 215.166 bytes.-
If you edit SAMPLE.txt and latter save as SHOM.TXT it's cut up to 64999 bytes.-
If you edit SAMPLE.TXT and try to save new MEMO filed, it's also cut up to 64999 bytes.-
Perhaps i've made some mistake on the new code, so forgiveme if i'm wrong.-
I've compiled the sample under HMG 3.046 and 3.14 and the result was the same in both cases.-
I've teste both HMG samples on Win 7 and Win XP SP3, and the result was the same.
I ask you if you could check my code and tell me where i make the mistake.-
With regards. Eduardo