Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

nchar(1)

Status
Not open for further replies.

yazzy

Programmer
Aug 6, 2007
2
GB
Hi

I am getting the following error 'Invalid character value for cast specification' when the query below is excuted in Clarion but it runs in SQL

Opportunity{PROP:SQL} = 'Select CONVERT(CHAR(1),oppo_psappr) from opportunity '

Loop
Next(Opportunity)
Case Errorcode()
Of Badrecerr
Break
Of Noerror
Cycle
Else Stop(fileerror() & ' ** file error code')
End
End

Could anyone in the Clarion6.1 community help please?

thanks in advance
 
Hi,

Possibly a mismatch in the data type of the first column of the Oppurtunity Table definition. It must be a STRING/CSTRING to receive a CHAR.

Regards
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top