PDA

View Full Version : dotnet problem and formating an output


Dmaxer
09-20-2007, 04:35 PM
Hi guys :)
I have a dotnet DLL giving my script some timing data and the problem is its coming in with a L on the end of the data.
so let say in my script I write this ;

Foo = deltatime -- ( deltatime is the varible from the dll and lets say it = 50 )
print Foo


the output should be 50
but its 50L

Im very new to all this dotnet stuff so maybe Im doing something wrong ?
or maybe its just the way the DDL outputs its data, in that case is there a way to get rid of the L at the end , as its screwin up my code .
Thanks for reading and I hope someone can help :)
all the best Danny

ypuech
09-20-2007, 06:40 PM
In fact, the deltatime variable is a .Net long/Int64 value. So a L is appended. It can be converted to an Integer64 MAXScript value. The L can be removed with a string operation after converting the value to a string.

Dmaxer
09-20-2007, 07:50 PM
thanks for the info ypuech :) that helps a lot , I was just not sure why it was there . I will look into converting it :)

CGTalk Moderation
09-20-2007, 07:51 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.