We value your input!
Please participate in Archicad 28 Home Screen and Tooltips/Quick Tutorials survey

Archicad C++ API
About Archicad add-on development using the C++ API.
SOLVED!

Convert GS::UniString to Int32

Newbie
Participant

Hello,

Is there any function to convert unistring to int32 in API?.

 

1 ACCEPTED SOLUTION

Accepted Solutions
Solution
Viktor Kovacs
Graphisoft
Graphisoft
#include <StringConversion.hpp>

GS::UniString strVal = "42";
Int32 intVal;
GS::UniStringToValue (strVal, intVal);

View solution in original post

2 REPLIES 2
Solution
Viktor Kovacs
Graphisoft
Graphisoft
#include <StringConversion.hpp>

GS::UniString strVal = "42";
Int32 intVal;
GS::UniStringToValue (strVal, intVal);
Laszlo Nagy
Community Admin
Community Admin

This is the ultimate answer to life, the universe, and everything. 😁

Loving Archicad since 1995 - Find Archicad Tips at x.com/laszlonagy
AMD Ryzen9 5900X CPU, 64 GB RAM 3600 MHz, Nvidia GTX 1060 6GB, 500 GB NVMe SSD
2x28" (2560x1440), Windows 10 PRO ENG, Ac20-Ac27