Sharp OZ-707 Operation Manual - Page 95
Merge
![]() |
UPC - 074000012141
View all Sharp OZ-707 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 95 highlights
MERGE 0 FORMAT: MERGE "[d:} filename" IENTER I d: E,PACOM,CAS,COM Abbreviation: MER. See Also: LOAD, CHAIN PURPOSE: . . Loads a program file from the specified device and merges it with a program in memory. REMARKS: ., d MERGE retains the program in memory and then loads the specifle program. VE The program file to be merged must have ASCII format (see the SA command). Note: When a program in intermediate format is loaded, an abnormal condition may occur. If the line numbers overlap, the lines of the specified file replace the lines of the program in memory. . ' If the device name is omitted, the device name used In the last file command is assumed. For example, if the last file command is FILES"E:", RAM disk E is assumed as the device name. An error occurs if the program overflows the program area as a result of a MERGE command. Clear unnecessary variables, then try MERGE again. EXAMPLE: Program in memory 10: INPUT A, B 15: PRINT A, B * * 20: C .. SOR (A A + B B) 25: PRINT C 30: END Program to be merged (ASCII format) 10: INPUT A, B, C 20: S .. (A + B + C)/2 * * 30: AREA .. SOR (S (S - A) (S - B) * (S - C)) 40: PRINT AREA 50: END Program after merge 10: INPUT A, B, C 15: PRINJ A, B 20: 5 = (A + B + C)/2 25: PRINT C * * * 30: AREA = SOR (5 (S - A) (5 - B) (S - C)) 40: PRINT AREA 50: END The contents of lines 10, 20, and 30 are replaced with those of the same lines of the loaded program. MID$ p o FORMAT: MID$(string,N,M) Abbreviation: M. See Also: LEFT$, RIGHT$ PURPOSE: Returns a string of M characters from inside a string starting from the Nth character in the string. REMARKS: If N is greater than the number of characters in the string, a null string is returned. If N is less than 1, an error occurs. M must be in the range of 0 to 254 and N in the range of 1 to 254. Fractions will be truncated. 178 179
![](/manual_guide/products/sharp-oz707-operation-manual-7aa0508/95.png)