- Code: Select all Expand view
Local V_ct_strd:=(" / / ")
@ 15, 260 COMBOBOX (V_ct_strd) ITEMS aBase1(3,"mach",256,"mc_ct_strd") size 80,80 OF oDlg PIXEL
function aBase1(workarea,cFile,xx,cField)
*--------------------------------
local aItems:={}
local y:=0
aAdd(aItems,space(256)) //Put First element empty
use (cFile) new
index on &(cField) to temp
go top
do while ! eof()
y:=ASCAN(aItems,(cFile)->&cField)
if y==0
aAdd(aItems,(cFile)->&cField)
dbSkip()
else
dbSkip()
endif
enddo
*use
ferase("temp.ntx")
*select(nArea)
*use nselect
return aItems