Armando_Rod2000
16th September 2002, 17:14
Hi!!!. There is a predefined variable that show me the number of occurences selected in a form?
dbinderbr
16th September 2002, 17:31
Hello,
You can use the pre-defined variable mark.table
long mark.table() 4R
This array indicates which records are marked. The size of this array is set to fattr.occurnr. For example, if records 3 and 8 are marked, then:
mark.table(3) = 1
mark.table(8) = 1
Armando_Rod2000
16th September 2002, 17:58
Ok i knew it, Marked, fattr.occurnr, filled.occ but i don´t know if exist a predefined variable that show me the occ´s number selected, for example if mark.table(1) = 1 and mark.table(8) = 1 then this predefined contain 2. There is a especial function or a predefined variable for it?
dbinderbr
16th September 2002, 19:35
I believe I got the idea now !!
You want to count how many marked occurrences you have right?
If this is the idea, unfortunatelly you have to design your own function like the example below:
function long marked.occurs()
{
long ct, ret
for ct = 1 to fattr.occurnr
if mark.table(ct) then
ret = ret + 1
endif
endfor
return(ret)
}
If I really got the idea, this function will return what you want.
Armando_Rod2000
17th September 2002, 22:43
Thanks, but i only was looking for resume more lines in my script. I thinked that there was a predefined variable that resume a function like yours and evit me to prog more lines in my script, so thanks a lot for your help.
dbinderbr
19th September 2002, 02:48
Hello again...
I have an idea, if you want to resume your script, why dont you make a DLL with your own functions like this one?
jaapzwaan
23rd September 2002, 10:54
Look for the variable marked here: http://www.baanboard.com/programmers_manual_baanerp_help_misc_predefined_variables