Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Comparing objects
Message
From
06/08/1998 02:13:19
 
 
To
05/08/1998 18:53:10
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00124254
Message ID:
00124386
Views:
14
Vlad ---


It was tongue-in-cheek!! A joke!

>Come on, John! It's only 1 minute and 23 sec between your replies!
>
>You know, reading tens of messages takes some time and the new messages do not appear in the thread tree. One can check if there's no other newer reply, but this is time consuming...
>
>Vlad
>
>>Josh ----
>>
>>Do you have some weird ESP thing going? Did you see my answer? ROFL..GMTA
>>
>>>
>>>You can't compare objects using = in VFP 5.0a. This capability is available in VFP 6.0. If you know the listboxes will have different names (they have to if they're on the same form, of course), you could use IF THIS.Name=oSource.Name
>>>
>>>>VFP 5.0a
>>>>I created two listboxes on a form with drag & drop capabilities.
>>>>
>>>>If the user drags an item from one listbox, but drops it back in the same listbox they dragged it from, I don't want anything to happen.
>>>>
>>>>In the following code, I am trying to say, "If the oSource object is the same object we are dropping on, do nothing."
>>>>
>>>>Can't objects be compared with the = sign?
>>>>
>>>>In the DragDrop event of each listbox I have the code:
>>>>------------------------------------------------------
>>>>LPARAMETERS oSource, nXCoord, nYCoord
>>>>
>>>>if oSource != this
>>>> oSource.dblclick()
>>>>endif
------------------------------------------------
John Koziol, ex-MVP, ex-MS, ex-FoxTeam. Just call me "X"
"When the going gets weird, the weird turn pro" - Hunter Thompson (Gonzo) RIP 2/19/05
Previous
Reply
Map
View

Click here to load this message in the networking platform