Quantcast
Channel: WinDev Forum
Viewing all articles
Browse latest Browse all 1914

HReadSeek() Altering a element of the line returned (3 replies)

$
0
0
Hi,
for training purposes,id liked to search with (composite key) return the position of the line and then access record line and change a element ... so far i have the lines below,but it s triggering error,(i know i can load in table and aply filteror que however id like to learn how to access it directly.Can someone give a example of a code brick that could work.

thanks in advance

ValCompKey is Buffer
ValCompKey = HBuildKeyValue(time,daymonthyear , sAb2, sAb3,sAb4)
HReadSeek(time,time.daymonthyear, ValCompKey, hIdentical)  ///Returns record line associated with the search
WHILE HFound() = True
	...
	HReadFirst(time,hCurrentRecNum)// access record line first position key 1
	HReadNext(time,hCurrentRecNum)//key2
	HReadNext(time,hCurrentRecNum)//key3
	HReadNext(time,hCurrentRecNum)//key4
	time.name=EDT_NoName1         //change or add key 5 
	HModify(time.name,hCurrentRecNum) //modify (key) if already entered
	HModify(time,hCurrentRecNum)   //modify (complete line)
    HSave(time.name)               // save file
	
	Trace("test")
		END


Viewing all articles
Browse latest Browse all 1914

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>