Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Subscript
Message
De
12/11/2021 11:18:43
 
 
À
11/11/2021 15:40:49
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
01682701
Message ID:
01682708
Vues:
82
IF ALEN(aDV, 1) = 0
FOR nIdx = 1 TO nCFldCnt
nField = cCFlds[nIdx]
IF aDV[nField]==["] && wgcs
* Remove surrounding quotes

aDV[nField] = SUBSTR( aDV[nField], 2, LEN(aDV[nField])-2 ) && wgcs
ENDIF
ENDFOR
ENDIF

>>Correct and full code:
>>I**F aDV[nField]==["] && wgcs
>> * Remove surrounding quotes
>> ** aDV[nField] = SUBSTR( aDV[nField], 2, LEN(aDV[nField])-2 ) && wgcs
>> **ENDIF
>>>Keep getting the error subscript outside defined range on the following code:
>>>
>>>if adv(nfield0==["]
>
>Does array adv exist?
>What are the dimensions of array adv?
>what is the value of nField?
Thanks in Advance.

J. Turner
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform