2016-09-01 01:12 PM
2017-01-06 11:23 AM
2017-01-06 10:40 PM
ispyridis wrote:it seems my problem is that the array has duplicate values. is there a way to make an array with unique values out of the initial one?
I'm trying to refine the associated property object label I posted earlier in this thread. I'm trying to use the values retrieved as drop down lists to filter information. I use command : values "___dbsetname" _dbsetname
_dbsetname is an array that holds the names of the databases that provide info to the property object. Is this a problem of the request ASSOCEL_PROPERTIES? can the values retrieved in array be used for parameter values.
P.S. in the array there are common records is this a problem? should I make a new array that holds descrete values?
Thanks Ioannis
2017-01-07 07:20 AM
n=0 nnn = REQUEST ("ASSOCEL_PROPERTIES", "iscomp,dbsetname,keycode,keyname,code,name,fullname,quantity,totquantity,unitname,unitformatstr,propobjname", n, DATA) if n = 0 THEN TEXT2 0, 0, "No properties" ELSE j = 0 k=1 FOR i=1 TO n IF i/1 = 1 or (i-1)/12 = int((i-1)/12) THEN _iscomp= data k=k+1 ENDIF NEXT i k=1 FOR i=1 TO n IF i/2 = 1 or (i-2)/12 = int((i-2)/12) THEN _dbsetname = data text2 15,k,_dbsetname k=k+1 ENDIF NEXT i k=2 __dbsetname[1] = _dbsetname[1] text2 0,0, __dbsetname[1] FOR i=2 to VARDIM1 (_dbsetname) IF _dbsetname = _dbsetname[i-1] then k=k else k=k+1 __dbsetname = _dbsetname ENDIF NEXT i for i=1 to vardim1 (__dbsetname) text2 5,i, __dbsetname next i text2 10,5,vardim1 (__dbsetname) text2 10,2,vardim1 (_dbsetname) ! ! ! VALUES "___DBSETNAME" __dbsetname, CUSTOM !
2017-01-07 07:57 AM