R
Reotaro Hashemoto
Guest
Hi,
I was using a SKILL code to let the use graphically browse for a cell.
I tried to check if the lib, cell, or view exists, and if not print an
error message and return nil.
This is my trial:
libName = CSForm->srcLib->value
cellName = CSForm->srcCell->value
viewName = CSForm->srcView->value
; Try to check if lib, cell, and view exists otherwise give error and
return(nil)!!!
prog(()
when( null(ddGetObj(libName))
printf("Unkown library %L" libName)
return(nil)
when( null(ddGetObj(libName cellName))
printf("Unknown cell %L" cellName)
return(nil)
when( null(ddGetObj(libName cellName viewName))
printf("Unknown view %L" viewName)
return(nil)
)
)
)
); prog
I can't catch why it is not working..
Any notice?
Thanks,
Ahmad
I was using a SKILL code to let the use graphically browse for a cell.
I tried to check if the lib, cell, or view exists, and if not print an
error message and return nil.
This is my trial:
libName = CSForm->srcLib->value
cellName = CSForm->srcCell->value
viewName = CSForm->srcView->value
; Try to check if lib, cell, and view exists otherwise give error and
return(nil)!!!
prog(()
when( null(ddGetObj(libName))
printf("Unkown library %L" libName)
return(nil)
when( null(ddGetObj(libName cellName))
printf("Unknown cell %L" cellName)
return(nil)
when( null(ddGetObj(libName cellName viewName))
printf("Unknown view %L" viewName)
return(nil)
)
)
)
); prog
I can't catch why it is not working..
Any notice?
Thanks,
Ahmad