I can't see your VI documentation. You probably need to attach all of the additional files that the VI documentation tool creates. In any case, look at the example called Dialog Box Demo.vi. The only difference between that and what you want is that the demo returns a string thats wired to a indicator and you want to return a number.