FieldIndex

Posts   
 
    
Wally
User
Posts: 285
Joined: 29-Aug-2007
# Posted on: 23-Apr-2009 17:21:44   

Just to help people looking for the fieldIndex.

I always loose .5 to 1 hour searching the "/$%?&&?%" fieldIndex.

I wrote these lines to help people find where they are located.

If you are like me, you do type "LLBGen projet namespace" and "." to find every specific namespace you need. You try all of them without finding the one you need for the fieldIndex.

Solution: Just add the root namespace alone ... this is where FieldIndex resides !!!

... don't add any specific namespace like "EntityClasses" or "CollectionClasses".

Hope it could help anybody in the futur... including myself sunglasses

Keywords... FieldIndex, int, GetScalar

MTrinder
User
Posts: 1461
Joined: 08-Oct-2008
# Posted on: 23-Apr-2009 21:06:23   

To be honest, it always catches me out as well (and I work here!) simple_smile

Thanks for the post.

Matt

psandler
User
Posts: 540
Joined: 22-Feb-2005
# Posted on: 24-Apr-2009 02:49:57   

If you use C# (might work in VB.NET 2008 as well), you can type the name of the fieldIndex, e.g.:

CustomerFieldIndex

(Casing has to be correct), then hit Alt-Shift-F10 and Enter, and the correct "using" statement will be added at the top of your code file. You can tell that you typed it correctly before hitting Alt-Shift-F10 if you see a little red box in the bottom right of your text. You can also click the little red box for additional options, like adding the full qualified class name inline.

This works for all classes, of course, not just FieldIndexes. simple_smile

I'm sure most people here know this trick, but if you aren't using it already it will save you a lot of time.

Wally
User
Posts: 285
Joined: 29-Aug-2007
# Posted on: 24-Apr-2009 14:18:08   

Alt-Shift-F10 works great ! Thanks a lot psandler ... I also discover the little red bar, thanks also for that too.

smile