The problem is that I want to choose the number in the spin edit and when press a button the value will be displayed in a memo or a label. This is the code i am currently using ________________________________- begin label1.caption:= SpinEdit1.value; end; or begin memo1.text:= SpinEdit1.value; end; ________________________________- the error I get is Incompatible types String and LongInt could anyone possibly correct the code for me of send some help Thanks -- ________________________________; __; (_ _ _._ _ _._ _ _ __) (_ (/_ _ (_) (/__>;________________________________; shane.@globalnet.co.uk ' ______________________ '. Quote >This is a multi-part message in MIME format.
>------=_NextPart_000_000B_01BEDDAE.2BB9D6C0 >Content-Type: text/plain; >charset='iso-8859-1' >Content-Transfer-Encoding: quoted-printable >The problem is that I want to choose the number in the spin edit and = >when press a button the value will be displayed in a memo or a label. >this is the code i am currently using >________________________________- =20 >begin >label1.caption:=3D SpinEdit1.value; >end; >or >begin >memo1.text:=3D SpinEdit1.value; >end; >________________________________- >the error I get is=20 >Incompatible types String and LongInt >could anyone possibly correct the code for me of send some help >Thanks >--=20 Ok begin label1.caption:=inttostr(3DSpinEdit1.value); end; or begin memo1.text:=inttostr(3DSpinEdit1.value); end; Sent via Deja.com Share what you know. Learn what you don't.
The best way to understand error is to RTFM (Read The F. In this example: read ERROR MESSAGE.
Life News; Inside. Delphi to spin off powertrain unit into separate company. DETROIT (AP) — Automotive parts and electronics maker Delphi Corp. Real Rock Return Riddim Rar File here. SpinEdit drives me crazy wilsona. (presumably when the spin edit box is cleared). I am using Delphi 5 and have no problems with clearing the value in.
Incompatible types means incompatible types.:)) so: label1.Caption is String. SpinEdit1.value is. What do you think? It's INTEGER. If you want move Integer into string you will recive ERROR.
Thats; right. You can read HELP (from DELPHI) how to convert varibles - different types. Take solution: use label1.Caption:=InttoStr(SpinEdit.Value). Think before write!;-)) Bye Lukasz Zeligowski POLAND. Quote >Shane Jones wrote: >The problem is that I want to choose the number in the spin edit and >when press a button the value will be displayed in a memo or a label.
The problem is that I want to choose the number in the spin edit and when press a button the value will be displayed in a memo or a label. This is the code i am currently using ________________________________- begin label1.caption:= SpinEdit1.value; end; or begin memo1.text:= SpinEdit1.value; end; ________________________________- the error I get is Incompatible types String and LongInt could anyone possibly correct the code for me of send some help Thanks -- ________________________________; __; (_ _ _._ _ _. Autopano-sift-c Windows Binary. _ _ _ __) (_ (/_ _ (_) (/__>;________________________________; shane.@globalnet.co.uk ' ______________________ '. Quote >This is a multi-part message in MIME format. >------=_NextPart_000_000B_01BEDDAE.2BB9D6C0 >Content-Type: text/plain; >charset='iso-8859-1' >Content-Transfer-Encoding: quoted-printable >The problem is that I want to choose the number in the spin edit and = >when press a button the value will be displayed in a memo or a label. >this is the code i am currently using >________________________________- =20 >begin >label1.caption:=3D SpinEdit1.value; >end; >or >begin >memo1.text:=3D SpinEdit1.value; >end; >________________________________- >the error I get is=20 >Incompatible types String and LongInt >could anyone possibly correct the code for me of send some help >Thanks >--=20 Ok begin label1.caption:=inttostr(3DSpinEdit1.value); end; or begin memo1.text:=inttostr(3DSpinEdit1.value); end; Sent via Deja.com Share what you know.
Learn what you don't. The best way to understand error is to RTFM (Read The F. In this example: read ERROR MESSAGE. Incompatible types means incompatible types.:)) so: label1.Caption is String. SpinEdit1.value is.
What do you think? It's INTEGER. If you want move Integer into string you will recive ERROR. Thats; right.
Ubuntu Terminal Downloads Directory. You can read HELP (from DELPHI) how to convert varibles - different types. Take solution: use label1.Caption:=InttoStr(SpinEdit.Value). Think before write!;-)) Bye Lukasz Zeligowski POLAND. Quote >Shane Jones wrote: >The problem is that I want to choose the number in the spin edit and >when press a button the value will be displayed in a memo or a label.