<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Fox4um - fox içinden c#]]></title>
	<link rel="self" href="http://www.fox4um.com/feed/atom/topic/1258/"/>
	<updated>2009-06-24T08:25:45Z</updated>
	<generator>PunBB</generator>
	<id>http://www.fox4um.com/topic/1258/fox-icinden-c/</id>
		<entry>
			<title type="html"><![CDATA[Re: fox içinden c#]]></title>
			<link rel="alternate" href="http://www.fox4um.com/post/7691/#p7691"/>
			<content type="html"><![CDATA[<p>denedim. gigabayt&#039;a gerek yok. .txt olarak 1 mb olan bir dosya xml ile 10 katına çıkıyor. bu tür 50-100 dosyayı arka arkaya işlersen farkediyor. xml&#039;nin özelliği universal olması. eğer mümkünse düz .txt kesinlikle daha hızlı.</p>]]></content>
			<author>
				<name><![CDATA[metin]]></name>
				<uri>http://www.fox4um.com/user/39/</uri>
			</author>
			<updated>2009-06-24T08:25:45Z</updated>
			<id>http://www.fox4um.com/post/7691/#p7691</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: fox içinden c#]]></title>
			<link rel="alternate" href="http://www.fox4um.com/post/7682/#p7682"/>
			<content type="html"><![CDATA[<p>Buyuk derken gigabytelarca datadan bahsetmiyoruz. O zaman zaten ne olsa yavas. Onun disinda denemeden emin olma. Yer kaplayacagi dogru ama bu in-process DLL. VFPnin kendi icinde data aktarimi gibi. Aslinda sadece pointer aktariyor sanirim. Herhalde kullanilacagi data da tas catlasa 10-15 Mb filandir. VFP&#039;nin string fonksiyonlarindan bile kimse sikayetci degilken bundan mi sikayetci olacagiz:)</p>]]></content>
			<author>
				<name><![CDATA[cetinbasoz]]></name>
				<uri>http://www.fox4um.com/user/11/</uri>
			</author>
			<updated>2009-06-23T10:29:07Z</updated>
			<id>http://www.fox4um.com/post/7682/#p7682</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: fox içinden c#]]></title>
			<link rel="alternate" href="http://www.fox4um.com/post/7681/#p7681"/>
			<content type="html"><![CDATA[<p>data çok büyükse xml hem çok yer kaplar hem de yavaştır.</p>]]></content>
			<author>
				<name><![CDATA[metin]]></name>
				<uri>http://www.fox4um.com/user/39/</uri>
			</author>
			<updated>2009-06-23T08:30:34Z</updated>
			<id>http://www.fox4um.com/post/7681/#p7681</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: fox içinden c#]]></title>
			<link rel="alternate" href="http://www.fox4um.com/post/7679/#p7679"/>
			<content type="html"><![CDATA[<p>çözüldü çok sağol. 
</p><p>basit işlerde parametre göndermek mantıklı ve daha hızlı 
<br />büyük data ların olduğu&nbsp; yapılarda xml iyi çözüm anladığım kadarı ile hiç de yavaş değil gerçekten.</p>]]></content>
			<author>
				<name><![CDATA[KONURALP]]></name>
				<uri>http://www.fox4um.com/user/16/</uri>
			</author>
			<updated>2009-06-22T18:02:53Z</updated>
			<id>http://www.fox4um.com/post/7679/#p7679</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: fox içinden c#]]></title>
			<link rel="alternate" href="http://www.fox4um.com/post/7678/#p7678"/>
			<content type="html"><![CDATA[<p>XML ile oldukca hizli oluyor.&nbsp; Anladigim sorunun halloldu, dogru mu?
</p><p>String array yerine &quot;v1, v2, ...&quot; gibi virgulle ayrilmis seri gonderip Split ile array&#039;e dondurmekte olur.</p>]]></content>
			<author>
				<name><![CDATA[cetinbasoz]]></name>
				<uri>http://www.fox4um.com/user/11/</uri>
			</author>
			<updated>2009-06-22T17:22:23Z</updated>
			<id>http://www.fox4um.com/post/7678/#p7678</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: fox içinden c#]]></title>
			<link rel="alternate" href="http://www.fox4um.com/post/7676/#p7676"/>
			<content type="html"><![CDATA[<p>çok teşekkurler. 
</p><p>c# a&nbsp; gönderip alacağım parametrelerde küçük boyutlu 8 - 9 tane dizi eleman vardı. 
<br />bu işleri xml ile yaptım yavaşta değil gibi geldi bana.</p>]]></content>
			<author>
				<name><![CDATA[KONURALP]]></name>
				<uri>http://www.fox4um.com/user/16/</uri>
			</author>
			<updated>2009-06-22T16:59:45Z</updated>
			<id>http://www.fox4um.com/post/7676/#p7676</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: fox içinden c#]]></title>
			<link rel="alternate" href="http://www.fox4um.com/post/7671/#p7671"/>
			<content type="html"><![CDATA[<p>çetin hocam,şimdi anladım.sanırım ileride banada lazım olacak :-) bilgileriniz için teşekkür ederim</p>]]></content>
			<author>
				<name><![CDATA[neyzen]]></name>
				<uri>http://www.fox4um.com/user/333/</uri>
			</author>
			<updated>2009-06-22T05:17:55Z</updated>
			<id>http://www.fox4um.com/post/7671/#p7671</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: fox içinden c#]]></title>
			<link rel="alternate" href="http://www.fox4um.com/post/7670/#p7670"/>
			<content type="html"><![CDATA[<p>C#&#039;a array gonderme kismi bende de sorun cikardi, fazla ugrasmadim. Array yerine XML string gonderip, array almak daha kolayima geldi. Array boyu cok buyukse sorun cikabilir ama onun C# ile ilgisi yok zaten VFP9&#039;da array limii icin mevcut hafiza hikayesi var. Sonucuda XML dataset olarak almak mumkun (hatirladigim eger dataset dondururses elemanlarina VFP ulasamiyor ancak ds.GetXml&#039;i VFPden kullanabiliyorsun).
</p><p>C# kodu:
<br /></p><div class="codebox"><div class="head">C#</div><table class="csharp fxcode"><tbody><tr class="li1"><td class="ln"><pre class="de1">1
<br />2
<br />3
<br />4
<br />5
<br />6
<br />7
<br />8
<br />9
<br />10
<br />11
<br />12
<br />13
<br />14
<br />15
<br />16
<br />17
<br />18
<br />19
<br />20
<br />21
<br />22
<br />23
<br />24
<br />25
<br />26
<br />27
<br />28
<br />29
<br />30
<br />31
<br />32
<br />33
<br />34
<br />35
<br />36
<br />37
<br />38
<br />39
<br />40
<br />41
<br />42
<br />43
<br />44
<br />45
<br />46
<br />47
<br />48
<br />49
<br />50
<br />51
<br />52
<br />53
<br />54
<br />55
<br />56
<br />57
<br />58
<br />59
<br />60
<br />61
<br />62
<br />63
<br />64
<br />65
<br />66
<br />67
<br />68
<br />69
<br />70
<br />71
<br />72
<br />73
<br />74
<br />75
<br />76
<br />77
<br />78
<br />79
<br />80
<br />81
<br />82
<br />83
<br /></pre></td><td class="de1"><pre class="de1"><span class="kw1">using</span> <span class="co3">System</span><span class="sy0">;</span>
<br /><span class="kw1">using</span> <span class="co3">System.Collections.Generic</span><span class="sy0">;</span>
<br /><span class="kw1">using</span> <span class="co3">System.Linq</span><span class="sy0">;</span>
<br /><span class="kw1">using</span> <span class="co3">System.Text</span><span class="sy0">;</span>
<br /><span class="kw1">using</span> <span class="co3">System.Runtime.InteropServices</span><span class="sy0">;</span>
<br /><span class="kw1">using</span> <span class="co3">System.Collections.Specialized</span><span class="sy0">;</span>
<br /><span class="kw1">using</span> <span class="co3">System.IO</span><span class="sy0">;</span>
<br /><span class="kw1">using</span> <span class="co3">System.Xml.Linq</span><span class="sy0">;</span>
<br />&nbsp;
<br /><span class="kw1">namespace</span> csCOM
<br /><span class="br0">&#123;</span>
<br />&nbsp;
<br />&nbsp; &nbsp; <span class="co2">#region Interface</span>
<br />&nbsp; &nbsp; <span class="br0">&#91;</span>Guid<span class="br0">&#40;</span><span class="st0">&quot;36065C93-92AB-408d-B43E-3BEACC61D9E1&quot;</span><span class="br0">&#41;</span><span class="br0">&#93;</span>
<br />&nbsp; &nbsp; <span class="br0">&#91;</span>ComVisible<span class="br0">&#40;</span><span class="kw1">true</span><span class="br0">&#41;</span><span class="br0">&#93;</span>
<br />&nbsp; &nbsp; <span class="kw1">public</span> <span class="kw4">interface</span> ICSCOMUtils
<br />&nbsp; &nbsp; <span class="br0">&#123;</span>
<br />&nbsp; &nbsp; &nbsp; &nbsp; <span class="co2">#region Properties</span>
<br />&nbsp; &nbsp; &nbsp; &nbsp; <span class="co2">#endregion</span>
<br />&nbsp;
<br />&nbsp; &nbsp; &nbsp; &nbsp; <span class="co2">#region Methods</span>
<br />&nbsp; &nbsp; &nbsp; &nbsp; <span class="kw4">string</span><span class="br0">&#91;</span><span class="br0">&#93;</span> GetFileList<span class="br0">&#40;</span><span class="kw4">string</span> foldersXML,<span class="kw4">string</span> searchPattern, <span class="kw4">bool</span> includeSubFolders<span class="br0">&#41;</span><span class="sy0">;</span>
<br />&nbsp; &nbsp; &nbsp; &nbsp; <span class="kw4">string</span><span class="br0">&#91;</span><span class="br0">&#93;</span> GetFileList2<span class="br0">&#40;</span><span class="kw4">string</span> folder, <span class="kw4">string</span> searchPattern, <span class="kw4">bool</span> includeSubFolders<span class="br0">&#41;</span><span class="sy0">;</span>
<br />&nbsp; &nbsp; &nbsp; &nbsp; <span class="co2">#endregion</span>
<br />&nbsp; &nbsp; <span class="br0">&#125;</span>
<br />&nbsp;
<br />&nbsp; &nbsp; <span class="co2">#endregion</span>
<br />&nbsp;
<br />&nbsp; &nbsp; <span class="co2">#region InterfaceEvents</span>
<br />&nbsp; &nbsp; <span class="br0">&#91;</span>Guid<span class="br0">&#40;</span><span class="st0">&quot;A36B440F-75DA-4398-A356-533A684888F8&quot;</span><span class="br0">&#41;</span><span class="br0">&#93;</span>
<br />&nbsp; &nbsp; <span class="br0">&#91;</span>InterfaceType<span class="br0">&#40;</span>ComInterfaceType.<span class="me1">InterfaceIsIDispatch</span><span class="br0">&#41;</span><span class="br0">&#93;</span>
<br />&nbsp; &nbsp; <span class="kw1">public</span> <span class="kw4">interface</span> ICSCOMUtilEvents
<br />&nbsp; &nbsp; <span class="br0">&#123;</span>
<br />&nbsp; &nbsp; &nbsp; &nbsp; <span class="co2">#region Events</span>
<br />&nbsp;
<br />&nbsp; &nbsp; &nbsp; &nbsp; <span class="co2">#endregion</span>
<br />&nbsp; &nbsp; <span class="br0">&#125;</span> 
<br />&nbsp; &nbsp; <span class="co2">#endregion</span>
<br />&nbsp;
<br />&nbsp; &nbsp; <span class="br0">&#91;</span>ClassInterface<span class="br0">&#40;</span>ClassInterfaceType.<span class="me1">AutoDual</span><span class="br0">&#41;</span><span class="br0">&#93;</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="co1">// No ClassInterface</span>
<br />&nbsp; &nbsp; <span class="br0">&#91;</span>ComSourceInterfaces<span class="br0">&#40;</span><a href="http://www.google.com/search?q=typeof+msdn.microsoft.com"><span class="kw3">typeof</span></a><span class="br0">&#40;</span>ICSCOMUtilEvents<span class="br0">&#41;</span><span class="br0">&#41;</span><span class="br0">&#93;</span>
<br />&nbsp; &nbsp; <span class="br0">&#91;</span>Guid<span class="br0">&#40;</span><span class="st0">&quot;EC248819-8E55-4ca2-B9A9-F8A7D4854AC8&quot;</span><span class="br0">&#41;</span><span class="br0">&#93;</span> &nbsp; &nbsp; &nbsp;<span class="co1">// CLSID</span>
<br />&nbsp; &nbsp; <span class="br0">&#91;</span>ProgId<span class="br0">&#40;</span><span class="st0">&quot;CSCOM.Util&quot;</span><span class="br0">&#41;</span><span class="br0">&#93;</span>
<br />&nbsp; &nbsp; <span class="br0">&#91;</span>ComVisible<span class="br0">&#40;</span><span class="kw1">true</span><span class="br0">&#41;</span><span class="br0">&#93;</span>
<br />&nbsp; &nbsp; <span class="kw1">public</span> <span class="kw4">class</span> CSCOMUtil <span class="sy0">:</span> ICSCOMUtils
<br />&nbsp; &nbsp; <span class="br0">&#123;</span>
<br />&nbsp; &nbsp; &nbsp; &nbsp; <span class="co2">#region ICSCOMUtils Members</span>
<br />&nbsp;
<br />&nbsp; &nbsp; &nbsp; &nbsp; <span class="kw1">public</span> <span class="kw4">string</span><span class="br0">&#91;</span><span class="br0">&#93;</span> GetFileList<span class="br0">&#40;</span><span class="kw4">string</span> foldersXML,<span class="kw4">string</span> searchPattern, <span class="kw4">bool</span> includeSubFolders<span class="br0">&#41;</span>
<br />&nbsp; &nbsp; &nbsp; &nbsp; <span class="br0">&#123;</span>
<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; XDocument xml <span class="sy0">=</span> XDocument.<span class="me1">Parse</span><span class="br0">&#40;</span>foldersXML<span class="br0">&#41;</span><span class="sy0">;</span>
<br />&nbsp;
<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; StringCollection result <span class="sy0">=</span> <a href="http://www.google.com/search?q=new+msdn.microsoft.com"><span class="kw3">new</span></a> StringCollection<span class="br0">&#40;</span><span class="br0">&#41;</span><span class="sy0">;</span>
<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="kw1">foreach</span> <span class="br0">&#40;</span>XElement x <span class="kw1">in</span> xml.<span class="me1">Descendants</span><span class="br0">&#40;</span><span class="st0">&quot;folders&quot;</span><span class="br0">&#41;</span><span class="br0">&#41;</span>
<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="br0">&#123;</span>
<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="kw4">string</span> folder <span class="sy0">=</span> x.<span class="me1">Attribute</span><span class="br0">&#40;</span><span class="st0">&quot;folder&quot;</span><span class="br0">&#41;</span>.<span class="me1">Value</span><span class="sy0">;</span>
<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; result.<span class="me1">AddRange</span><span class="br0">&#40;</span>
<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Directory.<span class="me1">GetFiles</span><span class="br0">&#40;</span>folder, searchPattern,
<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; includeSubFolders
<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="sy0">?</span> SearchOption.<span class="me1">AllDirectories</span>
<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="sy0">:</span> SearchOption.<span class="me1">TopDirectoryOnly</span><span class="br0">&#41;</span>.<span class="me1">ToArray</span><span class="br0">&#40;</span><span class="br0">&#41;</span><span class="br0">&#41;</span><span class="sy0">;</span>
<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="br0">&#125;</span>
<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="kw4">string</span><span class="br0">&#91;</span><span class="br0">&#93;</span> files <span class="sy0">=</span> <a href="http://www.google.com/search?q=new+msdn.microsoft.com"><span class="kw3">new</span></a> <span class="kw4">string</span><span class="br0">&#91;</span>result.<span class="me1">Count</span><span class="br0">&#93;</span><span class="sy0">;</span>
<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; result.<span class="me1">CopyTo</span><span class="br0">&#40;</span>files, <span class="nu0">0</span><span class="br0">&#41;</span><span class="sy0">;</span>
<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="kw1">return</span> files<span class="sy0">;</span>
<br />&nbsp; &nbsp; &nbsp; &nbsp; <span class="br0">&#125;</span>
<br />&nbsp;
<br />&nbsp; &nbsp; &nbsp; &nbsp; <span class="kw1">public</span> <span class="kw4">string</span><span class="br0">&#91;</span><span class="br0">&#93;</span> GetFileList2<span class="br0">&#40;</span><span class="kw4">string</span> folder, <span class="kw4">string</span> searchPattern, <span class="kw4">bool</span> includeSubFolders<span class="br0">&#41;</span>
<br />&nbsp; &nbsp; &nbsp; &nbsp; <span class="br0">&#123;</span>
<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; StringCollection result <span class="sy0">=</span> <a href="http://www.google.com/search?q=new+msdn.microsoft.com"><span class="kw3">new</span></a> StringCollection<span class="br0">&#40;</span><span class="br0">&#41;</span><span class="sy0">;</span>
<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; result.<span class="me1">AddRange</span><span class="br0">&#40;</span>
<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Directory.<span class="me1">GetFiles</span><span class="br0">&#40;</span>folder, searchPattern,
<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; includeSubFolders
<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="sy0">?</span> SearchOption.<span class="me1">AllDirectories</span>
<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="sy0">:</span> SearchOption.<span class="me1">TopDirectoryOnly</span><span class="br0">&#41;</span>.<span class="me1">ToArray</span><span class="br0">&#40;</span><span class="br0">&#41;</span><span class="br0">&#41;</span><span class="sy0">;</span>
<br />&nbsp;
<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="kw4">string</span><span class="br0">&#91;</span><span class="br0">&#93;</span> files <span class="sy0">=</span> <a href="http://www.google.com/search?q=new+msdn.microsoft.com"><span class="kw3">new</span></a> <span class="kw4">string</span><span class="br0">&#91;</span>result.<span class="me1">Count</span><span class="br0">&#93;</span><span class="sy0">;</span>
<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; result.<span class="me1">CopyTo</span><span class="br0">&#40;</span>files, <span class="nu0">0</span><span class="br0">&#41;</span><span class="sy0">;</span>
<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="kw1">return</span> files<span class="sy0">;</span>
<br />&nbsp; &nbsp; &nbsp; &nbsp; <span class="br0">&#125;</span>
<br />&nbsp; &nbsp; &nbsp; &nbsp; <span class="co2">#endregion</span>
<br />&nbsp; &nbsp; <span class="br0">&#125;</span>
<br /><span class="br0">&#125;</span></pre></td></tr></tbody></table></div><p>
</p><p>GUID&#039;leri yeniden uretebilirsin (tools\Create Guid) ya da oldugu gibi kullan.
</p><p>VFP test kodu:
</p><div class="codebox"><div class="head">Visual Fox Pro</div><table class="visualfoxpro fxcode"><tbody><tr class="li1"><td class="ln"><pre class="de1">1
<br />2
<br />3
<br />4
<br />5
<br />6
<br />7
<br />8
<br />9
<br />10
<br />11
<br />12
<br />13
<br />14
<br />15
<br />16
<br />17
<br />18
<br /></pre></td><td class="de1"><pre class="de1"><span class="kw2">Sys</span><span class="br0">&#40;</span><span class="nu0">2339</span><span class="sy0">,</span><span class="nu0">1</span><span class="br0">&#41;</span>
<br /><span class="kw1">Local</span> loCSCOM <span class="kw2">As</span> <span class="st0">&quot;CSCOM.Util&quot;</span>
<br />loCSCOM <span class="sy0">=</span> <span class="kw1">Createobject</span><span class="br0">&#40;</span><span class="st0">&quot;CSCOM.Util&quot;</span><span class="br0">&#41;</span>
<br />&nbsp;
<br /><span class="kw1">CREATE</span> <span class="kw4">CURSOR</span> folders <span class="br0">&#40;</span>folder m<span class="br0">&#41;</span>
<br /><span class="kw1">INSERT</span> <span class="kw2">INTO</span> folders <span class="kw3">VALUES</span> <span class="br0">&#40;</span><span class="st0">&quot;c:<span class="es0">\t</span>emp&quot;</span><span class="br0">&#41;</span>
<br /><span class="kw1">INSERT</span> <span class="kw2">INTO</span> folders <span class="kw3">VALUES</span> <span class="br0">&#40;</span><span class="st0">&quot;c:<span class="es0">\A</span>TI&quot;</span><span class="br0">&#41;</span>
<br /><span class="kw1">INSERT</span> <span class="kw2">INTO</span> folders <span class="kw3">VALUES</span> <span class="br0">&#40;</span><span class="st0">&quot;c:<span class="es0">\P</span>rogram files&quot;</span><span class="br0">&#41;</span>
<br /><span class="kw1">INSERT</span> <span class="kw2">INTO</span> folders <span class="kw3">VALUES</span> <span class="br0">&#40;</span><span class="st0">&quot;c:<span class="es0">\W</span>indows&quot;</span><span class="br0">&#41;</span>
<br />CURSORTOXML<span class="br0">&#40;</span>'folders'<span class="sy0">,</span>'m<span class="sy0">.</span><span class="me1">lcFolders</span>'<span class="sy0">,</span><span class="nu0">2</span><span class="br0">&#41;</span>
<br />&nbsp;
<br />start <span class="sy0">=</span> <span class="kw3">SECONDS</span><span class="br0">&#40;</span><span class="br0">&#41;</span>
<br />laResult <span class="sy0">=</span> loCSCOM<span class="sy0">.</span><span class="me1">GetFileList</span><span class="br0">&#40;</span>m<span class="sy0">.</span><span class="me1">lcFolders</span><span class="sy0">,</span><span class="st0">&quot;*.*&quot;</span><span class="sy0">,.</span><span class="kw3">T</span><span class="sy0">.</span><span class="br0">&#41;</span>
<br /><span class="kw1">DIMENSION</span> laResult<span class="br0">&#91;</span><span class="kw1">ALEN</span><span class="br0">&#40;</span>laResult<span class="br0">&#41;</span><span class="sy0">,</span><span class="nu0">1</span><span class="br0">&#93;</span>
<br /><span class="kw1">CREATE</span> <span class="kw4">CURSOR</span> result <span class="br0">&#40;</span>filename c<span class="br0">&#40;</span><span class="nu0">254</span><span class="br0">&#41;</span><span class="br0">&#41;</span>
<br /><span class="kw1">APPEND</span> <span class="kw2">FROM</span> <span class="kw2">ARRAY</span> laResult
<br /><span class="sy0">?</span> <span class="kw3">SECONDS</span><span class="br0">&#40;</span><span class="br0">&#41;</span><span class="sy0">-</span>m<span class="sy0">.</span><span class="me1">start</span><span class="sy0">,</span> <span class="kw1">ALEN</span><span class="br0">&#40;</span>laResult<span class="br0">&#41;</span>
<br /><span class="kw1">browse</span></pre></td></tr></tbody></table></div><p>
</p><p>Daha az sayida folder ile basla. Ben array limit icin fazla koydum. Benim makinede ilk calismasinda:
<br />144 saniye, 126583 dosya
<br />sonraki calismalari (caching):
<br />5 saniye, 126583 dosya</p>]]></content>
			<author>
				<name><![CDATA[cetinbasoz]]></name>
				<uri>http://www.fox4um.com/user/11/</uri>
			</author>
			<updated>2009-06-21T15:55:59Z</updated>
			<id>http://www.fox4um.com/post/7670/#p7670</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: fox içinden c#]]></title>
			<link rel="alternate" href="http://www.fox4um.com/post/7669/#p7669"/>
			<content type="html"><![CDATA[<p>Fox içinden c# a dizi&nbsp; nasıl gönderirim ve c# içinden fox a dizi nasıl döndürebilirim.
<br />biraz uğraştım yapamadım. bir örnek yazabilirmisiniz ?
<br />internet üzerinde okuduğum makalelerde dizi boyu çok büyükse fox un
<br />sınırlamalarından dolayı sorun çıkabilir diyordu&nbsp; gerçekten sorun olurmu?
</p><p>teşekkürler</p>]]></content>
			<author>
				<name><![CDATA[KONURALP]]></name>
				<uri>http://www.fox4um.com/user/16/</uri>
			</author>
			<updated>2009-06-21T08:29:17Z</updated>
			<id>http://www.fox4um.com/post/7669/#p7669</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: fox içinden c#]]></title>
			<link rel="alternate" href="http://www.fox4um.com/post/7667/#p7667"/>
			<content type="html"><![CDATA[<p>Neyzen,
<br />Benim hali hazirda kullanimda olan C# rutinim belki iyi bir ornek olur. Yillardir VFP tablolariyla calisan bir uygulamamiz vardi. Hala VFP versiyonu destekleniyor. Ancak son versiyonu hem VFP hem de SQL server destekli. Kullanici seciyor hangisini isterse (ve nedense tamami SQL server secti). Mevcut kullanicilari SQL server&#039;a gecirirken (upsize hikayesi) data aktarimi dert. SQL server&#039;a bol miktarda data aktarmak gerekiyorsa bu is epey zaman aliyor ve hizlandirmak icin bir dizi yontem var. Bu yontemlarin icinde benim en hizli buldugum .Net&#039;deki SqlBulkCopy class idi. Ben de onu kullandim. C#&#039;da VFP datasina baglanip SQL server&#039;a aktaran kod oldu. Ayni anda birden fazla tabloyu asenkron olarak aktariyor. Bu C# rutininden once bazi aktarimlarimiz saatler surebiliyor ve hatta bazen zaman asimina ugrayip kaliyordu. Simdi birkac dakikadan fazla surmuyor. Onun kodu, nasil register edilecegi VFP kullanim ornegi burada olacakti. SqlBulkCopy diye bir bak istersen.</p>]]></content>
			<author>
				<name><![CDATA[cetinbasoz]]></name>
				<uri>http://www.fox4um.com/user/11/</uri>
			</author>
			<updated>2009-06-20T14:44:01Z</updated>
			<id>http://www.fox4um.com/post/7667/#p7667</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: fox içinden c#]]></title>
			<link rel="alternate" href="http://www.fox4um.com/post/7665/#p7665"/>
			<content type="html"><![CDATA[<p>merhaba ,
</p><p>ben web servisleri için kullanıyorum .
</p><p>bunun dışında&nbsp; &nbsp; fox un 6-7 yıl sonra açmazları artacak.&nbsp; 
</p><p>şimdiden c# a başlamak doğrudur diye düşünüyorum.</p>]]></content>
			<author>
				<name><![CDATA[KONURALP]]></name>
				<uri>http://www.fox4um.com/user/16/</uri>
			</author>
			<updated>2009-06-20T14:18:23Z</updated>
			<id>http://www.fox4um.com/post/7665/#p7665</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: fox içinden c#]]></title>
			<link rel="alternate" href="http://www.fox4um.com/post/7663/#p7663"/>
			<content type="html"><![CDATA[<p>Üsdatlar foxpro içerisinden c# ı kullanmayı anlayamadım.neden böyle bir şeye ihtiyaç duyalım.olayı biraz açabilirmiyiz?ne avantajları olabilir?</p>]]></content>
			<author>
				<name><![CDATA[neyzen]]></name>
				<uri>http://www.fox4um.com/user/333/</uri>
			</author>
			<updated>2009-06-20T11:22:41Z</updated>
			<id>http://www.fox4um.com/post/7663/#p7663</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: fox içinden c#]]></title>
			<link rel="alternate" href="http://www.fox4um.com/post/7638/#p7638"/>
			<content type="html"><![CDATA[<p>Dogrudan dizi oluyor zaten. F#&#039;li ornek vardi.</p>]]></content>
			<author>
				<name><![CDATA[cetinbasoz]]></name>
				<uri>http://www.fox4um.com/user/11/</uri>
			</author>
			<updated>2009-06-17T18:53:50Z</updated>
			<id>http://www.fox4um.com/post/7638/#p7638</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[fox içinden c#]]></title>
			<link rel="alternate" href="http://www.fox4um.com/post/7636/#p7636"/>
			<content type="html"><![CDATA[<p>Foxpro içinden c#&nbsp; a parametre gönderme ve geriye parametre döndürmede sorunsuz çalışıyor. 
</p><p>Fox içinden c# a dizi&nbsp; nasıl gönderirim ve c# içinden fox a dizi nasıl döndürebilirim. 
</p><p>Benim aklıma gelen yöntem fox dan&nbsp; xml yaratmak aynı isimli xml i&nbsp; c# dan okumak 
</p><p>bunun&nbsp; dışında çözüm var mı ?
</p><p>teşekkürler
</p><p>ÖRNEK 
<br />&nbsp; &nbsp; &nbsp;public string ornek ( string[] dizi1 )
<br />{&nbsp; &nbsp;
</p><p>.....
<br />.....
<br />&nbsp; return dizi2 [] ;
<br />&nbsp; }</p>]]></content>
			<author>
				<name><![CDATA[KONURALP]]></name>
				<uri>http://www.fox4um.com/user/16/</uri>
			</author>
			<updated>2009-06-17T18:48:33Z</updated>
			<id>http://www.fox4um.com/post/7636/#p7636</id>
		</entry>
</feed>

