1

Konu: replace for

Visual Fox Pro
replace txg.txg_no WITH "error" FOR txg.txg_id = 0 IN txg

yukaridaki kodu calistirinca txg cursoru direk eof oluyor. acaba bu txg de cursoru hareket ettirmeden "replace for" komutunu kullanabilecegim bir yontem varmi. ? yoksa komuttan sonra eski yerine manual olarakmi goturmeliyim ?

vfoxpro9 sp2
ms sql server 2005

2

Re: replace for

Visual Fox Pro
update txg set txg.txg_no = "error" where txg.txg_id=0

3

Re: replace for

txg cursorundeki tüm         "txg.txg_id = 0"   olan       kayıtlara   "error" mı   atamak istiyorsun?
çünkü yapmak istediğin bu gibi anlaşılıyor. eğer buysa  eof olması doğaldır.
değilse if   endif içinde kullan

if txg.txg_id = 0
replace txg.txg_no WITH "error" in txg
endif

4 Son düzenleyen, txgfrm (28.03.2008 14:23:03)

Re: replace for

soykanozcelik yazdı:
Visual Fox Pro
update txg set txg.txg_no = "error" where txg.txg_id=0


evet update sanirim hallediyor. galiba replace icin cursor hareket ettirmeden mumkun olmayacak. mecbur updateylen yapacas.

ercan yazdı:

txg cursorundeki tüm         "txg.txg_id = 0"   olan       kayıtlara   "error" mı   atamak istiyorsun?


evet yapmak istedigim tam olarak bu. eof olmasi tabikide dogal ancak bunu herseferinde tekrar eski yerine getirmekte biraz yorucu. replacede cursoru yerinde birakmanin yollarini ariyorum.