문제

I'm trying to concatenate a dot ( "." ) in a Visual C++ Windows Form Application. My code is:

String ^a;      
a=String::Concat(values->Text,".");

valores->Text= a;

But if the text already has 3, it changes to .3 instead of 3..

Changing it to:

a=String::Concat(".", values-> Text)

doesn't fix it.

도움이 되었습니까?

해결책

a += ".";

( That's all there is to it! )

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top