Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Mouseover - Picture
Message
From
13/12/1999 08:32:19
 
 
To
12/12/1999 22:28:33
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00300887
Message ID:
00302647
Views:
30
>Hi Doug,
>
>>One "gotcha" with AMOUSEOBJ() is that you MUST remember to dimension the array beforehand. For some odd reason the command does not automatically create an array other array-based commands do.
>>If you don't you'll get an error.
>
>LOL! VFP Docs:
>
>If the array you specify doesn't exist, Visual FoxPro automatically creates the array. If the array exists and isn't large enough to contain all the lines in the memo field, Visual FoxPro automatically increases the size of the array. If the array is larger than necessary, Visual FoxPro truncates the array.
>
>Another infamous MS "Documented Un-Feature"! <g> Thanks for the Heads Up!
Mike,

Here's the AMOUSEOBJ() help information. MS actually documented this one but the behavior really isn't consistent IMO.

"AMOUSEOBJ( ) returns 4 (the number of rows in the array) if the mouse pointer is positioned over an area listed above. If the mouse pointer is positioned over an area other than those listed above, AMOUSEOBJ( ) returns zero and if the array you specify already exists, it remains unchanged. If the array you specify doesn't exist, it isn't created." (emphasis mine)

Best,

DD
Best,


DD

A man is no fool who gives up that which he cannot keep for that which he cannot lose.
Everything I don't understand must be easy!
The difficulty of any task is measured by the capacity of the agent performing the work.
Previous
Reply
Map
View

Click here to load this message in the networking platform