…
…
…
Nel tutorial di oggi vi mostreremo come convertire un file xls in CSV con C#.
using System; using System.Data; using Microsoft.SqlServer.Dts.Runtime; using System.Windows.Forms; using Excel = Microsoft.Office.Interop.Excel; using Microsoft.Office.Interop.Excel; namespace ST_6dc747ff29cf41c6ac11b7c0bca33d19.csproj { [System.AddIn.AddIn("ScriptMain", Version = "1.0", Publisher = "", Description = "")] public partial class ScriptMain : Microsoft.SqlServer.Dts.Tasks.ScriptTask.VSTARTScriptObjectModelBase { #region VSTA generated code enum ScriptResults { Success = Microsoft.SqlServer.Dts.Runtime.DTSExecResult.Success, Failure = Microsoft.SqlServer.Dts.Runtime.DTSExecResult.Failure }; #endregion /* The execution engine calls this method when the task executes. To access the object model, use the Dts property. Connections, variables, events, and logging features are available as members of the …
…
…
Nel tutorial di oggi vi mostreremo come creare una funzione in Javascript che rileva in quale quadrante si trova un angolo.
function findWhichQuadrant(angle) { if(angle >= 0 && angle < 90) return 'In alto a destra'; else if(angle >= 90 && angle < 180) return 'In alto a sinistra'; else if(angle >= 180 && angle < 270) return 'In basso a sinistra'; else if(angle >= 270 && angle < 360) return 'In basso a destra'; } …
…