Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Ampersand macro substitution & objects
Message
From
19/07/2006 14:14:02
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
To
19/07/2006 09:27:00
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
01132321
Message ID:
01137756
Views:
19
>Hi there....hopefully you are not still struggling with this, but here is the corrected version which should work...
>
>Local cCheckName AS String
>
>Scan
> cCheckName = [.] + Alltrim(CheckBoxRules.Checkname)
> With Thisform.Pages1._page1
> ? &cCheckName && evaluates to _Check1 of type object
> cCheckName = cCheckName + ".AddProperty('cSqlString',&Rules)"
> &cCheckName
> Endwith
>Endscan
>
>I noticed you had a double period (..)....if this is necessary...modify the line accordingly.

The first period is there to denote the end of macro; the second is the object.PEM delimiter. If there was only one, it would be interpreted as end-of-macro marker, and you'd get objectproperty together.

And this is completely unnecessary:
   cCheckName = Alltrim(CheckBoxRules.Checkname)
   loChk=getpem(Thisform.Pages1._page1, cCheckname)
   loChk.addproperty('cSqlString',Rules)
Endscan

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