Language summary

  • View
    412

  • Download
    22

Embed Size (px)

Transcript

  • 1. v1.0 Crifan Li Word VBA,Excel VBA,Python,C++,Javascript,C# HTML7zip1HTML8HTMLs 2HTMLs 9PDF3PDF10CHM4CHM11TXT5TXT12RTF6RTF13WEBHELP 7WEBHELP 14HTML http://www.crifan.com/files/doc/docbook/language_summary/release/html/language_ summary.html bug http://www.crifan.com/bbs/categories/language_summary/ 1.02012-08-09crl1. 2. WindowscmdPython 3. C++ 4. Javascript 5. Word VBA 6. Excel VBA 17. Pythonhttp://www.crifan.com/files/doc/docbook/language_summary/release/html/language_summary.html http://www.crifan.com/files/doc/docbook/language_summary/release/htmls/index.html 3 http://www.crifan.com/files/doc/docbook/language_summary/release/pdf/language_summary.pdf 4 http://www.crifan.com/files/doc/docbook/language_summary/release/chm/language_summary.chm 5 http://www.crifan.com/files/doc/docbook/language_summary/release/txt/language_summary.txt 6 http://www.crifan.com/files/doc/docbook/language_summary/release/rtf/language_summary.rtf 7 http://www.crifan.com/files/doc/docbook/language_summary/release/webhelp/index.html 8 http://www.crifan.com/files/doc/docbook/language_summary/release/html/language_summary.html.7z 9 http://www.crifan.com/files/doc/docbook/language_summary/release/htmls/index.html.7z 10 http://www.crifan.com/files/doc/docbook/language_summary/release/pdf/language_summary.pdf.7z 11 http://www.crifan.com/files/doc/docbook/language_summary/release/chm/language_summary.chm.7z 12 http://www.crifan.com/files/doc/docbook/language_summary/release/txt/language_summary.txt.7z 13 http://www.crifan.com/files/doc/docbook/language_summary/release/rtf/language_summary.rtf.7z 14 http://www.crifan.com/files/doc/docbook/language_summary/release/webhelp/language_summary.webhelp.7z 2

