Hello all"
I'm bombing out on my dblClick procedure. I would like to see the rocord/acct# I selected from my liost box, write it to my array sc_ship_a_ship[80] and to my field 'Card' located in my upsman.dbf table (ref. upsman.Card)
Thank you
Error#: 12
Error Msg: "Variable is not Found"
Line of code: "'select Csnum, carrier, acct_no'+;
' from custacct into cursor lstCsnum'"
Thank you,
PM
Procedure Carr_Acct
oForm = Createobject('Carr_Acct')
oForm.Show
Define Class Carr_Acct As Form
DataSession = 2 && Private data session
Caption ='Select Account#'
ControlBox =.T. && We don't want close,min,max etc buttons
BorderStyle = 1
Height=100
Width=250
AutoCenter =.T.
WindowType =1 && Modal - we don't want user to go on w/o this
Add Object Carr_Acct As ListBox With ;
Left=0, Top=0,Height=100,Width=250
Procedure Carr_Acct.Init
With This
.RowSourceType = 3 && SQL
.RowSource = 'select Csnum, carrier, acct_no'+;
' from custacct into cursor lstCsnum'
.ColumnCount=8
.ColumnLines = .t.
.ColumnWidths = '75,75,75'
Endwith
Procedure Load
use upsman alias upsman
Endproc
Procedure Carr_Acct.DblClick
sc_ship_a_ship[80]=(upsman.Card)
Thisform.Release()
Endproc
Enddefine
I'm bombing out on my dblClick procedure. I would like to see the rocord/acct# I selected from my liost box, write it to my array sc_ship_a_ship[80] and to my field 'Card' located in my upsman.dbf table (ref. upsman.Card)
Thank you
Error#: 12
Error Msg: "Variable is not Found"
Line of code: "'select Csnum, carrier, acct_no'+;
' from custacct into cursor lstCsnum'"
Thank you,
PM
Procedure Carr_Acct
oForm = Createobject('Carr_Acct')
oForm.Show
Define Class Carr_Acct As Form
DataSession = 2 && Private data session
Caption ='Select Account#'
ControlBox =.T. && We don't want close,min,max etc buttons
BorderStyle = 1
Height=100
Width=250
AutoCenter =.T.
WindowType =1 && Modal - we don't want user to go on w/o this
Add Object Carr_Acct As ListBox With ;
Left=0, Top=0,Height=100,Width=250
Procedure Carr_Acct.Init
With This
.RowSourceType = 3 && SQL
.RowSource = 'select Csnum, carrier, acct_no'+;
' from custacct into cursor lstCsnum'
.ColumnCount=8
.ColumnLines = .t.
.ColumnWidths = '75,75,75'
Endwith
Procedure Load
use upsman alias upsman
Endproc
Procedure Carr_Acct.DblClick
sc_ship_a_ship[80]=(upsman.Card)
Thisform.Release()
Endproc
Enddefine