WinBatch Tech Support Home

Database Search

If you can't find the information using the categories below, post a question over in our WinBatch Tech Support Forum.

TechHome

UDF - UDS Library
plus
plus
plus
plus
plus
plus
plus
plus
plus
plus
plus
plus
plus
plus
plus
plus
plus
plus
plus
plus
plus
plus
plus

Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.

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's

Answer:

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
File Created: 2002:09:05:13:51:20
Last Updated: 2002:09:05:13:51:20