2. 8. C# 9. PythoncrifanLib.py 10. C#crifanLib.cs 11. PythonBeautifulSoup 12. Pythonbook 13. C#book 3. : Crifan Liv1.0 2012-08-09 2012 Crifan, http://crifan.com 15- 2.5 (CC BY-NC 2.5)15http://www.crifan.com/files/doc/docbook/soft_dev_basic/release/html/soft_dev_basic.html#cc_by_nc 4. 1. .............................................................................................................. 1 1.1. ................................................................................................... 1 2. .............................................................................................................................. 2 2.1. ............................................................................................................. 2 2.2. Python ........................................................................................................ 2 2.3. Word VBA ................................................................................................................ 2 2.3.1. word vbaVBA ................................................................... 2 2.3.2. Word VBA .............................................................................. 2 2.3.3. Word vba ......................................................................................... 3 2.3.4. ........................................................................................ 9 2.4. Excel VBA ............................................................................................................... 10 2.4.1. Excel VBA ....................................................................... 10 2.4.2. Excel VBA .......................................................................... 13 2.4.3. Excel VBA ............................................................................. 14 2.4.4. ...................................................................................... 15 2.5. Javascript ................................................................................................................ 16 2.5.1. javascript ........................................................................................ 16 2.6. PHP ........................................................................................................................ 19 2.6.1. PHP ................................................................................................ 19 2.6.2. crifanPHP .............................................................................................. 19 2.6.2.1. ......................................................................... 20 2.6.2.1.1. :addTailSlash .................................................... 20 2.6.2.1.2. :removeFirstSlash ............................................ 20 2.6.2.1.3. :strExistInArr ....................... 20 2.6.2.1.4. :genValidSuffix ...................... 21 2.6.2.2. ............................................................................ 22 2.6.2.2.1. :getFileSuffix ................................................ 22 2.6.2.2.2. ............................. 22 2.7. Linux Shell .............................................................................................................. 22 2.7.1. Linux Shell ...................................................................................... 22 2.7.2. Linux Shell ...................................................................................... 25 2.8. Windows Batch File ................................................................................................ 25 2.8.1. Windows Batch File .............................................................................. 25 2.8.2. Windows Batch File ........................................................................ 25 2.8.3. Windows Batch File ........................................................................ 25 3. ............................................................................................................................ 26 3.1. ........................................................................................................... 26 3.2. C# ............................................................................................................. 26 3.3. C++ ........................................................................................................................ 26 3.3.1. C++ ................................................................................................ 26 4. .................................................................................................................. 28 4.1. XML ........................................................................................................................ 28 4.1.1. XML ...................................................................................... 28 4.2. HTML ..................................................................................................................... 28 4.2.1. HTMl .............................................................................................. 28 4.2.2. HTML .................................................................................... 28 ................................................................................................................................ 30iv 5. 3.1. protectedpublicprivate ............................................................................ 26v 6. 2.1. 2.2. 2.3. 2.4.addTailSlash ...................................................................................................... strExistInArr ....................................................................................................... genValidSuffix ................................................................................................... getFileSuffix ......................................................................................................20 21 22 22vi 7. 1 1.1. 1 8. 2 2.1. 2.2. Python PythonPython12.3. Word VBA 2.3.1. word vbaVBA VBAVisual Basic For Application VBApplicationApplicationExcelword wordVBWord VBA Excel "Excel" wordexcel word xml [2]"VBAVBA VBAVBA "2.3.2. Word VBA Word VBAstory, character,table,cell,row, columnsection,paragrah,line,SelectionSelection.XXX XXX 1. Story word 1http://www.crifan.com/files/doc/docbook/python_summary/release/html/python_summary.html2 9. 2. Text 3. Sections wordstory 4. Paragraphs 5. Sentences 6. Words 7. Characters 8. TablesCellsRowsColumns cellcell Range Print Selection.Tables(2).Cell(3, 4) Cell(2,3)1 CExcel0 9. End Start Selection.StartSelection.End Selection.StartSelection.End slection_len = Selection.End - Selection.Start 10.2.3.3. Word vba 1. range Selection.Text Selection.Range.Text3 10. 2. VBA""C"!=" 3. wdMovewdExtend Range Selection.MoveDown Unit:=wdLine , Count:=1, Extend:=wdExtend wdLineUnit UnitwdParagraphwdWindowwdScreen WdExtendwdMode VBA wdMove wdExtend wdMove mdMove wdExtend 4. / Selection.GoTo What:=wdGoToHeading , Which:=wdGoToAbsolute , Count:=5 Goto wdGoToHeadingheading wdGoToAbsolute wdGoToFirst, wdGoToRelativewdGoToLast,wdGoToNext,wdGoToPrevious,[3] / Selection.HomeKey Unit:=wdStory , Extend:=wdMove wdStorywdUnits wdColumnwdLinewdRow 5. 4 11. 2.1 PAPRBY / RubyVerifoneDefaults 2.1 2.1 Selection.Bookmarks("headinglevel ").Range.ListFormat.ListString headinglevelVBA [5] 6. VBAHelp Function [Public | Private | Friend] [Static] Function name [(arglist)] [As type] [statements] [name = expression ] [Exit Function] [statements] [name = expression] End Function name expression name 0 ("")Variant Empty Function name Set Nothing BinarySearch False Function BinarySearch(......) As Boolean ...... ' False If lower > upper Then BinarySearch = False Exit Function 5 12. End If ...... End FunctionVBAHelpgoogle [name = expression] 7. VBAoffice 2010 VBAhelp StrCompStrConvFormat, LCase, UCaseSpace, StringLenFormatLSet, RSetInStr, Left, LTrim, Mid, Right, RTrim, TrimOption Compare ASCII ANSI Asc, Chr C a.Space, String Space10" space"Space(10) 10 String(number,characterToRepeate) string Space(10)=String(10, 32) 32=0x20spaceASCIIString 0x0~0x1F b. InStr, InStrRev InStrCstrstr InStr([start, ]string1, string2[,