Meeting Recap for May 10, 2003

No foxpro news at this month (besides the linux-whil discussion).

Microsoft knowledge base article, to deal with data loss and vfp tables after an abnormal shutdown.  This has been fixed in 7 & 8 but in 6 it would set a temporary attribute on the file, so if you crashed your data would disappear.  According to MS, if you haven’t changed the structure of that table since vfp 6, that attribute could be left on.  So it still make you experience the same problem.  The knowledge base has sample code so you can change it to turn that attribute off.  KBA 817805.

Mmfudg meeting is 9:30 next saturday. 

Today’s grafudg topic is vs.net  Mike Timpe

C# strongly typed

Vb.net option strict (strong)/option explicit (weak)

C#, must end with a semicolon.  All keywords, variables, function names are case sensitive.  Continuation of a statement requires a plus sign.  Comments allow double slash to be used to start a single line comment or a slash star to start a series of lines that also end with slash star.

Curly brackets define statements

Using System

Using System.Windows.Forms

You have access to all of the functions in System “namespace” but only have access to the functions in Windows.Forms  Unless you specifically name them, you don’t get access to the classes in those name spaces.

VB: no character is required to end a statement.  All keywords, variables, function names are case insensitive.  Continuation ofa statement requires an underscore.

Classes defines the beginning of a class while end class is the last statement

Comments use a single quote on each line.  No multi-line format is used.

VB is the same for access to system namespace, except it does have some functions available by default which you do not have to declare. 

Name spaces are an organizer or container to group things together, not necessary physical.  You can take and create classes and assign them to a namespace.  Not required to be in the same physical file.

 

Correction to the minutes I just sent to you...the minutes listed Cathy Gero as
the person who created the vfp toolkit, but it has come to my attention this
was really Kamal Patel.

 KamalPatel
 
http://fox.wikis.com/wc.dll?Wiki~VFPToolkitForDotNet~DotNet

[in the meeting it was named that Cathy Gero did the vfptoolkit, but I have been since informed it was Karmal Patel.]  so one of the two, created virtually a visualfoxpro namespace to use 80% of the functions so it will give you a head start… the toolbox is written in c# and vb.net

If you have a control that you dropped onto the form, in order to get to the behavior, go to one of those forms and double click, it will create the section of code that you are going to add in what to do when this behavior is correct.  What will happen though, if you go and drop a text box on the form and double click and it adds this code, and you go back and change the name, the ide doesn’t come through and change the reference to the old name in the code.  It is important to get a plan of what you want to accomplish first, name them before you start double clicking and writing code…in fox, with a change, the object won’t become disassociated with the object, in .net some of the things get changed, you have a dead link. 

While .net allows you to use unmanaged code, they really make you work to do unmanaged development.  Some of the things you can do to c++ to get to the lower level features, “managed” C++ makes it almost impossible to get to those features.

C# is the “Microsoft preferred” language.  The underlying preferred language.  Vb.net came along with some of the capabilities, but there are some things you can not do. 

When you create code without double clicking on a button; everything has to be created as a class.  There is a specific way you need to use to create this.

C# class methods:

“modifier” “returnType” “MethName” “PList”

public

private


vb class methods:

“modifier” sub “MethName”  “Plist”

public friend


returning a value in c# you always have to return a value.

Return (a void)

Return a value of the “ReturnType”

Vb.net

        Return a value of the “ReturnType”

        FunctionName = “ReturnType”

Essentially, in C, everything is a function, there are no procedures.

Depending on where you place a variable depends on where you can reach the variables.

There are only things you can put in a class properties or methods.  A field is a property. 

There is an is operator (similar to vartype) if an object is of thistype

In a switch statement, you need something to break up the flow to get it to go to the endcase.  It will not go to skip the end just because the next “case” word was hit. It will just keep dropping down until it sees the break. in fox, if you have a case statement, and you fall into the case 1 category, you can guarantee the case 2 won't run...that's not true here

If you were going to put in a menu, you simply start typing on the form, set up file, drop down and do and exit, to go to the next one, set up next one…click on them to edit (like a menu design live)  when you doubleclick, it creates the menu item click method, fills in the basic code for the menu.  You fill in your code in between the curly brackets.  Under exit you can put this.close() to exit.  Similar to thisform.release in fox.

Opportunities to learn more about .net:

Register at windows developer network

There is an msdn magazine free

Subscribe to CoDe Magazine

Check out webmatrix and gotdotnet.com for more information.

Hentzenwerke book on .net for VFP developers.  (however it was mentioned that there may be disappointment in the book depending on whether your goal of reading the book was how to find specific fox functionality in the .net world.)

There is no Grafug meeting next month.




Thanks to Sharon for providing us with the notes!!!


Summer meetings cancelled!!

Our June meeting conflicts with the Advisor DevCon conference which both Mike Potjer and I will be attending. That means no facilities will be available so the June meeting is cancelled. You may attend the MMFUDG meeting the following Saturday and Rick Bean will be recapping what he learned at DevCon.

In the past, we’ve suspended the July and August meetings so everyone can enjoy the summer. Unless we end up with some big name begging to speak to our group during those two months, we’ll do the same for 2003.


Final Words

As usual .. if you have any topics you’d like to see presented .. or better yet, want to present a topic … just send me an email and let me know!!

FOX ROCKS!!

*-*-*-*-*-*-*-*-*-*-*-*-*-*

Cathy Pountney

GRAFUG Secretary

pountneyc@optimalinternet.com

www.grafug.com

www.optimalinternet.com

www.evideon.com

Return to Archives page