Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Type function
Message
 
 
To
09/11/2005 14:33:45
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01066915
Message ID:
01066927
Views:
14
>>Hi everybody,
>>
>>Why this code
>> IF TYPE("thisform.toCallingForm.cntMainInfo.Employee_queue_activity_bizobj1") = "O"
>>
>>gives me .f. though I do have this object on the calling form? toCallingForm has a an object reference to the calling form
>>
>>How should I fix this?
>>
>>Thanks.

>
>
>VARTYPE(thisform.toCallingForm.cntMainInfo.Employee_queue_activity_bizobj1) = "O"
>
>or
>
>PEMSTATUS("thisform.toCallingForm.cntMainInfo","Employee_queue_activity_bizobj1",5)
>
Well, I found two problems <g>

First of all, the property is named oCallingForm and not toCallingForm.
Secondly, even if we're passing the toCallingForm parameter in the Init of the form, we're not assinging it to the form's property.

No wonder this would not work <g>
If it's not broken, fix it until it is.


My Blog
Previous
Reply
Map
View

Click here to load this message in the networking platform