Skip to Content
author's profile photo Former Member
Former Member

Some info about if condition and case sensitive

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    Posted on Aug 30, 2012 at 01:30 PM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Aug 30, 2012 at 03:31 PM

    Hi,

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

    With regards,

    Venki .A

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.