metropoj
16th September 2010, 16:54
I need some guidance with the following syntax.
ffno below is a long value and copt is a 16 character string.
ffno in this case = 200015 and copt = " 200015"
I want to (strip$(shiftl$(tipcf520.copt) and make it a value I can compare to ffno.
select tccom851.*, tipcf520.*
from tccom851, tipcf520
where tipcf520.cpft="BrndItem" and tipcf520.cpva=:tdsls041.cpva and
**** tccom851.ffno = tipcf520.copt ****
selectdo
BrndDesc = tccom851.artd
endselect
I tried using val() str() and a number of attempted solutions but the syntax brings up various errors and doesn't like it ... :(
Can anyone suggest what I should be trying to do here to convert and compare ? Thanks in advance !
I know I am missing something simple but I can't seem to get it right ! maybe I need to convert the value ahead of time or ?
ffno below is a long value and copt is a 16 character string.
ffno in this case = 200015 and copt = " 200015"
I want to (strip$(shiftl$(tipcf520.copt) and make it a value I can compare to ffno.
select tccom851.*, tipcf520.*
from tccom851, tipcf520
where tipcf520.cpft="BrndItem" and tipcf520.cpva=:tdsls041.cpva and
**** tccom851.ffno = tipcf520.copt ****
selectdo
BrndDesc = tccom851.artd
endselect
I tried using val() str() and a number of attempted solutions but the syntax brings up various errors and doesn't like it ... :(
Can anyone suggest what I should be trying to do here to convert and compare ? Thanks in advance !
I know I am missing something simple but I can't seem to get it right ! maybe I need to convert the value ahead of time or ?