Convert the amount of lowercase to uppercase (VB.NET) ....

xiaoxiao2021-03-06  14

Public Class Form1

Inherits System.Windows.Forms.form

#Region "Windows Form Designer Generated Code"

Public Sub New ()

Mybase.new ()

'This Call is Required by the Windows Form Designer.

InitializeComponent ()

'Add anyinitization after the initializecomponent () CALL

End Sub

'Form Overrides Dispose to Clean Up The Component List.

Protected Overloads Overrides Sub Dispose (Byval Disposing as Boolean)

IF Disposing then

IF not (Components Is Nothing) THEN

Components.dispose ()

END IF

END IF

Mybase.dispose (Disposing)

End Sub

'Required by the Windows Form Designer

Private Components as System.comPonentModel.icontainer

'NOTE: The Following Procedure Is Required by The Windows Form Designer

'It can be modified using the windows form designer.

'Do Not Modify It Using The Code Editor.

Friend Withevents TextBox1 As System.Windows.Forms.TextBox

Friend WitHevents TextBox2 as System.Windows.Forms.TextBox

Friend Withevents Button1 As System.Windows.Forms.Button

private subinitializecomponent ()

Me.TextBox1 = new system.windows.Forms.TextBox

Me.TextBox2 = new system.windows.Forms.TextBox

Me.Button1 = new system.windows.Forms.Button

Me.suspendlayout ()

'

'TextBox1

'

Me.TextBox1.Location = new system.drawing.point (6, 8)

Me.TextBox1.name = "textbox1"

Me.TextBox1.size = new system.drawing.size (226, 20)

Me.TextBox1.tabindex = 0

Me.TextBox1.text = ""

'

'TextBox2

'

Me.TextBox2.Location = new system.drawing.point (4, 38)

Me.TextBox2.name = "TextBox2"

Me.TextBox2.size = new system.drawing.size (228, 20)

Me.TextBox2.TabINDEX = 1ME.TextBox2.text = ""

'

'Button1

'

Me.Button1.Location = new system.drawing.point (270, 34)

Me.Button1.name = "button1"

Me.Button1.taBindex = 2

Me.Button1.text = "Conversion"

'

'Form1

'

Me.autoscalebasesize = new system.drawing.size (5, 13)

Me.ClientSize = new system.drawing.size (354, 63)

Me.Controls.add (me.button1)

Me.Controls.add (Me.TextBox2)

Me.Controls.add (Me.TextBox1)

Me.Name = "Form1"

Me.Text = "Form1"

Me.ResumeLayout (false)

End Sub

#End region

Private ISTG_INT_CHINESE_PART AS STRING

Private ISTG_DEC_CHINESE_PART AS STRING

Private sub button1_click (byvale as system.object, byval e as system.eventargs) Handles Button1.click

Me.NumberchangeChineseNumber (Me.TextBox1.text)

Me.TextBox2.text = ISTG_INT_CHINESE_PART & Me.ISTG_DEC_CHINESE_PART

End Sub

Public Function NumberchangeChineseNumber (Byval ADEL_INPUT_NUMBER AS DECIMAL)

DIM LSTG_NUMBER AS STRING = "0123456789"

DIM LSTG_CHINESE_NUMBER AS STRING = "Zero Zhai Zi Lu Lu"

DIM LSTG_INPUT_NUMBER AS STRING = ADEL_INPUT_NUMBER.TOSTRING ()

DIM LINT_POINT AS INTEGER = LSTG_INPUT_NUMBER.INDEXOF (".")

DIM LSTG_INT_NUMBER AS STRING = ""

DIM LSTG_INT_NUMBER_DIGITAL AS STRING = "" "

DIM LSTG_INT_CHINESE_DIGITAL AS STRING = "" "

DIM LSTG_NUMBER_DIGIGITAL AS STRING = "" "

DIM LSTG_DEC_NUMBER AS STRING = ""

DIM LSTG_DEC_NUMBER_DIGITAL AS STRING = "" "

DIM LSTG_DEC_CHINESE_DIGITAL AS STRING = ""

DIM LINT_INT_CHINESE_NUMBER AS INTEGER

DIM LINT_DEC_CHINESE_NUMBER AS INTEGER

IF LINT_POINT <> -1 THEN

Dim larr_don as string = "." DIM LARR_CHAR AS Char () = larr_don.tochararray ()

