Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Conditional GetFldState Excluding Specific Fields
Message
De
26/07/2001 13:08:59
Jay Johengen
Altamahaw-Ossipee, Caroline du Nord, États-Unis
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00535632
Message ID:
00535873
Vues:
18
>Ok, I reviewed the code. Following is changed mRefresh method:

How about the references to Value and DisplayValue in the mInitSQL code below? I can't seem to work out how to eliminate those lines without wrenching the functionality out of the Combo. And if you're weary of this topic just let it go and I'll program around the GetFldState logic instead. Thanks, Renoir
This.AddProperty('cSourceAlias', '')
with This
   .mQuery()
   if !empty(.ControlSource)
      local lnResult, luValue
      lnResult = 1
      luValue  = eval(.ControlSource)
      lnResult = ascan(.aList, luValue)
      if lnResult = 0
         .mAddItem(luValue)
      endif
      .DisplayValue = luValue
      .Value = luValue
      if at(".", .ControlSource) > 0
         local lcAlias
         lcAlias = juststem(.ControlSource)
         if !empty(lcAlias) and used(lcAlias)
            .nRecord = 0
         endif
            .cSourceAlias = lcAlias
      endif
   endif
   .Requery()
endwith
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform