Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
User name:
Password:
Save Password
Forgot your password?

 All Forums
 Visual Assist
 Feature Requests
 Default value for snippet arguments
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

jtwillia
New Member

USA
8 Posts

Posted - Jan 21 2009 :  3:19:31 PM  Show Profile  Reply with Quote
It would be nice if you could supply a default value for snippet arguments. Something like putting $VarType=Control$ instead of just $VarType$. Then when the argument popup window is presented to the user, the VarType input box would already have Control put into the box.

Or take it a step further, and allow $VarType=Control;int;float;string$ and then the argument window would use a combo box for that argument. But I'd be happy with just simple default value support.



sean
Whole Tomato Software

USA
2817 Posts

Posted - Jan 22 2009 :  01:27:01 AM  Show Profile  Reply with Quote
Sorry - simple defaults have been supported for over a year now but the documentation wasn't written for some reason.

Here are some samples:
$counter=idx$
$author=%USERNAME%$
$message=(hello world)$
$anotherMessage=Here 'is' "another" message!$
$SomeDir=c:\\someDir$
$AnotherDir=%USERPROFILE%$

Go to Top of Page

jtwillia
New Member

USA
8 Posts

Posted - Jan 22 2009 :  11:06:45 AM  Show Profile  Reply with Quote
Awesome. Thanks. And btw get someone to paste that text onto the snippet help page!

Jeff
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000