Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Is there a VFP function to...
Message
From
28/06/2006 09:42:18
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
28/06/2006 09:35:27
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01132372
Message ID:
01132374
Views:
14
I remember that VFX has a user-defined property to distinguish this case. In other words, the programmer has to set this property in each individual case.

I don't know whether there is an automatic way to determine this.

>I've been looking for a VFP function or a UDF that will allow me to determine if an object's control source refers to either a column in a cursor/table or to a memory variable. If it refers to a column I need to do a REPLACE command to update the column. If it refers to a memory variable I need to replace the value in the variable. Something like this is what I'm looking for:
>
> IF OBJTYPE(Object.ControlSource) = 'C'
> REPLACE (Object.ControlSource) WITH ltNewDateTime
> ELSE
> STORE ltNewDateTime TO (Object.ControlSource)
> ENDIF
>
>Thanks!!!
>Jim
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Previous
Reply
Map
View

Click here to load this message in the networking platform