Re: Win32Lib MleText selections

new topic     » goto parent     » topic index » view thread      » older message » newer message

Oops, I forgot to include the count(x,y) function:

function count(object lookin, object lookfor)

  atom found
  found = 0

  if atom(lookin) and sequence(lookfor) then
    return 0
  elsif atom(lookin) and atom(lookfor) and lookin=lookfor then
    return 1
  elsif atom(lookin) and atom(lookfor) and lookin!=lookfor then
    return 0
  else
    for ctr = 1 to length(lookin) do
      if compare(lookin[ctr],lookfor)=0 then
        found = found + 1
      end if
    end for
    return found
  end if
end function


new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu