Jump to content
Sign in to follow this  
armoros

[Solved] Edit box-Characters 30000-Lines 673 -Restriction ?

Recommended Posts

armoros

Hello my friends In a script i have with just an Edit control, when i type too much it does not allow me for more. i have an app that counts the characters and says i have typed 30000 char. and 673 lines.

Anyway is there a restriction on how many characters we can type in an Edit box ?

Thank you

Edited by armoros

[font="verdana, geneva, sans-serif"] [/font]

Share this post


Link to post
Share on other sites
water

Looks like there is a 30000 character


My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2018-06-01 - Version 1.4.9.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (2018-01-27 - Version 1.3.3.1) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2015-04-01 - Version 0.4.0.0) - Download - General Help & Support - Example Scripts
Excel - Example Scripts - Wiki
Word - Wiki
PowerPoint (2015-06-06 - Version 0.0.5.0) - Download - General Help & Support

Tutorials:
ADO - Wiki

 

Share this post


Link to post
Share on other sites
armoros

Oh..thank you Water so there is a limit..

Thanks for the link...


[font="verdana, geneva, sans-serif"] [/font]

Share this post


Link to post
Share on other sites
water

I don't know if this value (default value?) can be extended. Maybe someone else can shed some light on this?


My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2018-06-01 - Version 1.4.9.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (2018-01-27 - Version 1.3.3.1) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2015-04-01 - Version 0.4.0.0) - Download - General Help & Support - Example Scripts
Excel - Example Scripts - Wiki
Word - Wiki
PowerPoint (2015-06-06 - Version 0.0.5.0) - Download - General Help & Support

Tutorials:
ADO - Wiki

 

Share this post


Link to post
Share on other sites
czardas

Have you looked at GUICtrlSetLimit ? Set the limit to 2000000 characters and see if that fixes it.

  • Like 1

Share this post


Link to post
Share on other sites
armoros

Have you looked at GUICtrlSetLimit ? Set the limit to 2000000 characters and see if that fixes it.

No i didn't czardas i will check this, there is a hope nice.

Thank you.


[font="verdana, geneva, sans-serif"] [/font]

Share this post


Link to post
Share on other sites
Skitty

No i didn't czardas i will check this, there is a hope nice.

Thank you.

Did it work? This is weird because I was just noticing this right this instant when working with a little debug edit box for a compiled script.


Things that I've done..

Icon Resource Editor: icon resource editor 

AutoIt Piano: a piano

AutoIt Unlocker: unlocks files when you want to delete them

Colorful tooltips: a wrapper for the tool tips UDF

Rouge GoogleBot: a full screen animation

ASciTE text editor: a text editor written in autoit

Warning: Posts by this user are subject to change or may disappear without notice.

Share this post


Link to post
Share on other sites
armoros

Did it work? This is weird because I was just noticing this right this instant when working with a little debug edit box for a compiled script.

Yes it does work. I can have now 2000000 char. and 43739 lines ;)

#include
#include
#include
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Form1", 623, 449, 192, 114)
$Edit1 = GUICtrlCreateEdit("", 8, 16, 609, 409)
  GUICtrlSetLimit(-1, 2000000)  ; sets the limit to 2000000 characters or you can put the maximum 2147483647 as user PhoenixXL sugests
GUICtrlSetData(-1, "")
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
  Case $GUI_EVENT_CLOSE
   Exit
EndSwitch
WEnd
Edited by armoros
  • Like 1

[font="verdana, geneva, sans-serif"] [/font]

Share this post


Link to post
Share on other sites
PhoenixXL

Hey Positive Results..............

I got that 2147483647 is the Maximum Value that a Edit Control Can Hold

Using This Code

#AutoIt3Wrapper_au3check_parameters=-d -w 1 -w 2 -w 3 -w 4 -w 5 -w 6
#include <GuiEdit.au3>
#include <GuiConstantsEx.au3>
Opt('MustDeclareVars', 1)
$Debug_Ed = False ; Check ClassName being passed to Edit functions, set to True and use a handle to another control to see it work
_Main()
Func _Main()
    Local $hEdit
    ; Create GUI
    GUICreate("Edit Set Limit Text", 400, 300)
    $hEdit = GUICtrlCreateEdit("This is a test" & @CRLF & "Another Line", 2, 2, 394, 268)
    GUISetState()
    MsgBox(4160, "Information", "Text Limit: " & _GUICtrlEdit_GetLimitText($hEdit))
    MsgBox(4160, "Information", "Setting Text Limit")
Local $x=2147483630,$sdata
While 1
  _GUICtrlEdit_SetLimitText($hEdit,$x)
  $sdata=_GUICtrlEdit_GetLimitText($hEdit)
  ConsoleWrite("Information"&@TAB&"Text Limit: " &$sdata &@CRLF)
  If $sdata<=0 Then ExitLoop
  $x+=1
WEnd
    GUIDelete()
EndFunc   ;==>_Main

Thumbs Up If it Helped ;)

Regards

Phoenix XL

Edited by PhoenixXL
  • Like 2

My code:

PredictText: Predict Text of an Edit Control Like Scite. Remote Gmail: Execute your Scripts through Gmail. StringRegExp:Share and learn RegExp.

Run As System: A command line wrapper around PSEXEC.exe to execute your apps scripts as System (LSA). Database: An easier approach for _SQ_LITE beginners.

MathsEx: A UDF for Fractions and LCM, GCF/HCF. FloatingText: An UDF for make your text floating. Clipboard Extendor: A clipboard monitoring tool. 

Custom ScrollBar: Scroll Bar made with GDI+, user can use bitmaps instead. RestrictEdit_SRE: Restrict text in an Edit Control through a Regular Expression.

Share this post


Link to post
Share on other sites
armoros

Hey Positive Results..............

I got that 2147483647 is the Maximum Value that a Edit Control Can Hold

Thumbs Up If it Helped ;)

Regards

Phoenix XL

Yes man that is great i tested and i can have more than 4000000 characters..couldn't paste 2147483647 chars.:) but it works

Thumbs up


[font="verdana, geneva, sans-serif"] [/font]

Share this post


Link to post
Share on other sites
cyberbit

Have you looked at GUICtrlSetLimit ? Set the limit to 2000000 characters and see if that fixes it.

Thanks for this, saved me a lot of time. Kudos! :thumbsup:

_ArrayConcatenate2D · Aero Flip 3D · EPOCH (destroy timestamps) · File Properties Modifier · _GetFileType · UpdateEngine<new> · In-line Case (_ICase) <new>

[hr]

50% of the time, it works all the time. -PezoFaSho

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×