public static string GetSummary(string html, int summaryLength) { string text = GetHtmlText(html); text = DelHTML(text); text = Strtitle(text); if (summaryLength >= text.Length) return text; return
在SQL查詢條件變數中,如果再加入變數,請加rtrim,否則無法返回你所需要的資料。因為之前的資料沒有測試,今天使用的時候發現返回資料為空白,測試Procedure沒有問題,加str也不行,加ltrim也不行,換成rtrim通過。其實在之前也遇到過這種問題,看來好記性不如爛筆頭,記下來最不容易忘記。SQL Example:Code highlighting produced by Actipro CodeHighlighter
查詢建立時間 --表select * from sysobjects where id=object_id(N'表名') and xtype='U' --表的結構 select * from syscolumns where id=object_id(N'表名') --預存程序 select * from sysobjects where id=object_id(N'預存程序名') and xtype='P' 查詢最後修改時間 --預存程序select
4.01.00 Beta 1, Jun 1 2012 Important notes (changes that may break existing code) ====================================================== * Updated transport stream format to 410, to support transfer ofvariant unicode strings as
這兩天,用xalion的入門文章學習kbmMW的使用,當用kbmMW嚮導產生一個Service後,需要註冊到kbmMWServer中,具體的方法在產生的Service中已經有說明:// INSTRUCTIONS FOR REGISTRATION/USAGE// -----------------------------------// Please update the uses clause of the datamodule/form the TkbmMWServer isplaced
在第一個簡單的例子,伺服器返回給用戶端的是一個簡單的變數,但是在日常的應用中,往往需要給用戶端傳輸大量的資料,例如要返迴流,在kbmMW 裡面返迴流也是比較方便的,下面我們就以給用戶端返回一個照片為例,說明一下。 還是在上次的例子服務裡面,我們添加一下這個功能,首先要定義服務函數處理: function Performgetimg(ClientIdent:TkbmMWClientIdentity; const Args:array of Variant):Variant;