UDFs and Gotos
Keywords: UDFs Gotos
Question:
Are goto commands not usable in a udf? The following doesn't work...#definefunction read_tbuttons() if ... then ... for ... next if section == 1 then goto adsi if section == 2 then goto discovery ...file handles, buffers and ole instructions are mentioned, but not goto'sAnswer:
It works, but it must stay inside the UDF. You cannot goto some label outside the udf.The UDF should be 100% self contained.
Article ID: W15327