On Wed, Sep 7, 2011 at 1:58 AM, Ashok Agrawal <[email protected]> wrote:
> Hi,
> I am a new member of this Group.  I have done programming in VB6,
> foxpro, C, C++, etc  but new to VB.NET.
>
> I had earlier made a program in foxpro to generate a question paper by
> randomly selecting questions from databases. It functions properly. It
> picks up 10 MCQ, 10 Fill in Blanks, 10 True/ false, 10 Matching and 5
> Essay type questions and finally printout the whole thing.
>
> I want to do the same thing in VB.net or VB 2010.
>
> Can any please advise how to go about it
-------------------

Where is your data going to be contained?

In FP did you have a special iteration to pick 10 of type A question
and then 10 of Type B Question?

The idea of use Table_name in .Net doesn't work.  Instead you will ask
for a datatable from the data source (SQL Server/Access/XML/DBF) and
then perform your logic against that.  Think of that like a FP cursor.
 This will become a reusable section of code for the rest of your
days!  We all need access to data in everything we do.

You can find the Kevin McNeich book on line for free download nowadays
.NET for a VFPer is close to that title.  www.oakleaf.net I believe
was his company site.

Anyway you will have to approach your logic differently in .NET to
achieve the same goal.  You will have a lot more control on .NET on
just about everything as compared to VFP, but that takes extra lines
of code as well so you may see it as more cumbersome to get the same
thing done.  Been there and done that!




-- 
Stephen Russell

Unified Health Services
60 Germantown Court
Suite 220
Cordova, TN 38018

Telephone: 888.510.2667

901.246-0159 cell

-- 
You received this message because you are subscribed to the Google
Groups "DotNetDevelopment, VB.NET, C# .NET, ADO.NET, ASP.NET, XML, XML
Web Services,.NET Remoting" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/dotnetdevelopment?hl=en?hl=en
or visit the group website at http://megasolutions.net

Reply via email to