|
-
Sep 6th, 2010, 10:37 AM
#1
Thread Starter
Lively Member
[RESOLVED] Explain me this below lines please
Hi All
few lines of code i have so can u ppl just help me out what these sentences means.... i mean just explain me in general wht these few lines will do....
actually i want to discuss these lines of code so that like this i can understand my project step by step. Well i am not going to load my entire proj. as in this forum in my last threads i did like that... so from here onwords i wil be pasting chunks of code.... i hope now i wil get the help from u ppl...
[CODE]Private Sub a()
Hey friends this is one piece of code, how much u can that much u help me...
Regards
Prity
Last edited by Prity; Sep 9th, 2010 at 10:20 AM.
Reason: some code was missing.
-
Sep 6th, 2010, 11:55 AM
#2
Re: Explain me this below lines please
That first line is looking for a certain type of form being active. You create forms as part of the project. Each form is a class object. A class is a type, as are structures, and prety much any variable. So that first line is checking whether the active MDI form is either the MainForm or the FormLubricant.
2) A list is much like an array, except that it is much easier to add and remove things from a list than it is to do the same for an array. However, if you understand arrays, you understand lists. The only difference is the ease of changing a list.
3) DSAnalysisData is probably a class that wraps a dataset (since you mentioned the dataset). However, a dataset probably doesn't have enough functionality for the current program. The programmer wanted to be able to do things that a normal dataset can't do. Therefore, either they inherited from the Dataset class, or created a this class and gave it a Dataset as a member variable. This is closely related to item #4.
4) One of the ways that the programmer chose to extend the dataset is that they wanted the class to be able to read a file into the dataset. Therefore, they added the method ReadAnalysisHistoryFromLocalFile, which loads a file into the dataset.
I've got a suspicion that what I have written will present more questions, so I think I will leave it there for now.
My usual boring signature: Nothing
 
-
Sep 7th, 2010, 08:21 AM
#3
Thread Starter
Lively Member
Re: Explain me this below lines please
Hi Shaggy Hiker
Well ur explaination is excellent... can u help me out with forther code explaination.
CommonLib.ModuleCommonLib.m_AnalysisHistoryFileName = Nothing<---well this line i got to know. commonlib is a folder. ModuleCommonLib is a module, and
m_AnalysisHistoryFileName as a string variable, in this above line they are initializing this variable string =nothing.
Can u plz explain me the function ReadAnalysisHistoryFromLocalFile Well i hav added the code for this also... And there i have added some comments near 2 to 3lines of code i want only those lines of explaination. well u just have a look u will get, wht i am telling.
Regards
Prity
-
Sep 9th, 2010, 03:58 PM
#4
Re: [RESOLVED] Explain me this below lines please
I no longer see any code at all in this thread. Is that right?
My usual boring signature: Nothing
 
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|