public goapp goapp = newOBJECT("appmanager","appmgr.fxp") set proc to objdatatype additive oDataType = createOBJECT('objDataType')The 'invalid subscript reference' pops up on the 3rd line shown below when the objdatatype tries to go to goapp.
DEFINE CLASS ObjDataType AS CUSTOM lnConn = 0 lnConn = goApp.Connect2SQL('CHROMM')If I run the exact same line from the command prompt I get a positve value in lnConn (I have an sqlconnection) and no error message.