chrb

Learn about chrb, we have the largest and most updated chrb information on alibabacloud.com

On the origin of Verification Code, program principle and other

Com_creatvalidcode () ' Disable caching Response.Expires =-9999 Response.AddHeader "Pragma", "No-cache" Response.AddHeader "Cache-ctrol", "No-cache" Response.ContentType = "Image/bmp" Randomize Dim I, II, III Const Camount = 36 ' text quantity Const ccode = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ" ' Color data (character, background) Dim Vcolordata (2) Vcolordata (0) = ChrB (0) ChrB (0)

Code for base64 encoding and decoding (unfinished)

integerDim W3 as integerDim W4 as integerDim N as integerDim retry as stringFor n = 1 to lenb (strconv (decryptedtext, vbfromunicode) Step 3C1 = ASCB (midb $ (decryptedtext, N, 1 ))C2 = ASCB (mid $ (decryptedtext, n + 1, 1) + chrb $(0 ))C3 = ASCB (mid $ (decryptedtext, N + 2, 1) + chrb $(0 ))W1 = int (C1/4)W2 = (C1 and 3) * 16 + int (C2/16)If lenb (strconv (decryptedtext, vbfromunicode)> = n + 1 then W3 =

ASP file upload function library

54 powermanNote:If you need the string value of the file form, use GetFullName ("file ")If you need a file Form file name, use GetFileName ("file ")If you need the file Form Extension, use GetExtName ("file ")If you need the value of a common text form, use MyRequest ("password ")If the binary value of the file form is required, MyRequest ("file") is also used ")Save the file with SaveFile ("file", "myUpload.jpg ")Format

ASP file Upload: File Upload source code

(Upfile_5xsoft_stream.read (1)) If C > 127 Then if Upfile_ 5xsoft_stream.eos then Exit for stemp=stempchr (AscW (ChrB (AscB (1))) CHRB (c)) i=i+1 Else STEMP=STEMPCHR (c) nbsp; End If next substring=stemp End Function Private Function instring (thestart,varstr) dim i,j,bt,thelen,str instring=0 str= ToByte (VARSTR) thelen=lenb (Str) for I=thestart to Upfile_5xsoft_stream.size-thelen

ASP converts UTF8 to GB2312 code

Personal Code Style Comments (the first lowercase alphabetical table in the variable name represents the variable type)I: for the integer type;S: for string;Function U2utf8 (Byval a_inum)Dim Sresult,sutf8Dim Itemp,ihexnum,i Ihexnum = Trim (a_inum) If ihexnum = "" ThenExit FunctionEnd If Sresult = "" If (Ihexnum Sresult = Sresult IhexnumElseIf (Ihexnum Sresult = ChrB (h80 + (Ihexnum and h3f))Ihexnum = Ihexnum h40Sresult =

ASP version Alipay payment category, automatic Judge phone or PC

)Private M_l2power (30)Private Function LShift (LValue, Ishiftbits)If ishiftbits = 0 ThenLShift = LValueExit functionElseIf ishiftbits = ThenIf LValue and 1 ThenLShift = h80000000ElseLShift = 0End IfExit functionElseIf ishiftbits Err.Raise 6End IfIf (LValue and M_l2power (31-ishiftbits)) ThenLShift = ((LValue and M_lonbits ()-(ishiftbits + 1)) * M_l2power (ishiftbits)) Or h80000000ElseLShift = ((LValue and M_lonbits (31-ishiftbits)) * M_l2power (ishiftbits))End IfEnd FunctionPrivate Function Str

Implement UTF8 conversion GB2312 GB code-application skills

Copy Code code as follows: ' Personal Code style note (the first lowercase alphabet in the variable name represents the variable type) ' I: an integer type; ' s: string; Function U2utf8 (Byval a_inum) Dim Sresult,sutf8 Dim Itemp,ihexnum,i Ihexnum = Trim (a_inum) If ihexnum = "" Then Exit Function End If Sresult = "" If (Ihexnum Sresult = Sresult Ihexnum ElseIf (Ihexnum Sresult = ChrB (h80 + (Ihexnum and h3f)) Ihexnum = ihex

ASP Wsimage Component Add watermark Practical Code _ Application Tips

(ChrB (AscB (Objstream.read (1)) AMP;CHRB (c))) I=i+1 Else STEMP=STEMPAMP;CHR (c) End If Next Substring=stemp End Function Function instring (THESTART,VARSTR) Dim i,j,bt,thelen,str Instring=0 Str=tobyte (VARSTR) Thelen=lenb (STR) For I=thestart to Objstream.size-thelen If I>objstream.size then Exit Function Objstream. Position=i-1 If AscB (objstream. Read (1)) =ASCB (MidB (str,1)) Then Ins

ASP import Excel data into SQL Server implementation code _ Application Tips

Upfile_5xsoft_stream.eos then Exit for C=ASCB (Upfile_5xsoft_stream.read (1)) If C > 127 Then If Upfile_5xsoft_stream.eos then Exit for STEMP=STEMPAMP;CHR (AscW (ChrB (AscB (Upfile_5xsoft_stream.read (1)) AMP;CHRB (c))) I=i+1 Else STEMP=STEMPAMP;CHR (c) End If Next Substring=stemp End Function Private Function instring (THESTART,VARSTR) Dim i,j,bt,thelen,str Instring=0 Str=tobyte (VARSTR) T

PHP Export Table Two methods--phpexcel the case

;setwidth (18);$obActiveSheet->getcolumndimension (' C ')->setwidth (15);$obActiveSheet->getcolumndimension (' D ')->setwidth (15);$obActiveSheet->getcolumndimension (' E ')->setwidth (15);$obActiveSheet->getcolumndimension (' H ')->setwidth (15);Export$this->outputphpexcel ($objPHPExcel, $filename);}/*** Attendance Data Write* @param $SheetIndex Cell Object* @param $Cycle Cycle Data list* @param $_clock Employee Attendance data* @return Number returns the current maximum row count*/Private Func

ASP UTF-8 page garbled + gb2312 to UTF-8 + generate UTF-8 format file (encoding) page 1/2

sresult, suf8Dim itemp, ihexnum, I Ihexnum = trim (a_inum) If ihexnum = "" thenExit FunctionEnd if Sresult = "" If (ihexnum Sresult = sresult ihexnumElseif (ihexnum Sresult = chrb ( h80 + (ihexnum and h3f ))Ihexnum = ihexnum \ h40Sresult = chrb ( hc0 + (ihexnum and h1f) sresultElseif (ihexnum Sresult = chrb ( h80 + (ihexnum and h3f ))Ihexnum = ihexn

Implementation Code for ASP to import Excel Data to SQLServer

, theLen) Dim I, c, stemp Upfile_5xSoft_Stream.Position = theStart-1 Stemp = "" For I = 1 to theLen If upfile_5xSoft_Stream.EOS then Exit C = ascB (upfile_5xSoft_Stream.Read (1 )) If c gt; 127 Then If upfile_5xSoft_Stream.EOS then Exit Stemp = stemp Chr (AscW (ChrB (AscB (upfile_5xSoft_Stream.Read (1) ChrB (c ))) I = I + 1 Else Stemp = stemp Chr (c) End If Next SubString = stemp End function Private Fun

Practical code for adding a watermark to the ASP wsImage component

, the text watermark has no opacity.'============== Adjust the text transparency ========================Set MyJpeg = Server. CreateObject ("Persits. Jpeg ")MyJpeg. OpenBinary aaSet Logo = Server. CreateObject ("Persits. Jpeg ")Logo. OpenBinary bbMyJpeg. DrawImage 0.2, Logo, '0. 3 is transparencyCc = MyJpeg. Binary assign the final result to cc, and the target image can also be generated.Response. BinaryWrite CC' will be output to the browser.MyJpeg. Save (server. mappath (paths + filename ))Set

ASP Component-less upload

Function tobyte (STR)Dim I, icode, C, ilow, ihighTobyte = ""For I = 1 to Len (STR)C = mid (STR, I, 1)Icode = ASC (c)If icode If icode> 255 thenIlow = left (hex (ASC (c), 2)Ihigh = right (hex (ASC (c), 2)Tobyte = tobyte chrb (" H" ilow) chrb (" H" ihigh)ElseTobyte = tobyte chrb (ASCB (c ))End ifNextEnd Function Function substring (thestart, thelen)Dim I, C,

ASP converts UTF8 to GB2312 code

' Personal Code style note (the first lowercase alphabet in the variable name represents the variable type)' I: an integer type;' s: string;Function U2utf8 (Byval a_inum)Dim Sresult,sutf8Dim Itemp,ihexnum,i Ihexnum = Trim (a_inum) If ihexnum = "" ThenExit FunctionEnd If Sresult = "" If (Ihexnum Sresult = Sresult IhexnumElseIf (Ihexnum Sresult = ChrB (h80 + (Ihexnum and h3f))Ihexnum = Ihexnum h40Sresult = ChrB

ASP UTF-8 page garbled +gb2312 turn UTF-8 + generate UTF-8 file (code) 1th/2 page _ Application Tips

variable type) ' I: an integer type; ' s: string; Function U2utf8 (Byval a_inum) Dim Sresult,sutf8 Dim Itemp,ihexnum,i Ihexnum = Trim (a_inum) If ihexnum = "" Then Exit Function End If Sresult = "" If (Ihexnum Sresult = Sresult Ihexnum ElseIf (Ihexnum Sresult = ChrB (h80 + (Ihexnum and h3f)) Ihexnum = ihexnum \ h40 Sresult = ChrB (hc0 + ihexnum and h1f)) Sresult ElseIf (Ihexnum Sresult =

Simple and Easy-to-use VB string encryption and decryption functions

Private function encrypt (byval strsource as string) as string 'encryptionDim blowdata as byteDim bhigdata as byteDim I as longDim K as integerDim strencrypt as stringDim strchar as stringDim keytemp as stringDim key1 as byte For k = 1 to 30Keytemp = keytemp CSTR (INT (RND * (9) + 1 ))NextKey1 = cbyte (mid (keytemp, 11, 1) Mid (keytemp, 27, 1 ))For I = 1 to Len (strsource)Strchar = mid (strsource, I, 1) 'removes a character from the string to be encryptedBlowdata = ASCB (midb (strchar, 1, 1) X

ASP base64 UTF-8 to be compatible with Asp.net base64

CopyCode The Code is as follows: Function aspurldecode (strvalue) Dim varary, varelement, objstream, lngloop, flag Strvalue = Replace (strvalue, "+ ","") Varary = Split (strvalue, "% ") Flag = varary (0) = "" Set objstream = server. Createobject ("ADODB. Stream ") With objstream . Type = 2 . Mode = 3 . Open For each varelement in varary If varelement If Len (varelement)> = 2 and flag then . Writetext chrb (CINT (" H" left (varelement, 2 ))) For lnglo

'800a0005 ': An error occurred while writing files during image uploading-Modify pload_5xsoft.inc

I. Basic Questions Generally, the file write path is incorrect, or the directory permission is not properly set (you must set everyone or the Guest user iis_iusrs to full access) Ii. Special Problems 1. error message: ADODB. Stream error '800a0bbc' Failed to Write File. /Code/zhaosheng1/admin/upload_5xsoft.inc, row 175 2. Problem Solving: Microsoft VBScript runtime error '800a0005 'Image Upload upload_5xsoft.inc This is in use"ASP Component-less upload"Error. ASP local test is completely norma

ASP base64 utf-8 for compatible asp.net base64_ application techniques

Copy Code code as follows: Function Aspurldecode (strvalue) Dim varary, Varelement, objstream, Lngloop, Flag strvalue = Replace (strvalue, "+", "") Varary = Split (strvalue, "%") Flag = varary (0) = "" Set objstream = Server.CreateObject ("ADODB. Stream ") With Objstream . Type = 2 . Mode = 3 . Open For each varelement in Varary If varelement If Len (varelement) >= 2 and Flag Then . WRITETEXT ChrB (CInt ("h" Left (Varelement, 2)) Fo

Total Pages: 13 1 .... 4 5 6 7 8 .... 13 Go to: Go

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.