Delphi does not have its own string partition function, so only the programmer can write their own, online search a lot but the real use of few.
Below this is I found on the Internet modified, personal feeling algorithm is good, so it posted up.
function SplitString(Source, Deli: string ): TStringList;stdcall; var EndOfCurrentString: byte; StringList:TStringList; begin StringList:=TStringList.Create; while Pos
The occasional Delphi program involved in string processing, which has a function similar to the split () function in VB, so I checked some information for a long time, now we will sort out these materials for your convenience.
First, a user compiled a function to implement the function and split.
Unit unit1;
Interface
UsesWindows, messages, sysutils, variants, classes, graphics, controls, forms,Dialogs, stdctrls;
Type userarray = array of string;
Typ
MIDI audio (MIDI audio)
There is not much to say about MIDI audio. All you need to do is set the filename attribute of the mediaplayer to a MIDI file and call the play method. The extensions of MIDI files include. Mid and. RMI.
An example of playing MIDI audio is as follows:
Procedure tform1.btn9click (Sender: tobject); begin if pos ('play' 'crayon shin' 'midi Music', btn9.caption)> 0 then begin mpplayer. wait: = false; mpplayer. filename: = 'lbxx. mi
I. Overview
When you write a database program with Delphi, often involves importing and exporting data, such as storing data from a large database as a portable file for easy reading, importing data stored in a file into another database, and, by storing the data in the database as a data file, It is easier to exchange data between programs and programs, to avoid the tedious steps of exchanging data through memory, for example, in the general report
In Delphi call C + + function and C + + call Delphi function is quite direct, it should be noted that Delphi 1 The default function call mode is Pascal, Delphi 4, Delphi 5 Default Way is optimized cdecl call way, That is the Register method. To implement function sharing bet
Objective of this article:
Understanding the string type of Delphi
Detection and conversion of character encoding
Simplified traditional Conversion
0. IntroductionRead ". NET and character encoding (theory), we understand that characters are the smallest unit of natural language, and can be used in three encoding methods during storage and transfer: ASCII, DBCS, and Unicode. Common DBCS encodings are GB2312, GBK, and BIG5, while
This article illustrates how Delphi resolves an ftp address. Share to everyone for your reference. The implementation method is as follows:
Procedure Tform1.ftpanalysis (S:string;var username,password,ip,filename:string;var dirlist:tstringlist);
var I,j:integer;
strauthorization,straddr,strdirfile:string;
Authorization information begin username:= ' anonymous ';
password:= ' test@test.com ';
IP: = ';
STRADDR: = Copy (S,7,length (S)-6); The
Yesterday afternoon, after reading guoyan19811021Simple factory pattern (see http://www.csdn.net/Develop/read_article.asp? Id = 26635)Later, in order to deepen my impression, I changed the above VB. NET to Delphi, which may not be of great significance, but I still posted it and shared it with you.
First, create a base class cname, as shown below:
TypeCname = ClassPrivate{Public declarations}Public{Protected Declarations}Function getfirstname: string;
, while, and repeat.The Copy function returns a string of substrings.Cos function cosine functionWhether the Ctl3D attribute has 3D effectCursor attribute: The shape after the mouse pointer is moved inThe Date function returns the current Date.The DateTimeToFileDate function converts the DELPHI date format to the DOS date format.The DateTimeToStr function converts the datetime format to a string.The DateTimeToString function converts the datetime form
Delphi function manual
Handle exceptions caused by the abort Function
ABS function absolute value function
The addexitproc function adds a process to the End Process Table of the runtime database.
The ADDR function returns the address of the specified object.
The adjustlinebreaks function adjusts the row Separator of a given string to the CR/LF sequence.
The align attribute allows the control to be located in a certain part of the window.
The text pos
Valid Delphi
Clause 1: In any case, please have your Project have at least one user SysUtils. pas Unit
Many people who use Delphi complain that although Delphi is highly efficient in development, its compiled program is too large. Using Delphi5 to create a Project and compile it directly, the Size of the program has reached 286KB. If the same program is compiled
Chapter 5 Package
In our daily life, we will use all kinds of bags, including wallet, briefcase, backpack, and schoolbag ......, The package contains frequently used items. Once you leave the house that day, you can bring the bag with it. You don't need to consider the specific items in the package, even though some items in the package are needed. With these packages, you can travel easily. Of course, poor packaging or too many packages will become cumbersome.Similarly, in
asp.net| Script
View Delphi as a scripting languageThe first thing to support asp.net is to let ASP.net see Delphi as a scripting language, allowing ASP.net to invoke the Delphi. NET compiler for various ASP file types.Asp. NET to find the Web.config file under the root directory of the IIS virtual path. The following is the contents of the Web.config configurati
1 Only one component of a DCU file. The DCU file is a compiled unit file, so the component is the author does not want to publish the source code. In general, the author must indicate which version of Delphi This component is suitable for, and if the version is incorrect, an error will occur at the time of installation. It is because there is no source code, to the user inconvenience, that is, once the Delphi
Http://www.delphisources.ru/pages/faq/master-delphi-7/content/LiB0104.htmlBeside this introductory example, you can do a few extra things with the dynamic libraries in Delphi. You can use some new compiler directives to affect the name of the library, you can call a DLL at run time, and you can pl Ace entire Delphi forms inside a dynamic library. These is the top
http://115.com/file/bh07akff#
Delphi Application Development Complete manual. rar
http://115.com/file/e6rn2ett#
Delphi Information System Development examples selected. rar
http://115.com/file/aqagbvdm#
Delphi Database System Development complete manual. rar
http://115.com/file/clohvfea#
Delphi Database System Developm
----- Old Gill --------
As a rad tool on Windows, Delphi attracts many software companies to develop application-layer software. In addition to the efficiency of rad, the openness of Delphi (open source code, easy to go deep into the underlying layer) makes a lot of developers feel at ease. Delphi, as a 32-bit compiler on an excellent Windows platform, is widely
Developer benative over GitHub have a project called concepts which is a massive collection of Delphi modular demos feat Uring over twenty different language features, design patterns and some interresting frameworks, and components. A copy of the libraries The concepts project depends on is included to reduce the hassle of installing them Separa Tely.The modular demos include demonstrations of the following libraries:
Delphi 5.x distributed multi-tier Application e-commerce
DelphiTutorial Series of books(034)《Delphi 5.xDistributed Multi-tier Application e-commerce Organize netizens (state)Email:Shuaihj@163.com
:
Source code of Part1 Part2 attachment
Author: Li Wei
Series name: Li Wei works Series
Press: Machinery Industry Press
ISBN: 7111080076
Mounting time: 2000-7-1
Published on: February 1, May 2000
Page numb
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.