ENDFUNCTION | END FUNCTION
 
Syntax


ENDFUNCTION

ENDFUNCTION or END FUNCTION syntax are allowed

Description


ENDFUNCTION terminates a FUNCTION procedure

FUNCTIONs must be defined before they are called. 

Example

function toupper(a(100) as string) as string 
  dim i as integer
  dim l as integer
  l = len(a)
  for i=0 to l
    if a(i) <= "z" and a(i) >= "a" then a(i) = a(i) - &H20
  next i 
  return a
end function

main:

print toupper("asdf")                   '  will print ASDF

Differences from other BASICs

See also