Dear all,
I hope some one could help me on this simple question. How to find the field values from FIELD() structure in loop?
vn_fldcount = FCOUNT("tmpcur")
sele tmpcur
go top
do while !EOF()
for count_ = 1 to vn_fldcount
do case
case FIELDS(count_) = "C" and allstrim(FIELDS(count_).value)= "" => As per hightlighted, if possible to get field values from current fields because i need to examine either is null or not.
replace FIELDS(count_) with ""
case FIELDS(count_) = "N" and allstrim(STR(FIELDS(count_).value))=""
replace FIELDS(count_) with 0
Endcase
next
skip
enddo
Thanks apporpiate to someone could help.
I hope some one could help me on this simple question. How to find the field values from FIELD() structure in loop?
vn_fldcount = FCOUNT("tmpcur")
sele tmpcur
go top
do while !EOF()
for count_ = 1 to vn_fldcount
do case
case FIELDS(count_) = "C" and allstrim(FIELDS(count_).value)= "" => As per hightlighted, if possible to get field values from current fields because i need to examine either is null or not.
replace FIELDS(count_) with ""
case FIELDS(count_) = "N" and allstrim(STR(FIELDS(count_).value))=""
replace FIELDS(count_) with 0
Endcase
next
skip
enddo
Thanks apporpiate to someone could help.