Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Feature Requests
 Default value for snippet arguments

You must be registered to post a reply.
Click here to register.

Screensize:
UserName:
Password:
Format: BoldItalicizeUnderlineStrikethrough Align leftCenterAlign right Insert horizontal ruleUpload and insert imageInsert hyperlinkInsert email addressInsert codeInsert quoted textInsert listInsert Emoji
   
Message:

Forum code is on.
Html is off.

 
Check to subscribe to this topic.
   

T O P I C    R E V I E W
jtwillia Posted - Jan 21 2009 : 3:19:31 PM
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.



2   L A T E S T    R E P L I E S    (Newest First)
jtwillia Posted - Jan 22 2009 : 11:06:45 AM
Awesome. Thanks. And btw get someone to paste that text onto the snippet help page!

Jeff
sean Posted - Jan 22 2009 : 01:27:01 AM
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%$


© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000