Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Seek not working
Message
De
03/07/2006 16:04:03
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows 2000 SP4
Network:
Windows 2000 Pro
Database:
Visual FoxPro
Divers
Thread ID:
01133476
Message ID:
01133490
Vues:
12
Which finds it if any?
lclregno = UPPER(ALLTRIM(thisform.pgfpageframe1.page4.txtCma_regno.Value))
SELECT NWC
WAIT WINDOW "reg is_" + lclregno + "_"
IF lclregno <> ""
   WAIT WINDOW "regno variable is not blank"
   IF !INDEXSEEK(lclregno,.t.,'NWC','CMA_regno')	
       WAIT WINDOW "Step 1 did not find it."
       IF !INDEXSEEK(alltrim(lclregno),.t.,'NWC','CMA_regno')
          WAIT WINDOW "Step 2 did not find it."
          IF !INDEXSEEK(upper(lclregno),.t.,'NWC','CMA_regno')
              WAIT WINDOW "Step 3 did not find."
              IF !INDEXSEEK(upper(alltrim(lclregno)),.t.,'NWC','CMA_regno')
                 WAIT WINDOW "Verify the tag information"
                     SELE NWC
                     =ataginfo(mytags,'NWC')
                     list MEMORY LIKE mytags
              ELSE
                WAIT WINDOW "Found it with upper(alltrim())" 
              ENDIF
          ELSE
              WAIT WINDOW "Found it with upper()"
          ENDIF
       ELSE
          WAIT WINDOW "Found it with alltrim()"
       ENDIF
   ELSE
      WAIT WINDOW "Found it with with indexseek()"
   ENDIF
ENDIF
.·*´¨)
.·`TCH
(..·*

010000110101001101101000011000010111001001110000010011110111001001000010011101010111001101110100
"When the debate is lost, slander becomes the tool of the loser." - Socrates
Vita contingit, Vive cum eo. (Life Happens, Live With it.)
"Life is not measured by the number of breaths we take, but by the moments that take our breath away." -- author unknown
"De omnibus dubitandum"
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform