![]() |
|
Returning two values - Printable Version +- Computer Graphics Community (http://www.cgshelf.com/forum) +-- Forum: 3D (/forum-9.html) +--- Forum: Scripting (/forum-64.html) +--- Thread: Returning two values (/thread-421.html) |
Returning two values - kannan - 05-07-2008 07:25 PM Hi Is it possible to return two values from a procedure. I want to return a String and a float from procedure is it possible then how............? RE: Returning two values - arjun - 05-12-2008 06:47 PM Hey check out this method global proc string[] testProc() { string $result[]; $result[0] = string(23); // promote the float value of 23 to a string $result[1] = "pSphere1"; // standard string in the next slot return $result; // return the array } testProc(); RE: Returning two values - eslysmith128 - 03-09-2011 01:14 PM In css we can returning to value by the code given below global proc string[] testProc() { string $result[]; $result[0] = string(10); // promote the float value of 10 to a string $result[1] = "pSphere1"; // standard string in the next slot return $result; // return the array } testProc(); |