THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 20/03/2008 at 06:26, xxxxxxxx wrote:
User Information:
Cinema 4D Version:
Platform:
Language(s) :
---------
Iam confused why I am getting strings without the array operator, but when I use the array operator I get ascii. I tried using tostring in different ways but that didn't do anything for me.
pDoc=GetActiveDocument();
nObj=pDoc->GetActiveObject();
nName=nObj->GetName();
len=sizeof(nName);
sName=strmid(nName,0,len-2);
println(sName);
println(nName);
nnName=tostring(nName);
println(sName[0]);
println(nName[2]);
println(tostring(sName[0]));