Sha256: 5f9923db46d09f6681d5d411dc71cc2a3d9c3f5314b3e1e97f5093219ff5a3de

Contents?: true

Size: 738 Bytes

Versions: 8

Compression:

Stored size: 738 Bytes

Contents

 
def savecalcrecord # this method adds a new script file
  require 'fileutils'
  if @a_calcscriptfilename   
   newdata =@a_calcscriptrecord.to_s     
	 fullnewname = @a_calcscriptfilename.to_s + ".math"
        begin # exception trapped block
         fileName = File.join( $calcscript_directory, fullnewname )
        	fd = File.open(fileName,"w")
	        fd.print(newdata) # save the record info to the file
	        fd.close
          @newdisplay=newdata # show the record info in the browser
   $currentscriptname = "%s" %   [@a_calcscriptfilename] # grab the new filename to create

       rescue 
            @newdisplay = "\n" + "system error in createnew method"
        end  # exception rescue
   end
  end # end of createnew

Version data entries

8 entries across 8 versions & 2 rubygems

Version Path
bigtinker-0.93 code/superant.com.rwdcalc/savechangedscript.rb
bigtinker-0.94 code/superant.com.rwdcalc/savechangedscript.rb
bigtinker-0.96 code/superant.com.rwdcalc/savechangedscript.rb
bigtinker-0.98 code/superant.com.rwdcalc/savechangedscript.rb
bigtinker-0.97 code/superant.com.rwdcalc/savechangedscript.rb
rwddemo-0.90 code/rwdcalc/savechangedscript.rb
rwddemo-0.91 code/superant.com.rwdcalc/savechangedscript.rb
rwddemo-0.92 code/superant.com.rwdcalc/savechangedscript.rb