Sign in to follow this  
Followers 0
Azraelsub7

Set Data in Gui Ctrl Edit on new lines

4 posts in this topic

#1 ·  Posted (edited)

Ok i have this

; some code 
$rez = GUICtrlCreateEdit("", 40, 192, 505, 305)
;other code 
; and then this 
    GUICtrlSetData($rez , "Numar crt : " & $aColumnA[$var] & @CRLF _
                        & "Numar Index : " & $aColumnB[$var] & @CRLF _
                        & "Denumire Chimica : " & $aColumnC[$var] & @CRLF _
                        & "Alte denumiri : " & $aColumnD[$var] & @CRLF _
                        & "Nr Ec : " & $aColumnE[$var] & @CRLF _ 
                        & "Nr CAS : " & $aColumnF[$var] & @CRLF _
                        & "Simbol Pericol : " & $aColumnG[$var] & @CRLF _ 
                        & "FRAZE R : " & $aColumnH[$var] & @CRLF _ 
                        & "Incompatibilitati : " & $aColumnI[$var] & @CRLF ) 

;some code

The above code is just a part my script . My script works fine ...

The problem is that what is set in the Edit control is not on new lines how i want it ... @LF @CR @CRLF don't help me And i don't want to send enter to break lines if u know other way to make new lines in a Control edit please help me

Edited by Azraelsub7

Share this post


Link to post
Share on other sites



Does this work?

; some code 
$rez = GUICtrlCreateEdit("", 40, 192, 505, 305)
;other code 
; and then this 
    GUICtrlSetData($rez ,GUICtrlRead($rez)& "Numar crt : " & $aColumnA[$var] & @CRLF _
                        & "Numar Index : " & $aColumnB[$var] & @CRLF _
                        & "Denumire Chimica : " & $aColumnC[$var] & @CRLF _
                        & "Alte denumiri : " & $aColumnD[$var] & @CRLF _
                        & "Nr Ec : " & $aColumnE[$var] & @CRLF _ 
                        & "Nr CAS : " & $aColumnF[$var] & @CRLF _
                        & "Simbol Pericol : " & $aColumnG[$var] & @CRLF _ 
                        & "FRAZE R : " & $aColumnH[$var] & @CRLF _ 
                        & "Incompatibilitati : " & $aColumnI[$var] & @CRLF ) 

;some code

Share this post


Link to post
Share on other sites

_GUICtrlEdit_AppendText in beta 3.2.9.2 or above

Thanks a lot for helping me .

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  
Followers 0