This is a formula I am writing in Crystal Reports and vb is the closest thing to it so hopefully someone can figure this out.
I am dealing with a long string that looks like 0.0055;0;0;0;0. It looks like an array but doesn;t act like on. For example, I only need the first value but if I ask for myArray[1], I get "0", myArray[2] yields ".", etc. So I created this for loop to get what I want:
I am making a Cancel button to close a form without saving. I check for changes in each control and if it changed I want to restore it to the old value, I get an error saying I can't assign value to this object. Here is my code
[CODE=vb]Private Sub Cancel_Click()
'Check for changes
If Me.Dirty Then
Dim ctrl As Control
' For each control.
For Each ctrl In Me.Controls...
Leave a comment: