Dear all Experts
All replies in this THREAD do not meet my need
But this one is near to fulfil the purpose
I need some modification in this procedure
SELECT crs1
GO TOP
SCAN FOR LIKE(PADR([1?],7,[ ]),code)
cmax = code
ENDSCAN
?cmax
startcode=alltrim('11')
SCAN FOR LIKE(PADR([1?],7,[ ]),code)
I want to add variable in above line
May this will look like this
SCAN FOR LIKE(PADR([startcode?],7,[ ]),code)
But this also reply 11
Please help