Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Ampersand macro substitution & objects
Message
De
19/07/2006 14:14:02
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
 
À
19/07/2006 09:27:00
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
01132321
Message ID:
01137756
Vues:
20
>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.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform