Author |
Topic  |
|
Uniwares
Tomato Guru
    
Portugal
2322 Posts |
Posted - Jun 25 2008 : 12:10:55 PM
|
Would be nice to have a forum where we could exchange useful (and of course useless) VA snippets. |
|
feline
Whole Tomato Software
    
United Kingdom
19179 Posts |
Posted - Jun 25 2008 : 5:40:16 PM
|
I have raised this idea myself more than once. I have also asked if anyone was interested in using it, but never saw much interest on the forum.
If you think you would use this I am happy to make a forum area and see what happens  |
zen is the art of being at one with the two'ness |
 |
|
Uniwares
Tomato Guru
    
Portugal
2322 Posts |
Posted - Jun 25 2008 : 6:12:03 PM
|
Even nicer would be a wiki ala pinvoke.net (with va integration of cource), but hey, a forum is already a good start and definitely less work  |
 |
|
feline
Whole Tomato Software
    
United Kingdom
19179 Posts |
|
Uniwares
Tomato Guru
    
Portugal
2322 Posts |
Posted - Jun 27 2008 : 11:25:44 AM
|
Ok, lets share the wealth then. Might take some time to get people started in creating their own snippets though. Btw: I had one requirement that would be nice in snippets: conditionals, like $if$param1$ $else$ $endif$ to create snippets with parameters and depending on their value include/exclude parts of the snippet. |
 |
|
feline
Whole Tomato Software
    
United Kingdom
19179 Posts |
Posted - Jul 05 2008 : 11:40:23 AM
|
I am very wary of trying to turn snippets into some form of programming language. Can you post an example showing what you are trying to do here?
Is having two forms of the same snippet an option, so you just pick the form that does what you want? I know this requires duplicating the snippet, and keeping the two forms in sync, but it is available now  |
zen is the art of being at one with the two'ness |
 |
|
Uniwares
Tomato Guru
    
Portugal
2322 Posts |
Posted - Jul 06 2008 : 08:30:01 AM
|
Yes, I think that multiple versions of the same snippet are an option. What I was thinking about was something like "if the user provided a value for $parameterX$ then ..." so you can include/exclude parts of the snippet depending on user input. But yes, its a long way, and probably the best way to implement this in the end is dynamic C#/VB.NET and a bit of reflection  |
 |
|
|
Topic  |
|