Author Topic: getting error undefined type  (Read 2575 times)

0 Members and 1 Guest are viewing this topic.

Offline badger

  • Forum Regular
  • Posts: 148
    • View Profile
getting error undefined type
« on: October 07, 2020, 04:57:21 pm »
Hello

I for the life of me cant figure out why i am getting this error.

the line with sdesc in type customer is giving me the error

badger
Code: QB64: [Select]
  1. REM ***************************************************************************
  2. REM **** customer info record type ********************************************
  3. REM ***************************************************************************
  4. TYPE customer
  5.     id AS STRING * 10
  6.     sfirst_name AS STRING * 25
  7.     slast_name AS STRING * 25
  8.     saddress AS STRING * 30
  9.     scity AS STRING * 25
  10.     sstate AS STRING * 2
  11.     szip AS STRING * 5
  12.     sphone AS STRING * 10
  13.     sdesc as string 10
  14.     sfiller AS STRING * 114
  15. REM ***************************************************************************
  16.  
  17. REM ***************************************************************************
  18. REM **** inventory record type ************************************************
  19. REM ***************************************************************************
  20. TYPE inventory
  21.     id AS STRING * 10
  22.     sdesc AS STRING * 10
  23.     sdate_bought AS STRING * 8
  24.     sdate_sold AS STRING * 8
  25.     scost AS STRING * 15
  26.     sretail AS STRING * 15
  27.     ssize AS STRING * 2
  28.     ssold AS STRING * 1
  29.     squanity AS STRING * 2
  30.     sfiller AS STRING * 57
  31. REM ***************************************************************************
  32.  
  33. REM ***************************************************************************
  34. REM **** system data file record **********************************************
  35. REM ***************************************************************************
  36. TYPE systemdat
  37.     sdata0 AS STRING * 64 '   data path for customer discription files
  38.     sdata1 AS STRING * 64 '   data path for inventory discription files
  39.     sdata2 AS STRING * 64 '   data path for pos discription files
  40.     sdbpath AS STRING * 64 '  data path for database files
  41. REM ***************************************************************************
  42.  
  43.  
  44.  

Offline badger

  • Forum Regular
  • Posts: 148
    • View Profile
Re: getting error undefined type
« Reply #1 on: October 07, 2020, 04:59:48 pm »
Hello

for to use the * for string size Sorry for posting

Badger