: , ListBox omboBox. .
/++ , , , ´\0´ ( -).
, 80 , 81, .. -.
, , , , (´\0´ ).
, :
char S1[10] = 123456789, S2[ ] = 12345;
.
, string. h:
1) strcpy (S 1, S 2) S 2 S 1;
2) strcat (S 1, S 2) S 2 S 1 , S 1, S 2 ; , S 1, S 2;
3) strcmp (S 1, S 2) S 1 S 2 =0, , .. ; <0, S 1< S 2; >0, S 1> S 2.
4) strlen (S) , .. , (S [0]) -, .
5) strstr ( S 1, S 2 ) S 2 S 1.
6) S ( stdlib. h): (int) atoi (S); (long) atol (S); (double) atof (S);
0;
7) V S: itoa (int V, char S, int kod); ltoa (long V, char S, int kod); kod 2£ kod £36, kod = 10.
AnsiString
AnsiString B uilder.
: _str () AnsiString ; Delete () , SubString () ; Pos () ; Length () .
ListBox
, . Items, Add, Delete Insert , , . Items . ItemIndex.
|
|
ComboBox
ComboBox ListBox dit, . Text, Edit, Items, ListBox. C , Style, csSimple, , ( ).
- BitBtn
BitBtn Additonal B utton. , Glyph. , Kind 11 , , bkCustom bkHelp, mr *** (, bkOk mrOk). bkClose .
, , , .., Windows . Builder . Events .
, Events () . , Form 1 OnActivate, FormActivate () { }.
, . :
OnActivate ;
OnCreate (Form), , ;
OnKeyPress , Key WORD ASCII - (Enter 13, Esc 27) , ;
OnKeyDown , Shift, Alt Ctlr, ;
OnKeyUp OnKeyDown ;
OnClick , OnDblClick .
, .