04.08.2013 Views

Download - dFPUG-Portal

Download - dFPUG-Portal

Download - dFPUG-Portal

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Figure 19. Category and subcategory changed in the template<br />

What can we expect in the nearby<br />

future<br />

Well, I can tell you that your friends at eTecnologia<br />

(hmmm, where did I hear THAT expression<br />

before!?) have a book full of features they want to<br />

implement.<br />

So let’s take a short tour on soon to be expected<br />

features, but only a few of them, otherwise you<br />

would still be reading until next week and beyond.<br />

IntelliSense for tables<br />

When working in VFP you can open a table in the<br />

command window and type the name followed by<br />

a dot (TableName.). This gives you a list with the<br />

fieldnames. This only happens in the command<br />

window but not in the codesnippets where it would<br />

be really useful.<br />

VFP.Net in a future release will have this intellisense<br />

available in all code windows.<br />

A table can also have assigned an alias to it in<br />

the DataEnvironment or in the Project Manager, it<br />

defaults to the table’s name. After writing MyTableAlias<br />

and dot, you will get the list of fields available.<br />

And with the optional strong typing functionality<br />

you can get even better results like:<br />

? LEFT(myTable.MyNumericField,4)<br />

you will get an error at compile time because<br />

LEFT() (or any other string manipulation function<br />

for that matter) expects a string and you are using a<br />

numeric field. And of course you can catch wrong<br />

assignments.<br />

You can also do:<br />

MyTable.MyNumericField = someValue<br />

This works faster than a REPLACE command.<br />

Mind you, when you apply buffering you still<br />

should do a tableupdate(). Yeah, SOME work is left<br />

for you to do!<br />

December 2009 FoxRockX Page 18

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!