Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Subscript
Message
From
12/11/2021 11:38:54
 
 
To
12/11/2021 11:18:43
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
01682701
Message ID:
01682709
Views:
40
1. It would be very helpful if you answer the questions...
2. Please format your code by using < pre > before the code and < /pre > after. Html don't show space and Tab characters without these html tags,

Press the Adding Code to your Message button for details.

Note that I had to add space characters here, without them the html tags won't show.

>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?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform