cancel
Showing results for 
Search instead for 
Did you mean: 

Some info about if condition and case sensitive

Former Member
0 Kudos

               hi..

                i am doing this one in my code..

              here a67 is a variable type string.

                it is comming from the screen.. CFL item code...

               my requirement is

if user choose A00006 THIS CONDITION WILL BE EXECUTED.

but if he type.. a00006 this is condition will not execute..

is there any statement or operation it will be converted into automatically to capital letters..

give me your valuable suggestions....

    

                            If (a67 = "A00006") Then

                                Dim ds5 As SAPbobsCOM.Recordset

                                ds5 = ocompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.BoRecordset)

                                ds5.DoQuery("select t0.code from ostc t0 where t0.name='VAT @ 4%'")

                                omatrix.Columns.Item("V_8").Cells.Item(pVal.Row).Specific.value = ds5.Fields.Item(0).Value

                              end if

Accepted Solutions (1)

Accepted Solutions (1)

KennedyT21
Active Contributor
0 Kudos

Hi Seenu,

Use TOUpper

                            If (a67.ToUpper() = "A00006") Then

                                Dim ds5 As SAPbobsCOM.Recordset

                                ds5 = ocompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.BoRecordset)

                                ds5.DoQuery("select t0.code from ostc t0 where t0.name='VAT @ 4%'")

                                omatrix.Columns.Item("V_8").Cells.Item(pVal.Row).Specific.value = ds5.Fields.Item(0).Value

                              end if

Regards

Kennedy

Former Member
0 Kudos

Thank u very much Working Good....

Keep Posting....

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

    Use   If (a67.ToUpper() = "A00006".ToUpper())

With regards,

Venki .A