Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Determine if controlsource is a field or a variable/prop
Message
From
15/07/2009 19:43:06
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00592686
Message ID:
01412627
Views:
37
>>>What if the ControlSource is a complex expression? How would we determine if it's an expression or a real field?
>>
>>Right... I think
>>
>>
lcAlias=juststem(.controlsource)
>>if lcalias#.controlsource and used(lcAlias)
>>   * we have a table
>>else
>>   * not a table - check whether it's a property, variable etc
>>endif
>
>Thanks, Dragan. I found that in CreateTag method that used the original Vlad G code I have code like that checking for the expression already. In the SetOrder method I just added check for used() for now.
>
>BTW, since I got your attention - do you know where this may be coming from
>
>"Your changes could not be saved. A transaction can not be started"

Index on ... to {filename} COMPACT

or

Index on ... tag {tagname} of {filename}


That way you get a cmpact (cdx-style) idx, or a nonstructural cdx, which should not prevent a transaction.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Reply
Map
View

Click here to load this message in the networking platform