Traversing & Assembling File structures. -
I have a VB6 question. I am trying to traverse a directory / sub-directory structure while at the same time assembling the file names within the structure. Here is an example of what I am looking for.
DIRECTORY
SUB DIRECTORY
FILE1
FILE2
SUB DIRECTORY
FILE1
FILE2
-or-
C:\MDSE
\Monday
\100AM.TXT
\200AM.TXT
.....
\Tuesday
\100AM.TXT
\200AM.TXT
.....
........
Would yield a file list of
C:\MDSE\Monday\100AM.TXT
C:\MDSE\Monday\200AM.TXT
C:\MDSE\Tuesday\100AM.TXT
C:\MDSE\Tuesday\200AM.TXT
This would traverse down to the lowest level within the structure.
Has anyone put together any sort of code snippet or function to perform the above given only the high level directory name?
Any help would be appreciated. Thanks!
Traversing & Assembling File structures. -
I have a VB6 question. I am trying to traverse a directory / sub-directory structure while at the same time assembling the file names within the structure. Here is an example of what I am looking for.
DIRECTORY
SUB DIRECTORY
FILE1
FILE2
SUB DIRECTOR
Structures vs. Classes -
I started looking into structures after finding out about the lacking default copy constructor issue with classes. What a pain that is. However, in the MS documentation on structures, I found the recommendation that you use structures in place of classes if:
data size is less than 1
sort structures from a text file assistance -
I am trying to get started with a project in vb 2005 that loads an array of structures
Returning an array of structures -
Hi,
Im trying to return an array of structures from a function, but when the array returns only one of the structures has the values in it.
Im using a class to read an xml file, and then load the values into an array of structures.
The array is called pos_var_rec(8), and ive tri
making an expression tree -
hi,
i want to make an expression tree. but i don't know how. can any one provide me with an algorithm.
i need to store the boolean expression in the tree so that i can use it to draw the circuit diagram of the expression by traversing it in post order.i know the traversing p
dat structures -
I have read recently about complext data structures like linked list, queue, binary tree etc and know c++ has STL.
Does .net have a STL or data structures made easy?
*resolved* '= 'not supported for structures -
well, structures are value types but the '=' opperator isnt supported for them.... I tried the Equals method and sounds like it works. Is that the best way to compare variables of structures?
Structures Question(s) -
Are the .Net primitive data types classes or structures?? Also, is a structure considered an object? Can you derive another structure from another structures? Sorry for so many questions, but my book is unclear about this topic.
Searching Arraylist -
I have an arraylist populated with structures. How do I go about searching the arraylist? Normally, this wouldn't be too difficult, but the structures are making this hard for me. I need to compare a field within the structures to data the user enters, and return the structure(s) th
Data Structures -
We have read many Data Structures in C++ like, Linked List, Stack, Queue, Binary Search Tree, AVL Tree, Hash table, and many sort algorithms. Can we implement these data structures in Visual Basic.Net?
CSS: Coding Structures -
Hello All!
I would like to know if there is a specific (one or many) coding structures to use when creating a CSS file, I know that as long as it validates its fine.
I ask this because I like the coding style used at styleshout.com, but I would like to know whether this is a stan
Retrieve structures of tables through VB Coding -
Hi
My question is this!
Is there any way to retrieve the structures of all the tables in the database
and write them to a file (Text file or somthing else...) through VB coding,
for trouble-shooting and maintenance purposes?
Advance thanks
Ansoft
(I am new to programming)
API Add-In for Visual Basic -
This add-in is MUCH better than the one that comes with VB because the search is done with the "like" operator, so you can use * or ? (look in MSDN for the like operator) characters to refine your search. Also, when you add a declaration to the list and it's using one or more
DATA STRUCTURE (Help with assignment) -
I have this assignment for the subject of Data Structures. I just don't know what the question is about, and frankly i don't understand the subject at all. If anybody can help me out, guide me, please do. I give my utmost respect to those who do.
------------------------------------
Structures explained please -
Hi,
Could someone explain in plain english what structures are for and how they work as I need to use it in an assignement and later on in programs.
Thank you
Remy
Dynamic Array Sizes and Structures -
Is itpossible to dynamically assign the size of an array?
For example... if I want to load records from a file but I don't know how many there are... can I read through them just to count the number of records (x) and then dim an array for that many (x) records?
Can you have str
Data Structures Books for vb.net -
I only found one book about data structures using vb.net:
Quote:
Data Structures and Algorithms Using Visual Basic.NET
Michael McMillan
Format: Paperback
ISBN: 0521547652
Does anyone know of a better book? So many books are using c++ and java.
need your help about csv files!!!! -
I have 3 csv files and got an instruction from boss like this:
"Create generic structures that we'll fill in later for each file. Then write routines that will take each structure and right out the records according to the attached file specs."
could someone here help me
Clear Nested Array Structure Memory -
I've I several structures which are arrays and which are nested under a single structure (call it Top) which is also an array.
It appears (???) that by erasing Top, that the rest of the array structures still exist and remain in memory (Getting Out of Memory Error).
QUESTIONS
[2008] Comparing structures using a loop -
Is it possible to compare the data in structures using a loop?
I've thought about it, but I can't figure out how to do it.
If you could include an example that would be great. Thanks for the help..
Use of Data structures -
Hi,
Can someone suggest some good links to refer Data structures in VB6.
I want to code adjacency matrix using Link list.
Thanks.
traversing a SQL table - HELP! -
I'm currently using ExecuteSQL to go through a SQL table but this seems to be a very SLOW way. All I'm doing is pulling one field from each record, running it through a function, and then outputting the result to a .txt file. What other way(s) can I utilize to do the same thing?
Strange recordset behaviour in a COM component -
I have got a dll installed in COM+. The dll contains a recordset in which i have used .AddNew method to add records.
Case I : Register this dll in COM+ under an application with Activation type as LIBRARY Application. Traversing through the recordset starts from LAST Record and mov
Array of Structures, First, Last, Previous, Baack Navigation -
Hey,
I was wondering if someone could help me? I got an array of structures, they are taken from a textfile and split into different fields. What i need to do now, is navigate thru them and dispaly them in labels, so have 4 buttons like, first, next, prevous, and last.
Is there a
Overlapped Structures -
Does anybody know of a well written article that describes overlapped structures and their use?
Cheers!
Structures and Pointers -
Hey Guys
I have a really weird problem.
basically i have a structure which is made up of pointers which point to an array of structures. The pointers whithin each of these structures then points to a BYTE array on the freestore.
My problem is when i try and copy some data ou
Class Module & Module -
I am wondering if there is a difference of performance or resource requirement if an application is build using either class module or module.
say i have huge structures defined in a module, this huge structures make takes up lots of space during the entire runtime of the applicatio
BeginEdit, ApplyEdit and CancelEdit for class structures... -
How many ways (different methods) are there of rolling back data in class structures when canceledit is fired?
Woka
Bloody Structures - aaahhh -
Hi all,
Does anyone know how vb.net works with structures when readin/writing them to files?
Im using a type that holds a string, which varies in length depending on a user's setup, along with other variables ie boolean.
Im getting bad record length when trying to read in a struct
Control Structures -
Well, in a question for school it asks for me to list 3 Control Structures, and I can't find it in the book any where. Anyone know what there on about?
Structures -
Does anyone know off-hand if java allows the creation UDT's or structures similar to what Visual Basic 6 or Vb.Net has now? Im going to say no because ive never seen a structure declared in java code but maybe someone else has.
[2005] Stange Problem Going to VS 2005 -
Hi,
I recently went from VB 2003 to VS 2005.
I ran the import Windows application and everything was fine.
The program works in VB 2003 - but not in VS 2005!
In my troubleshooting it appears (in VS 2005) that the problem lies with an array of custom structures. (The s
Structures are a bad thing -
A book I was reading said this:
Quote:
Structures are frowned upon in object-oriented programming. A class can do everything that a Structure can do—and more—so you should use classes instead of Structures.
Why does it say that structures a
Reading file using Background worker, one file and two different types of structers -
Ok, Say you’re trying to read a file using a background worker because it’s too big and it will slow the operation down to the a crawl if you do it on the original thread.
Say in that one file it stores two different lists of different structures. Say one list contains:
struct
Initialising an Array of Structures -
Hey guys,
I'm using VisualStudio 6
Can someone please explain to me why thie following fails, with this error:
error C2440: 'type cast' : cannot convert from 'struct T_NUMBERS' to 'int'
I know what the error is saying (i think), but don't know why it doesn't work.
typedef
[2008] populating a structure -
Hi everyone im looking to populate my structures however I read other methods and can't seem to understand it.
I need to populate a structure from text box and then write the structured values into a database, then I also need to populate structures from the database.
any exam
traversing the website structure -
hi all,
i am creating a spider application in VB for downloading the websites.
I am stuck with the "traversal" of the website structure logic....
I am using URLDownloadToFile() API Function to download the file from the website...
can anyone help me with it......
Struct vs Class -
Hey All,
I need to know where I can find some documentation on the fundamental differences between C++ structures and classes. I know that with structures everything is public, and with classes everything is private by default. So data and functions can be hidden. But I'm not fin
Explain Assemble Please -
I've always been curious, because I believe this is the method of choice for writing new video games, especially on console.
It has been my current theory that assemble is like c++, cept like assembling units of code..i can't explain it.
Someone care to give me an explanation?
How to convert an object to struct -
i hit a problem.
I have a structure defined as
public structure Test
...
end structure
then I add 10 structures to an arraylist...
But how do I read them from the arraylist? I tried both ctype and directcast... no luck. all i get is "specified cast is not valid&q