|
I am guessing this is a study assignment, and you were asked to create an app according to these steps.
Under this assumption:
If you have managed step 4 then apparently you are also, perhaps unwittingly, already doing step three.
So the question is: how do you iterate through the items at the moment when running them through the queries?
The purpose of step 3 was probably to enable you to write a loop, for example using an array.
Something like:
<br />
For i As Integer To NumberOfItemsCount -1<br />
RunYourQuery(ForExampleAnArrayWithItems(i))<br />
Next<br />
So once again, as you have managed step 4 already, point 3 is moot, unless your teacher/professor meant for you to iterate though the items with a For loop.
If I assumed wrong about the assignment thing, ignore this and listen to the other guys.
Good luck,
Johan
My advice is free, and you may get what you paid for.
|
|
|
|
|
Johan thanks for the reply.
I am iterateing through the db query's using the method you described. I have multiple files to read from and was wondering if a memory representation of each of the files would be a better approach?
Thanks again
meh
Statistics are like bikini's...
What the reveal is astonishing ...
But what they hide is vital ...
|
|
|
|
|
That is a trickier question.
Theoretically speaking the amount of files could be enormous, and the amount of items in each file could be enormous, (EnormousFileAmount x EnormousItemAmount = HumongousDataQuantity) therefore it would not be advisable to first load all files into memory.
However, the scenario probably is something along the lines of electronic order files, which means that the app would never be handling more than a limited amount of files at any given run.
Connecting many times to a data source (your files) and doing a little work each time is generally speaking slower than making a single connection to a data source and doing a lot of work at once.
However...
Because you are accessing files, you need to make a separate connection to each separate file anyway, so that point is also really moot.
Which brings us to the advantage of many connections and little work each time: data integrity.
I.e. if a connection is interrupted for whatever reason, you loose very little work, and when you are using loops inside loops, there is much less danger of information getting mixed up.
P.S. pointer for extra credit: use System.IO.File.Move("FileLocation/FileName", "ArchiveFileLocation/FileName") , when handling multiple files.
My advice is free, and you may get what you paid for.
|
|
|
|
|
Hi
I want to select various elements of and html document in a WebBrowser control but if web page has button element then I just dont get it selected.
And one more thing, how can I select specific javascript function within a webpage loaded in WebBrowser Control or get complete list of functions.
Can anyone help me please.
Regards,
MAP Tiger
Tiger Softwares
Software Designer and Developer
VB.NET, ASP.NET, VFP
|
|
|
|
|
You can use a hook to capture the clicks. There's code here[^] to disable right-clicks. Just need the hWnd of the webbrowser control.
|
|
|
|
|
i have web site supporting asp.net
i need to connect to db in my site by .net win application
example:
db path : wwwroot\db\main.mdb
Physical db path : E:\Domains\mysite\wwwroot\db\main.mdb
server ip : 00.000.000.000
i write this :
dim con as new oledb.oledbconnection
con.connectionstring = "provider=microsoft.jet.oledb.4.0;data source=\\00.000.000.000\E:\Domains\mysite\wwwroot\db\main.mdb"
but no luck .
Can anyone help?
modified on Sunday, August 3, 2008 4:12 PM
|
|
|
|
|
hi
share the database example dbshare
and set the connection string
"provider=microsoft.jet.oledb.4.0;data source =\\75.126.169.130\dbshare\main.mdb"
|
|
|
|
|
thanks for all first
did you mean Virtual Directories?
|
|
|
|
|
|
yes
'\\00.00.000.000\mydb\db.mdb' is not a valid path.
|
|
|
|
|
Then there isn't anything wrong with your code. You just don't have the correct path to the database.
|
|
|
|
|
hi blackeyes
It seems you dont understand the Basics, but now we cant teach you.You have to find out your self by reading.Check one of the Following Articles on how to connect to a Database. secondly never post your Connection string with your real IP, you dont know who is reading. lastly to Connect to the a Database in .NET you just import the necessary classes , for you case its oldedb and declare a connection string and assign it to what you just showed us and lastly it depends what you want to do with that connection, select ,delete, insert, ? then you have to create command objects for your queries and execute them. see my articles on that
http://www.codeproject.com/KB/vb/N-Tier_Application_VB.aspx[^]
hope it helps
Vuyiswa Maseko,
Sorrow is Better than Laughter, it may Sadden your Face, but It sharpens your Understanding
VB.NET/SQL7/2000/2005
http://vuyiswamb.007ihost.com
http://Ecadre.007ihost.com
vuyiswam@tshwane.gov.za
|
|
|
|
|
I want to Run My Program before Welcome Screen . please help me .
my program is a winapp .
en mahdi .
|
|
|
|
|
You need to make the program as a Windows service.
|
|
|
|
|
Hi
Is there any possibility that I can get the mouse position while it is moving at WebBrowser control?
Please help me asap.
Regards,
MAP Tiger
Tiger Softwares
Software Designer and Developer
VB.NET, ASP.NET, VFP
|
|
|
|
|
|
Thanks for the reply.
But frankly speaking, I know a function named MousePosition which works the same way as this one GetCursorPos but what I wanted to do is to get MouseMove event even mouse is not on WebBrowser control.
Well, however I have resolved the issue myself so once again for the help.
Regards,
MAP Tiger
Tiger Softwares
Software Designer and Developer
VB.NET, ASP.NET, VFP
|
|
|
|
|
Oh, ok. I see what you mean now.
|
|
|
|
|
I got struck in a point in my current project. Any help will be appreciated.
I am using Crystal Reports in Visual Studio 2005 Professional Edition to create a chart.
Bar charts are used to show up the data analysis. But I haven't found any option to change the color of the bars. It’s picking the colors automatically. I want to change the colors in custom order, based on my data.
Any Idea?
Thanks in Advance
|
|
|
|
|
dineeshd wrote: Any Idea?
Maybe look around at Crystal reports documentation.
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
hello,
i am working in Imaje softwares. i working in VB and VC. one project we override the Richtexteditor. here i am faceing have one problem. I have to override the VBKeycode's(VBLeftkey,VBRightkey,VBHome,VBend etc) for these i have to handle so many cases. i mean selecting the text and deselecting text. can any one plz help for this problem.
regards
bhaskar
|
|
|
|
|
bhaskarsgb wrote: can any one plz help for this problem.
What have you done thus far?
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
Anyone can help me,I need Visual Basic 2005 coding to capture image using webcam...Please help me...
|
|
|
|
|
I just googled "vb.net webcam":
Try:
http://www.codeproject.com/KB/dotnet/wiascriptingdotnet.aspx[^]">Code Project
Although I think it is in C# it will still be helpful.
Lloyd J. Atkinson
"Logic will get you from A to B, but imagination will take you everywhere" - ALbert Einstein
I look at Microsoft, and turn to my poster on the wall saying: "Bang head here in case of stress".
|
|
|
|
|
abipuni wrote: need Visual Basic 2005 coding to capture image using webcam...Please help me..
Will not provide code, but suggest you do a search to help generate some ideas.
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|