0

something is not right with these code the Is True Then , pls help me to correct it....


If isEmpty(Mfgno) Is True Then
lbl1.Caption = "Error"

Else
lbl1.Caption = "NoError"
End If

Debug.Print (Mfgno)

3
Contributors
3
Replies
4
Views
10 Years
Discussion Span
Last Post by coco86
0

Hi,

What type of Variable is "Mfgno"...?
If String Check for "" If Numeric check for Zero:

If Trim(MfgNo) ="" Then
  lbl1.Caption = "Error
Else
  lbl1.Caption = "NoError
End If

Regards
Veena

0

thnx both of you....

im using string and VB 6.0 , currently im using this method which is not so good

If Mfgno = " " Then lbl1.Caption = "Error line=" & line
If CardTran = " " Then lbl1.Caption = "Error line=" & line
If TranType = " " Then lbl1.Caption = "Error line=" & line
If TranDate = " " Then lbl1.Caption = "Error line=" & line
If DrCrFlag = " " Then lbl1.Caption = "Error line=" & line

i've to count the no of each substring to do this..... anyway thanx... i'm gonna try wat's veena suggest....

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.