Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Converting VFP ASCAN style to .NET
Message
From
25/06/2007 01:19:41
 
 
To
25/06/2007 00:06:20
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Environment versions
Environment:
VB 8.0
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01235284
Message ID:
01235286
Views:
17
Michel,

There are several ways you could do this.

I've seen some people toss the contents into a datatable, and then do a DataTable.Select(), or use a rowfilter, to locate the row you're looking for.

In .NET 2.0, you can use the new List Class. You can define a class with properties for all the time zone element properties, and then add them into a List class. So suppose you create a class called TimeZoneProps. You can do the following:
List<TimeZoneProps> oRecs = new List<TimeZoneProps>();
oRecs.Add(new TimeZoneProps("prop1","prop2","prop3" ));
After that, there's a Find method on the List class that you can use to get to a "record".


The syntax for generics is a little different in VB, so you'll have to do a little research.


Kevin
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform