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
 Snippets: default values for user input
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

fspafford
Senior Member

USA
45 Posts

Posted - Apr 25 2011 :  11:37:32 AM  Show Profile  Reply with Quote
I would like to supply a list of default values for a user input, from which the user selects one value to use with a drop down list.

Please consider this enhancement.

Regards,

Frank

accord
Whole Tomato Software

United Kingdom
3287 Posts

Posted - Apr 25 2011 :  1:52:41 PM  Show Profile  Reply with Quote
I'm not sure that I understood what you are asking, so as a simplified example:

class cClass1
{
int Apple;
int Mango;
int Pearl;
int Banana;
int Orange;
};

So you would like to see an option to list only certain items, specified somewhere, so you type

cClass1 obj;
obj.

and get Mango, Banana and Orange, for example? Is this what you are after?
Go to Top of Page

accord
Whole Tomato Software

United Kingdom
3287 Posts

Posted - Apr 25 2011 :  3:39:53 PM  Show Profile  Reply with Quote
*ah* and we already have a feature to "define a set of Smart Suggestions to use when assigning or comparing built-in or user-defined types."

http://www.wholetomato.com/products/features/smartSuggestions.asp#SuggestionsForType
Go to Top of Page

fspafford
Senior Member

USA
45 Posts

Posted - Apr 25 2011 :  4:17:13 PM  Show Profile  Reply with Quote
Sorry my question was not clear. I was talking about this feature:
------------
VA Snippets - Visual Assist X
http://www.wholetomato.com/products/features/vasnippets.asp
"To specify default values for user input, use an equals sign immediately after the user variable name, followed by the default value, then the closing dollar sign. Do not add spaces or quotes. If the variable appears more than once in the snippet, provide the default value in the rightmost invocation of the variable. "
------------
This is where I wanted the ability to use a list of values.

Regards,

Frank
Go to Top of Page

accord
Whole Tomato Software

United Kingdom
3287 Posts

Posted - Apr 26 2011 :  7:49:16 PM  Show Profile  Reply with Quote
OK, now I clearly understand the request.
However, I am wondering how many user would actually use this.
Out of interest, what kind of values would you list here?
My concern is that if you specify enum items, it won't be automatically updated when the code changes, and it may lead to confusing or annoying moments. (e.g. Some company use snippets shared with all programmers.)
Go to Top of Page

accord
Whole Tomato Software

United Kingdom
3287 Posts

Posted - Apr 26 2011 :  10:01:39 PM  Show Profile  Reply with Quote
We've been talking about this internally and feline had a good idea about this: you can create more VA snippets with the same "Shortcut" field, but with different "Title". This way, you can create more snippets for the same keyword, so practically you can specify a list which you can use to create more quasi-default values, or even "pre-selected" values for the variable. Hope this makes sense.

This doesn't allow you to use combinations, though. (e.g. two different "user input" variables with two different default value-list). However, maybe you can utilize this specific behavior of VA snippets to enhance your workflow.

Edited by - accord on Apr 26 2011 10:06:51 PM
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