Author
Topic: Dialog() Function Issue (Read 2618 times)

I tried to find the document listing when features were added but couldn't recall where that is located and couldn't find it so thought I would ask...

I have been switching things over to call the Dialog Function rather than putting the Dialog template in the body of my scripts, as discussed in another thread. I have "include"d my dialog templates and am encountering an issue...the current pattern so far is that it works for 6.2 dialogs but gives me an error saying the Format variable cannot be found for 6.1 dialogs. Is this expected?

For whatever reason your dialog template format variable could out of scope when your call the Dialog function to create the dialog causing the error. Scope problems are usually the result of the scope rules imposed for UDFs. For example, you would need to '#include' the template file in a UDF if you display the dialog while in a UDF.

Another possibility is that you are missing the format variable from the dialog template because of some editing issue or something.

FWIW, you can find formation on when a feature was added to WinBatch by searching the "Fixes and Enhancements.txt" file that is part of each WinBatch distribution.

Logged

"Success is a lousy teacher. It seduces smart people into thinking they can't lose." - Bill Gates