http://wiki.sunyear.com.tw/index.php?title=MasteringVFP/17/3&feed=atom&action=history
MasteringVFP/17/3 - 修訂沿革
2024-03-28T20:00:56Z
本站上此頁的修訂沿革
MediaWiki 1.16.0
http://wiki.sunyear.com.tw/index.php?title=MasteringVFP/17/3&diff=2249&oldid=prev
Elleryq: add category
2006-04-24T02:20:48Z
<p>add category</p>
<table style="background-color: white; color:black;">
<col class='diff-marker' />
<col class='diff-content' />
<col class='diff-marker' />
<col class='diff-content' />
<tr valign='top'>
<td colspan='2' style="background-color: white; color:black;">←上一修訂</td>
<td colspan='2' style="background-color: white; color:black;">在2006年4月24日 (一) 02:20所做的修訂版本</td>
</tr><tr><td colspan="2" class="diff-lineno">第1行:</td>
<td colspan="2" class="diff-lineno">第1行:</td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins style="color: red; font-weight: bold; text-decoration: none;">[[category:MasteringVFP/17]]</ins></div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>===VFP與ASP===</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>===VFP與ASP===</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>VFP 可以開發 COM 元件,ASP 可以建立 COM 元件,這正是絕妙組合。如果你已經在之前的章節學會開發 COM 元件,那麼這一章對你來說可說是太簡單了。</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>VFP 可以開發 COM 元件,ASP 可以建立 COM 元件,這正是絕妙組合。如果你已經在之前的章節學會開發 COM 元件,那麼這一章對你來說可說是太簡單了。</div></td></tr>
</table>
Elleryq
http://wiki.sunyear.com.tw/index.php?title=MasteringVFP/17/3&diff=1205&oldid=prev
Elleryq在2006年4月24日 (一) 02:13
2006-04-24T02:13:09Z
<p></p>
<table style="background-color: white; color:black;">
<col class='diff-marker' />
<col class='diff-content' />
<col class='diff-marker' />
<col class='diff-content' />
<tr valign='top'>
<td colspan='2' style="background-color: white; color:black;">←上一修訂</td>
<td colspan='2' style="background-color: white; color:black;">在2006年4月24日 (一) 02:13所做的修訂版本</td>
</tr><tr><td colspan="2" class="diff-lineno">第6行:</td>
<td colspan="2" class="diff-lineno">第6行:</td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>是的,由於 VFP 的工作區只能在 VFP 的環境下使用,ASP 並不認識這個東西,所以你必須要進行一些加工甚至轉換,才可以把資料傳遞出去。</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>是的,由於 VFP 的工作區只能在 VFP 的環境下使用,ASP 並不認識這個東西,所以你必須要進行一些加工甚至轉換,才可以把資料傳遞出去。</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'>-</td><td style="background: #ffa; color:black; font-size: smaller;"><div>可以避掉這層轉換功夫的最快方法,莫過於直接將 Request、Response ...等 ASP 物件傳入 VFP COM <del class="diffchange diffchange-inline">元件裡面。這方法是可行的。</del></div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div>可以避掉這層轉換功夫的最快方法,莫過於直接將 Request、Response ...等 ASP 物件傳入 VFP COM <ins class="diffchange diffchange-inline">元件裡面,這方法是可行的。</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div> </div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins class="diffchange diffchange-inline">當然也可以利用純 method 的方式來進行存取。</ins></div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>還可以想到的方法,就是使用 ADODB 的 RecordSet:</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>還可以想到的方法,就是使用 ADODB 的 RecordSet:</div></td></tr>
</table>
Elleryq
http://wiki.sunyear.com.tw/index.php?title=MasteringVFP/17/3&diff=1204&oldid=prev
Elleryq在2006年4月21日 (五) 06:29
2006-04-21T06:29:03Z
<p></p>
<table style="background-color: white; color:black;">
<col class='diff-marker' />
<col class='diff-content' />
<col class='diff-marker' />
<col class='diff-content' />
<tr valign='top'>
<td colspan='2' style="background-color: white; color:black;">←上一修訂</td>
<td colspan='2' style="background-color: white; color:black;">在2006年4月21日 (五) 06:29所做的修訂版本</td>
</tr><tr><td colspan="2" class="diff-lineno">第1行:</td>
<td colspan="2" class="diff-lineno">第1行:</td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>===VFP與ASP===</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>===VFP與ASP===</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>VFP 可以開發 COM 元件,ASP 可以建立 COM 元件,這正是絕妙組合。如果你已經在之前的章節學會開發 COM 元件,那麼這一章對你來說可說是太簡單了。</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>VFP 可以開發 COM 元件,ASP 可以建立 COM 元件,這正是絕妙組合。如果你已經在之前的章節學會開發 COM 元件,那麼這一章對你來說可說是太簡單了。</div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins style="color: red; font-weight: bold; text-decoration: none;"></ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins style="color: red; font-weight: bold; text-decoration: none;">這時候會對你造成困擾的,反而是該怎麼傳遞資料。</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins style="color: red; font-weight: bold; text-decoration: none;"></ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins style="color: red; font-weight: bold; text-decoration: none;">是的,由於 VFP 的工作區只能在 VFP 的環境下使用,ASP 並不認識這個東西,所以你必須要進行一些加工甚至轉換,才可以把資料傳遞出去。</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins style="color: red; font-weight: bold; text-decoration: none;"></ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins style="color: red; font-weight: bold; text-decoration: none;">可以避掉這層轉換功夫的最快方法,莫過於直接將 Request、Response ...等 ASP 物件傳入 VFP COM 元件裡面。這方法是可行的。</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins style="color: red; font-weight: bold; text-decoration: none;"></ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins style="color: red; font-weight: bold; text-decoration: none;">還可以想到的方法,就是使用 ADODB 的 RecordSet:</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins style="color: red; font-weight: bold; text-decoration: none;">*直接用 ADODB 去取 RecordSet,如果是這樣子,你不如在 ASP 裡面寫 code。</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins style="color: red; font-weight: bold; text-decoration: none;">*使用 VFPCOM Utility,這是微軟提供的一組類別庫,你需要另行下載安裝之。這裡面有 2 個 API 可以幫你作轉換的工作:CursorToRS()、RSToCursor() 。這下你就可以利用 VFP 強大的操作資料能力來處理資料了。</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins style="color: red; font-weight: bold; text-decoration: none;">*利用 VFP 8 以後提供的 CURSORADAPTER。</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins style="color: red; font-weight: bold; text-decoration: none;"></ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins style="color: red; font-weight: bold; text-decoration: none;">最後還可以用 XML 來傳遞,VFP 有提供 CursorToXML()、XMLToCursor()、XMLUpdateGram()這三個函數。不過可惜的是,ASP 操作 XML 的能力並不是很強,如果你是要利用 XML + XSLT 來純 Render 資料的話,這個倒是不錯的考量方案。</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins style="color: red; font-weight: bold; text-decoration: none;"></ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins style="color: red; font-weight: bold; text-decoration: none;">參考資料:</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins style="color: red; font-weight: bold; text-decoration: none;">*[http://gethelp.devx.com/techtips/vfox_pro/10min/10min1299.asp Inquiry.com - answers for IT professionals]</ins></div></td></tr>
</table>
Elleryq
http://wiki.sunyear.com.tw/index.php?title=MasteringVFP/17/3&diff=1203&oldid=prev
Elleryq在2006年4月19日 (三) 05:34
2006-04-19T05:34:05Z
<p></p>
<p><b>新頁面</b></p><div>===VFP與ASP===<br />
VFP 可以開發 COM 元件,ASP 可以建立 COM 元件,這正是絕妙組合。如果你已經在之前的章節學會開發 COM 元件,那麼這一章對你來說可說是太簡單了。</div>
Elleryq