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 Andrzejek on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Getting error in passing numeric value from vb.net(2005) to visual foxpro(9) table.

Status
Not open for further replies.

Sehaj

Programmer
Apr 21, 2014
1
Getting an error "Data Type Mismatch" when passing numeric value from vb.net to visual foxpro table.

The structure for field "pack price" is numeric(15,6) in visual foxpro.

The vb.net line which is showing error is :

cmd36.Parameters.AddWithValue("pack_price", CDec(txttotalprice.Text).ToString("N6")).

Kindly advice.
 
Perhaps FoxPro doesn't like you converting the value to a string?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top