Domaine : tutoriel
Tag : freeware tutos
Aller à l'accueil


TAGS SPECIALISES :

freeware et tutos
tutos cartonnage
tutos tricot bébé
tutos mitaines
tutos pate fimo
blender tutos
tutos couture bébé
tutos blender
tutos wordpress
tutos chapeaux
tutos fimo
tutos broderie
tutos scrapbooking
tutos scrap
tutos blender 2.5
tutos couture
tutos blender francais
tutos flash cs4
tutos tricot
tutos gimp 2.6
couture blog tutos
freewares et tutos
tutos audacity
gx tutos
tutos pfs
mes tutos
freeware & tutos
tutos couture facile
freewares tutos
tutos inkscape
freewares & tutos
tutos porcelaine froide







Performing Calculations and Math Using EditBoxes

User input with editboxes are entered as a string datatype. The computer can not perform calculate using strings. The computer needs numbers in an integer or floating point datatype to make mathematical calculations. The solution is to convert the string into a integer of floating point number, perform the calculation, then convert the calculation back to a string so it can be displayed in the editbox or label.

IntToStr() - Converts an Integer to a String
StrToInt() - Converts a String to an Integer

FloatToStr() - Converts a Floating Point to a String
StrToFloat() - Converts a String to a Floating Point

Example:

edAnswer.Text := FloatToStr(StrToFloat(edFirstNum.Text) + StrToFloat(edSecondNum.Text));

code pour embarquer la vidéo : >>>    http://www.youtube.com/embed/fBQaEHnjd1k    <<<






TAGS GENERAUX :

  tutoriel cs5  tutoriel animation flash  after effects tuto  tuto after effects  tutoriel after effect  after effect tutoriel  tutoriel 4d  tuto power point  tuto illustrator  tuto c4d