[Gambas-user] Porting from Gambas1 to Gambas2

Jeffrey Cobb maillists.gurulounge at ...626...
Sun Jan 27 11:18:15 CET 2008


I'm trying to port an old project from Gambas 1 to Gambas 2 and I've hit
a snag.  The IDE is saying that "procSystem" is an undefined symbol.  I
don't understand why as it's clearly defined.  Here are the relevant
parts of the code:

' Gambas class file
PRIVATE procSystem AS Process

PUBLIC SUB RefreshProperties()
  SHELL "free" FOR READ AS procSystem
  object.Attach(procSystem, ME, "procSystem")
  ProcessWait()
...
...
END

PUBLIC SUB procSystem_Read()
DIM sData AS String
DIM intInput AS Integer
  sData = ""
  LINE INPUT #procSystem, sData
  sData = Trim(sData)
  strExecArray.Add(sData)
  strExecArray[0] = Str(strExecArray.Count - 1)
END

PUBLIC SUB procSystem_Kill()
  procSystem = NULL
END

PUBLIC SUB ProcessWait()
  WHILE (procSystem <> NULL)
    WAIT 0.1
  WEND
END

Any help's appreciated...
Jeff






More information about the User mailing list