|
-
Jan 9th, 2002, 07:25 AM
#1
Thread Starter
Frenzied Member
Fields clearing by themselves
VB Code:
' Program Globals
Dim DestAlbum as String
Dim DestDisc as String
'Main Sub
Private Sub CommandBrowse_Click()
Dim RetStat As Integer
Dim TempDest As String
Load Albumsfrm
Albumsfrm.Show 1
If Albumsfrm.Retstring <> "" Then
RetStat = GetParam(Albumsfrm.Retstring, 1, "||", DestAlbum)
RetStat = GetParam(Albumsfrm.Retstring, 2, "||", DestDisc)
End If
TempDest = DestDisc
MsgBox DestAlbum & " " & DestDisc
AlbumName.Text = DestAlbum
MsgBox DestAlbum & " " & DestDisc
If TempDest <> "" Then
AlbumName.Text = AlbumName.Text & " (" & TempDest & ")"
End If
Set Albumsfrm = Nothing
End Sub
Can anyone see in the above procedure why the first popup message displays "Atomic Kitten CD1"
and the second one displays a blank popup?
It seems as though the Albumname.Text = DestAlbum clears my Global Variables DestAlbum and DestDisc!!
There are 3 types of people in this world.........those that can count, and those that can't.
Blobby
-
Jan 9th, 2002, 08:21 AM
#2
I would assume you have some code in the albumname control for when the value changes... if so, disable the control while you do that bit
-
Jan 9th, 2002, 06:33 PM
#3
Thread Starter
Frenzied Member
Si,
You are a genius! I never thought to look in there................
There are 3 types of people in this world.........those that can count, and those that can't.
Blobby
-
Jan 10th, 2002, 04:51 AM
#4
Unfortunately it's an easy mistake to make - so lots of people do it... makes it easier to spot when someone else does it
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|