Jump to content

Set Data in Gui Ctrl Edit on new lines


Recommended Posts

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
Link to comment
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
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...