Archive: return to a specific page


return to a specific page
Hello,
I have written a small function to check if the user selected the folder which the master sql server databases is.

Function Checkmasterdb
ClearErrors
iffileexists $INI_dbdir\master.mdf ok notok
ok:
return
notok:
MessageBox MB_OK|MB_ICONEXCLAMATION "wrong path!"
quit
Functionend

I want instead of 'quit', to return to the custom page(custompageA) in which he/she selected the folder so he/she can select a new one.

Thanx!


That's not possible. However you should place that code in the leave function of the custom page and then call abort if the path is wrong to prevent the user from leaving the custom page.

Vytautas


Thanx once again Vy!