1

Topic: To take all characters to a gap from edit1 and to appropriate it in edit2 - a C ++ Builder

[spoiler]
Help gets rid of errors.
[bcc32 Error] Unit1_RightEndDoor.cpp (456): E2451 Undefined symbol ' s'
Full parser context
Unit1_RightEndDoor.cpp (453): parsing: void _fastcall TMF_RightEndDoor:: CB_soft_righChange (TObject *)
[bcc32 Error] Unit1_RightEndDoor.cpp (457): E2451 Undefined symbol ' string'
Full parser context
Unit1_RightEndDoor.cpp (453): parsing: void _fastcall TMF_RightEndDoor:: CB_soft_righChange (TObject *)
[bcc32 Error] Unit1_RightEndDoor.cpp (457): E2379 Statement missing;
Full parser context
Unit1_RightEndDoor.cpp (453): parsing: void _fastcall TMF_RightEndDoor:: CB_soft_righChange (TObject *)
[bcc32 Warning] Unit1_RightEndDoor.cpp (461): W8004 ' n ' is assigned a value that is never used
Full parser context
Unit1_RightEndDoor.cpp (453): parsing: void _fastcall TMF_RightEndDoor:: CB_soft_righChange (TObject *)
[/spoiler]

size_t n = s.find (' ');
string s2 = (n! = string:: npos)? s.substr (0, n): "";

It is necessary to me from ComboBox-> Text to take the text and to appropriate a component Edit1-> Text characters to a gap.

2

Re: To take all characters to a gap from edit1 and to appropriate it in edit2 - a C ++ Builder

Anatoliy S.;
Codeless here it is difficult to understand something. But to begin with it is necessary to look, where and as the first error is defined s, about this variable