Вопрос

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