Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

I need to check if a row is null 1

Status
Not open for further replies.

jjmew

Programmer
Aug 20, 2002
34
0
0
US
I am overriding the Fetch function in the content part. I have this :

Dim row as AcDataRow
Set row = Super::Fetch( )


I need to know wheter row is null or not. How I can do that? i have try if row=Null .... that doest compile.


Please help me
 
Try isnull() function
This is documented in the Actuate manuals - which you should have access to
 
Thanks for your help. I already try the IsNull function but i doesnt compile becouse it says that the only kind of variable that you can use is variant. I am using a AcDataRow variable and that is the problem
 
From Actuate manual:

If row is Nothing Then
...
End If

This will only happen at the end of file.

Maybe you could test one column of the row for null, a column that is normally set to some value?
 
Hi Folks Gazolba is right, I am posting a very simple code for so anyone can get help in future.

Function Fetch ()

Dim row as AcDataRow
Set row = Super::Fetch( )

If row Is Nothing Then
Exit Function
End If

MyGlobalVariable1 = row.Variable1
MyGlobalVariable2 = row.Variable2

Set Fetch = row

Exit Function

This is just an example not a tested code.

hope this helps.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top