Files
004_comission/armandarmand/task1/task1-ticket1/helloworld/browser/hello-aastock/ReadStockCode.bas
louiscklaw ce9a4aa9b3 update,
2025-01-31 19:27:58 +08:00

23 lines
368 B
QBasic

Attribute VB_Name = "ReadStockCode"
Option Explicit
Function run(row as integer)
On Error GoTo eh
Dim temp as string
temp = Worksheets(TARGET_SHEET).Range(COL_STOCK_CODE & CStr(row)).Value
if (temp = "") then
temp = -1
end if
run = temp
Done:
exit Function
eh:
debug.print "ReadStockCode"
debug.print row
debug.print temp
End Function