Hi all,
I wanted to clone a Control (2007r2) and I have troubles:
nothing appears on the target window (1)
I added an 'introspection' / report method and can see the properties
(different y value BUT not the Control name...)
More disturbing is an old test project: the code works fine in its
original project, but displays an error when I included it in my project:
Dim p(4) As PushButton
Dim i As Integer
For i = 1 to 3
p(i) = New PushButton1
If p(i) <> Nil Then
p(i).Top = 30 + (30 * i)
p(i).Left = 230
p(i).Caption = "Cloned PB #" + Str(i)
p(i).Width = 100
End If
If UserCancelled Then Exit
Next
The reported error is:
There is no class with this name.
p(i) = New PushButton1
Of course, there is a PushButton1 Control on the window (in both projects).
Remember: the code in its own project works fine and produce an error on
compile when I place it in the 2007r2 application.
The original project was created on jully 26, 2003 (and probably with
REALbasic 5.2)
Any idea ?
Emile
PS: I have an appointment in some minutes, so I will come back in around
2 hours and see if the trouble is still here (cold reboot).
(1) the cloned Control appears as invisible (Visible = False) in the
debugger, so I add Visible = True in the clonage Method.
A BreakPoint let me see that I created clones, this is only a display
trouble (and I do not know why).
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>