(Programming by VisualAge for BASIC by the beginner)
It leaps to OS/2 software. It leaps to Vol1. It leaps to a homepage.
In the GUI application (inventory system) created previously, it created using the module by which coding was carried out beforehand, or the designed form. However, since almost all things were created if a sample is often looked at, it decided to create from the start personally for study.
They are six pieces to the form (form for performing edit of data, an addition, deletion, save of a file, etc.) Form1 which becomes main in Lesson1.prj. There is a Command object, property is set as each, and the code of an event PUROSHI jar is also inputted. Each setup is carried out also to the form for the input screens of another data, and Form2. Although this is created from the start, what has the complicated code inputted is inputted. Pains were taken for a Sub PUROSHI jar etc. to come out and also make the copy of the same thing, although it inputted as it is, since a meaning was not understood.
A Command object is made to Form1.
Creation of Form2
Next, Form1 The property of the new component of Form2 is set up. Here, since it set up previously, it excludes.
Now, it is at it. Sample The code described by samples\tutorial\tutor1\tutor1.prj will be printed and it will describe by the code editor similarly. Since this code is also written in English as copyright is involved, although it is not understood well, either, they are carried out, it is and it has description. For the reason, since it cannot write, as [ the ] is omitted.
It é≡ôⁿù═.
Sub Command1_Click(Index As Integer)
Select Case Index
It is each here. The selection item when clicking a Command object is described.
End Select
End Sub
It é≡ôⁿù═.
Sub Form_Load()
It is with List1 to the beginning here. The character sequence displayed on List2 is described.
End Sub
If it inputs, it will be displayed on the place of "an event/method" as Add_. It seems that the property of Form2 is set up here.
Sub Add_()
Form2.Caption = -- "the text set to the title bar of form 2 is specified here"
All_Disabled
Form2.Show
End Sub
An input displays All_Disabled on the place of "an event/method."
Sub All_Disabled()
Here, based on the specified ethics test, it controls whether the command of each Command object is executed. It seems [ it ] that it is making return False here, respectively.
End Sub
Sub Delete_()
Here, it is If.... The Then sentence came out. A meaning is described as it is, although it does not understand.
End Sub
Sub Edit_()
Here, it is If.... The Then sentence came out. A meaning is described as it is, although it does not understand.
End Sub
Sub Exit_()
"Dim" which does not understand a meaning although it seems that the code for ending can be started here, and "If ... there are Then", "Message", "Answer", etc.
End Sub
Sub New_()
It is the point also here. The code just like Sub Exit_() is written.
End Sub
Sub Save_()
Although a meaning is not understood here, "Dim", "CMDialog1", "Print", etc. come out.
End Sub
Sub Cancel_Item_Click ()
Although it seems that various setup is carried out, it does not understand here. It writes similarly.
End Sub
Sub Save_Item_Click ()
Here, it is If... The Then sentence came out. Although written [ that it is various and ], since it does not understand, it writes as it is.
End Sub
After an input finishes, it is to "an event/method". It is displayed as All_Enabled.
Sub All_Enabled()
Here, it is Form1. Based on the specified ethics test, it controls whether the command of the object of Command is executed. It seems [ it ] that it is making return True here, respectively.
End Sub
Now, above, it is a sample. It is the reason which made lesson1.prj from the start. The point progresses to "creation of GUI application" of Vol1 after this. Although turn became opposite, it means making "creation of GUI application" from the beginning.
It comes out here. In Sub, it is easy and arrangement of pro SHIJA can be performed rather than it writes by the method and If...Then which call sub pro SHIJA in menu form by Form1. Me Although If....Then is not understood well, either, Sub seems to be quite important and is likely to have Ägô╣.
When writing sub pro SHIJA, it is in "an object/class". It became study considerably to choose general and to write pro SHIJA etc. Confidence followed for a while. I think that it will make from the beginning, without also using a sample this time.
However, since the meaning of pro SHIJA is not understood, doesn't it know that whether to study from the foundation about pro SHIJA is [ the point and study ] earlier after this? It is still progressing to 52 pages "before using it." Is it at least a half?
I think that the books "a guide to IBM VisualAge for Basic" will be purchased.
Moreover, on-line information "VisualAge for Basic" holder => "VisualAgefor Basic information" The method of adding behavior to the object of VisualAgefor Basic is explained by "creation of a æµ 2 part code" of => "a programming guide." Moreover, how to apply object oriented programming techniques, such as a class definition, is also explained. Since the coding method of the program for error processing is explained to the last, first of all, this is learned.
VisualAge Family It comes out and information is offered in forum form using the news function of the Internet. This news group is consulted very much. It becomes a secure view to a beginner. NetscapeNavigator The method of use of the newsgroup of NewsReader/2 is explained.
Here How to access a news group using NewsReader/2 was learned. Was also use of NewsReader/2 easy?
(Note) When used by Netscape Navigator, character transformation took place. Since there is also no character transformation and it was displayed when it went into the newsgroup from the homepage, the direction using NetscapeNavigator should use from the direction of a homepage.
Those who do not program also need to experience use of a newsgroup.
In this tutorial, the creation method of the visual application which uses the mathematics function of an SOM object is learned. SOM engine -- this All codes required for execution of mathematical operation operation of the graphical user interface (GUI) to create are contained. There is a label which displays the command button arrangement which works as a key of a calculator, and a calculation result in application.
Speaking concretely, in this tutorial, learning the following items.
Here, since it is written by "read the chapter of integration of the SOM object of a programming guide in them if not detailed in the term and structure of SOM", advance first from the teachings that "the more haste, the less speed" by programming there.
By the programming guide, it is a systems object model. (SOM) The method of using a class with application is written. At this chapter, it is [ SOM and ] an SOM class. How to process by VisualAge for Basic is explained.
1. SOM
Although it does not understand well in explanation, seemingly it is the thing of object oriented programming technology. Seemingly IDL is the standard language called interface definition language. What is written the back cannot be understood.
2. Creation of SOM IDL File
When creating an SOM IDL file, it is necessary to include a dllname='name.dll" sentence in an implementation section. For example, Calculator There is the following sentence in IDL.
dllname = "calc.dll";
Although written, it does not understand in the least in what thing.
3. Setup of SOM Environment Variable
Although it has written that an environment variable specifies an SOM compiler, an interface RIBOJI tree framework, and information required at the time of execution, can't he understand the language which comes out? The contents currently written for a long time are also nonsense. The last direction had the following description.
I will put into the head here.
4. Specification of Initialization Function
It does not know that it is written here.
In order to support dynamic loading of the library by the SOM class manager, it is necessary to specify the initialization function of a class library.
Although it is somehow full of necessities and the example of an initialization function is written, it does not understand at all.
void SOMLINK SOMInitModule(integer4 majorVersion, integer4 minorVersion).*minorVersion)printf("initializing\n");
SOM_TraceLevel = 1;
/* PrintStaticClassInfo(&SomCalculatorSCI); */ SomCalculatorNewClass(0,0);
/* PrintStaticClassInfo(&SomCalculatorSCI); */ fflush(stdout);
5. Registration of SOM Class
Here, a SomCalculator class is registered and it is at the execution time. The method of adding to Toolbox is written.
"First, a SomCalculator object is accessed and the next file is copied to each one of directories."
Although written, it is not understood that it accesses a SomCalculator object what it carries out. Although it is written that it is [ others-] and the file of whether to attach is copied, it does not understand well too.
although "change of registered SOM DLL", "loading of SomCalculator to ToolBox", etc. are explained by this chapter, since those who do not understand although read, and are reading this homepage otherwise think that they are not interesting -- after -- excluding -- chapter 4 "before using it" The tutorial of SOM object use will be continued.
Using SOM, the work is done so that preparation may be required in it being various.
1. Setup of VWADDSOM
A user's application a VWADDSOM environment variable It turns on/turns off by whether SOM is used or not. That is, since the application (calculator) which it is going to make from now on uses SOM, is it what must set this up?
(Note) NO It is Yes if it is set as 0. Seemingly, it will become the same as setting it as 1. If SOM is used frequently, it will be about SETVWADDSOM=1. Since you may not set up one by one if it describes to CONFIG.SYS, it is convenient.
2. Setup of SOMIR Environment Variable (Procedure Required for Use of SOM)
A SOMIR environment variable is updated as a procedure which accesses an interface RIPOJI tree (IR). It enables it to provide VisualAge for Basic and application with the important information about an SOM object.
Incidentally, when this SOM.IR file was searched, there were four as follows.
3. Registration of SOM Object
An SOM object can be registered after a setup of an SOM environment variable finishes. A process called this registration can know VisualAge for Basic now about an SOM object through an SOM interface RIPOJI tree including the information about each class.
VisualAge for Basic can use an SOM object now by registration. Moreover, DLL of an SOM object must be in the place which can begin to find a loader. In short, it is that DLL is contained in the directory along which LIBPATH passes. Therefore, the following procedures are performed.
4. Loading to Tool Box of SOM Object
The SomCalculator class with which registration was able to be managed is loaded to a tool box.
Now, creation of a calculator in the main question and programming of behavior are started still more.
1. Addition of Calculator Form
It is empty before adding new form. Form1 is deleted.
2. Addition of Code in Calculate() PUROSHI Jar
The Calculator PUROSHI jar which calls various mathematics methods contained in a SOM Calculator class is written.
(Memorandum)
It seems that syntax inspection has a main inspection of syntax and the mistake of spelling is not found. Since the meaning of syntax is not understood, although the input of a code is inputted looking at a sample, it is serious to find it, if every character is not carefully inputted so that it may not make a mistake and an error will come out later. If the meaning of a code is understood, I will think that it is easy to find an error.
this -- a tutorial -- several times -- repeating -- carrying out -- é─éó -- although -- "-- a module -- " -- = -- > -- Calculator -- "-- an object -- /-- a class -- " -- = -- > -- general -- "-- an event -- /-- a method -- " -- = -- > -- declaration -- üA -- a code -- the last -- a line -- Dim finished AS Integer -- the last -- Although there is no memory which the code here touched although the character of End Sub is added freely This was also compared with the code of a sample and has noticed the mistake. It does not understand, even if such a place error comes out.
Since he cannot fully understand about use of an SOM object, are an environmental setup to begin, the registration method of an SOM class, etc. troublesome to a beginner?
Since the head will become painful if only not much difficult one is done, it is a break. The hand was added to the sample currently introduced by guide to VisualAgefor Basic. The procedure of application development is reviewed by making easy application.
This is the execution screen of a program. Time Only the Date function was thought of. being such -- he studies little by little, making, although rubbed