forum

Home / DeveloperSection / Forums / Set a character variable with an if - then statement

Set a character variable with an if - then statement

Jayden Bell 1597 11-Jun-2013
Hi Expert,

How to set a variable, typeofauction, as either 'a' or 'f' with an if then statement. dim typeofauction as char. I'm trying as following 

typeofauction = typeofauction1.Text
    If (typeofauction = "Auction") Then
        listingtype = 'a'
    End If
    If (typeofauction = "Fixed Price") Then
        listingtype = 'f'
    End If

What wrong with above line of code.
Please help.
Thanks in advance. 

Updated on 12-Jun-2013

Can you answer this question?


Answer

1 Answers

Liked By