Util.HandleAppErr(this, fn, "Truncating comments: " orig_line) Ĭurline = orig_line. If ((cum_length orig_line.Length 2)>=iMaxLen) // If this one will push us over, truncate and warn: If (cum_length >= iMaxLen) break // stop appending if we're already over String final_comments = "'" sNewLine "' CHAR(13) CHAR(10) " String line_array = sOrigLines.Split("\r\n".ToCharArray()) String fn = MethodBase.GetCurrentMethod().Name Outliner power Fold, focus, and filter to cut big lists down to size. Edit them in any text editor or use one of the many TaskPaper compatible apps created by other developers. No locks TaskPaper files are future proof. Private string PrependCommentLine(string sNewLine, String sOrigLines, int iMaxLen) Type your lists into TaskPaper and each line is formatted into a project, task, or note. Fold, focus, and filter to make big lists small. Filter your lists by tag, type, or content. Organize projects:, - tasks, notes, and tags. A task can have zero or more tags anywhere on the line (not just trailing at the end). A task is a line that begins with a hyphen followed by a space (‘- ‘) which can optionally be prefixed (i.e indented) with tabs or spaces. / String: SQL string expression suitable for INSERT/UPDATE operations. TaskPaper 3 is all new, while retaining the original plain text foundation that’s worked since 2006. Here’s how TaskPaper reads a file: Files are expected to use the UTF-8 encoding and use ‘ ’ to separate lines. / Current text value assumed to be CRLF-delimited / Single text line to be prepended to existing text / the specified line to an existing block of text, assumed to have \r\n delimiters, and / Generate a SQL string value expression suitable for INSERT/UPDATE operations that prepends It's got some of our proprietary error handling in it, but once you rip that out, it may be helpful - I hope so. Here's a C# function that prepends a text line to an existing text blob, delimited by CRLFs, and returns a T-SQL expression suitable for INSERT or UPDATE operations.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |