FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Advise is needfull ..
Posts: 437
Joined: Fri Oct 07, 2005 12:56 PM
Advise is needfull ..
Posted: Wed Mar 06, 2013 07:11 AM
Hi,
Problem related to Harbour , but I'm thinking that this forum can help too ... :-) I'm creating project with minGw , it's running OK . Also I'm trying to build that with Borland ( Bcc 582 ) . Compiler return error , which related to SWITCH / CASE . It says that integer or char vr must be . Sample from TMySql.prg :
Code (fw): Select all Collapse
SWITCH ::aFieldStruct[ nNum ][ MYSQL_FS_TYPE ]
      CASE MYSQL_TYPE_TINY
         RETURN "L"
      CASE MYSQL_TYPE_SHORT
      CASE MYSQL_TYPE_LONG

Vars "MYSQL_" indetifiers are in mysql.ch and related to integers . This ch is in hrb\include ...
Why I'm getting this error ?
Rimantas U.

Continue the discussion