Kamis, 10 Mei 2012

[AccessDevelopers] Initalizing variables ; study help please

 

{SHOULD NOT THE 4TH LINE BE NotFirstTime = True or False or Something}
From O'Reilly's Access Database-Design & Programming 2nd Edition page 170. Example 10-1. Using a Static Variable

Sub StaticExample()

'Declare static Boolean variable
Static NotFirstTime As Boolean

'If first time, then run special code
If NotFirstTime = False Then

'Code here that runs only the first time procedure is called

'No longer the first time
NotFirstTime = True

Else

'Not the first time
'Code here will run if not first time

End If
'Code here will run if not first time
End Sub

__._,_.___
Recent Activity:

Please zip all files prior to uploading to Files section.
.

__,_._,___

Tidak ada komentar:

Posting Komentar