DIM LARR_INPUT_NUMBER AS STRING () = LSTG_INPUT_NUMBER.SPLIT (LARR_CHAR)

LSTG_INT_NUMBER = LARR_INPUT_NUMBER (0)

LSTG_DEC_NUMBER = LARR_INPUT_NUMBER (1)

Else

LSTG_INT_NUMBER = LSTG_INPUT_NUMBER.TOSTRING ()

LSTG_DEC_NUMBER = "00"

END IF

IF LSTG_INT_NUMBER.LENGTH> 16 THEN

Messagebox.show ("Numerical Benefits ....")

Else

For lint_a as integer = 1 to LSTG_INT_NUMBER.LENGTH

lstg_number_digital = lstg_int_number.Substring (lint_a - 1, 1)

For lint_b as integer = 0 to 9

LSTG_INT_NUMBER_DIGITAL = LSTG_NUMBER.SUBSTRING (LINT_B, 1)

lstg_int_chinese_digital = lstg_chinese_number.Substring (lint_b, 1)

IF LSTG_NUMBER_DIGITAl = LSTG_INT_NUMBER_DIGITAL THEN

Me.ISTG_INT_CHINESE_PART = me.ISTG_INT_CHINESE_PART LSTG_INT_CHINESE_DIGITAL

END IF

NEXT

lint_int_chinese_number = lstg_int_number.Length - lint_a 1

SELECT CASE LINT_INT_CHINESE_NUMBER

Case 1

Me.istg_int_chinese_part = Me.istg_int_chinese_part & "circle"

Case 2

Me.istg_int_chinese_part = Me.istg_int_chinese_part & "pick up"

Case 3

Me.ISTG_INT_CHINESE_PART = me.ISTG_INT_CHINESE_PART & ""

Case 4

Me.ISTG_INT_CHINESE_PART = me.ISTG_INT_CHINESE_PART & "仟"

Case 5

Me.istg_int_chinese_part = Me.istg_int_chinese_part & "Wan"

Case 6

Me.istg_int_chinese_part = Me.istg_int_chinese_part & "pick up"

Case 7

Me.istg_int_chinese_part = Me.istg_int_chinese_part & "Bai"

Case 8

Me.istg_int_chinese_part = Me.istg_int_chinese_part & "thousand"

Case 9

Me.ISTG_INT_CHINESE_PART = Me.ISTG_INT_CHINESE_PART & "100 million" case 10

ME.ISTG_INT_CHINESE_PART = me.ISTG_INT_CHINESE_PART & "Pick up"

Case 11

Me.ISTG_INT_CHINESE_PART = me.ISTG_INT_CHINESE_PART & ""

Case 12

Me.ISTG_INT_CHINESE_PART = me.ISTG_INT_CHINESE_PART & "仟"

Case 13

Me.ISTG_INT_CHINESE_PART = Me.ISTG_INT_CHINESE_PART & "10,000"

End SELECT

NEXT

LSTG_NUMBER_DIGITAL = ""

For lint_aa as integer = 1 to LSTG_DEC_NUMBER.LENGTH

LSTG_NUMBER_DIGITAl = LSTG_DEC_NUMBER.SUBSTRING (Lint_aa - 1, 1)

For lint_bb as integer = 0 to 9

LSTG_DEC_NUMBER_DIGITAL = LSTG_Number.substring (lint_bb, 1)

LSTG_DEC_CHINESE_DIGITAL = LSTG_CHINESE_NUMBER.SUBSTRING (LINT_BB, 1)

IF LSTG_NUMBER_DIGITAl = LSTG_DEC_NUMBER_DIGITAL THEN

Me.ISTG_DEC_CHINESE_PART = Me.ISTG_DEC_CHINESE_PART LSTG_DEC_CHINESE_DIGITAL

END IF

NEXT

LINT_DEC_CHINESE_NUMBER = LSTG_DEC_NUMBER.LENGTH - LINT_AA 1

SELECT CASE LINT_DEC_CHINESE_NUMBER

Case 2

ME.ISTG_DEC_CHINESE_PART = me.Istg_Dec_Chinese_Part & "Corner"

Case 1

Me.ISTG_DEC_CHINESE_PART = Me.IsTG_DEC_CHINESE_PART & "Division"

End SELECT

NEXT

END IF

END FUNCTION

END CLASS

Running renderings:

转载请注明原文地址:https://www.9cbs.com/read-48296.html

New Post(0)