Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

在 BCB 中如何轉換 anistring to string??

0 views
Skip to first unread message

Roland

unread,
Apr 1, 1997, 3:00:00 AM4/1/97
to

==> 在 enbo...@bbs.mgt.ncu.edu.tw (enboy) 的文章中提到:
> 在 BCB 中如何將 Edit Box 的 Text property assign 給一個 string 變數??
> 謝謝...
> ps. ansistring convert to string value....

AnsiString x;
char str[100];
x="abc"
sprintf(str,"Hello %s",x.c_str());

//////// or

sprintf(str,"%s",Edit1->Text.c_str());


--
* Origin: ★ 交通大學資訊科學系 BBS ★ <bbs.cis.nctu.edu.tw: 140.113.23.3>

檸檬水

unread,
Apr 10, 1997, 3:00:00 AM4/10/97
to

【 在 enbo...@bbs.mgt.ncu.edu.tw (enboy) 的大作中提到: 】
: 在 BCB 中如何將 Edit Box 的 Text property assign 給一個 string 變數??

: 謝謝...
: ps. ansistring convert to string value....

ex: AnsiString pathname;
pathname.c_str() 就可取得 string 變數

--
[m [1;34m※ 來源:‧輔大美少女夢工場 bbs.secc.fju.edu.tw‧[FROM: 140.136.250.37] [m

0 new messages