Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Determine if controlsource is a field or a variable/prop
Message
 
To
11/12/2001 11:15:40
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00592686
Message ID:
00592713
Views:
28
>>Is there a way to determine if a controlsource was a table field or a property - variable?
>>
>>I need to know this to assign a new value to the controlsource of an object programmatically. I have added the "controlsource" property to a container and i need a way to reassing a value to this controlsource.
>>
>>Fields use the REPLACE command and properties/variables use the "=" assignation.
>>
>>Any clue?
>
>fsize() would return 0 for non table ones.
>Cetin

That can help, but it return 0 also if the table name was included.

And, if i remove what is before the dot, it can lead to trouble.
ie: tablename.charfield and thisform.charfield

I expect a way to test it without parsing the string.

Any idea?
If we exchange an apple, we both get an apple.
But if we exchange an idea, we both get 2 ideas, cool...


Gérald Santerre
Independant programmer - internet or intranet stuff - always looking for contracts big or small :)
http://www.siteintranet.qc.ca
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform