Diff of /ooDialog/trunk/ooDialog/oodBasicControls.cpp [r8492] .. [r8493]  Maximize  Restore

Switch to side-by-side view

--- a/ooDialog/trunk/ooDialog/oodBasicControls.cpp
+++ b/ooDialog/trunk/ooDialog/oodBasicControls.cpp
@@ -1173,8 +1173,37 @@
  *
  *  This method is used as a convenient way to test code.
  */
-RexxMethod1(int, bc_test, ARGLIST, args)
-{
+RexxMethod1(int, bc_test, RexxStemObject, stm)
+{
+    RexxMethodContext *c = context;
+
+    RexxStemObject s = (RexxStemObject)c->GetStemArrayElement(stm, 3);
+    if ( s == NULLOBJECT )
+    {
+        printf("stm.3 is null\n");
+
+        RexxObjectPtr _t = c->GetStemElement(stm, "3.TEXT");
+        if ( _t == NULLOBJECT )
+        {
+            printf("Get stm ->3.text didn't work\n");
+        }
+        else
+        {
+            printf("Get stm ->3.text text=%s\n", c->ObjectToStringValue(_t));
+        }
+    }
+    else
+    {
+        RexxObjectPtr _t = c->GetStemElement(s, "TEXT");
+        if ( _t == NULLOBJECT )
+        {
+            printf("Get stm.3 ->text didn't work\n");
+        }
+        else
+        {
+            printf("Get stm.3.text text=%s\n", c->ObjectToStringValue(_t));
+        }
+    }
     return 0;
 }
 

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks