Hi,
To begin with, I'm not an expert obviously but been using VFP for a while now.
At work, we have a various databased/tables coming to us. I need basically to write a simple program which would:
a) List all field names in a table (that's an easy part)
b) After listing these it would change very single field's character width to a certain digit (let's say 60)
b1) It would be helpful if the program could also change all of these types to 'character' as some of them would be set as 'numeric'
I've figured out to to list/display all field names as below:
gnFieldcount = AFIELDS(gaMyArray)
CLEAR
FOR nCount = 1 TO gnFieldcount
? gaMyArray(nCount,1)
ENDFOR
...but that's about it. After many attempt I cannot figure out how to store these names (cursor?) and tell VFP to change each of these character width to a given number.
Many thanks in advance for any advice!
To begin with, I'm not an expert obviously but been using VFP for a while now.
At work, we have a various databased/tables coming to us. I need basically to write a simple program which would:
a) List all field names in a table (that's an easy part)
b) After listing these it would change very single field's character width to a certain digit (let's say 60)
b1) It would be helpful if the program could also change all of these types to 'character' as some of them would be set as 'numeric'
I've figured out to to list/display all field names as below:
gnFieldcount = AFIELDS(gaMyArray)
CLEAR
FOR nCount = 1 TO gnFieldcount
? gaMyArray(nCount,1)
ENDFOR
...but that's about it. After many attempt I cannot figure out how to store these names (cursor?) and tell VFP to change each of these character width to a given number.
Many thanks in advance for any advice!