User Tools

Site Tools


pracro:devas_corner

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
pracro:devas_corner [2010/08/02 14:32] devapracro:devas_corner [2010/08/10 10:49] deva
Line 5: Line 5:
 <?xml version='1.0' encoding='UTF-8'?> <?xml version='1.0' encoding='UTF-8'?>
 <macro name="test_resume" version="1.0"> <macro name="test_resume" version="1.0">
 +
 +  <resume>
 +    <script src="regexp.lua"/>
 +    <script>
 +      -- inline code
 +      if(regexp('.+', ''))
 +      then
 +        return 'a string'
 +      else
 +        return 'another string'
 +      end
 +    </script>
 +  </resume>
 +
   <script>   <script>
     function foo()     function foo()
Line 13: Line 27:
       foo = getWidgetByName('test2')       foo = getWidgetByName('test2')
  
-      if ( foo && foo.type == 'lineedit' )+      if ( foo && foo.getType() == 'lineedit' )
       then       then
          foo.setValue('bleh')          foo.setValue('bleh')
pracro/devas_corner.txt · Last modified: 2011/01/14 14:49 by deva