Jump to content

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


Recommended Posts

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]

Link to post
Share on other sites

Looks like there is a 30000 character

My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2021-06-05 - Version 1.5.4.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2021-06-14 - Version 1.6.5.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download
Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
PowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & Support
Excel - Example Scripts - Wiki
Word - Wiki
Task Scheduler (2019-12-03 - Version 1.5.1.0) - Download - General Help & Support - Wiki

Tutorials:
ADO - Wiki, WebDriver - Wiki

 

Link to post
Share on other sites

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 2021-06-05 - Version 1.5.4.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2021-06-14 - Version 1.6.5.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download
Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
PowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & Support
Excel - Example Scripts - Wiki
Word - Wiki
Task Scheduler (2019-12-03 - Version 1.5.1.0) - Download - General Help & Support - Wiki

Tutorials:
ADO - Wiki, WebDriver - Wiki

 

Link to post
Share on other sites

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.

Link to post
Share on other sites

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

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

Link to post
Share on other sites

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

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.

Link to post
Share on other sites

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]

Link to post
Share on other sites
  • 4 months later...

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

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
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...