home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World Komputer 1996 February
/
PCWK0296.iso
/
sharewar
/
os2
/
program
/
liberty
/
tradshow.bas
< prev
next >
Wrap
BASIC Source File
|
1995-01-21
|
3KB
|
113 lines
nomainwin
WindowWidth = 640
WindowHeight = 480
statictext #main.statictext1, "Enter Trade Show Information Below:", 26, 16, 280, 20
textbox #main.name, 142, 51, 216, 25
textbox #main.company, 142, 81, 216, 25
textbox #main.position, 142, 111, 216, 25
textbox #main.address, 142, 141, 216, 25
textbox #main.city, 142, 171, 216, 25
textbox #main.state, 142, 201, 64, 25
textbox #main.zip, 142, 231, 96, 25
textbox #main.phone, 142, 261, 136, 25
textbox #main.fax, 142, 291, 136, 25
textbox #main.memo, 142, 321, 216, 25
statictext #main.statictext3, "Name:", 62, 56, 40, 20
statictext #main.statictext13, "Company:", 62, 86, 64, 20
statictext #main.statictext14, "Position:", 62, 116, 72, 20
statictext #main.statictext15, "Address:", 62, 146, 64, 20
statictext #main.statictext16, "City:", 62, 176, 40, 20
statictext #main.statictext17, "State:", 62, 206, 48, 20
statictext #main.statictext18, "Zip:", 62, 236, 32, 20
statictext #main.statictext19, "Phone:", 62, 266, 48, 20
statictext #main.statictext20, "FAX:", 62, 296, 32, 20
statictext #main.statictext21, "Memo:", 62, 326, 40, 20
button #main, "&Print", [printMe], UL, 454, 16
open "Trade Show Information" for dialog as #main
print #main, "trapclose [quit]"
[inputLoop]
input r$
goto [inputLoop]
[printMe] 'Perform action for the button named 'print'
'print and save the entered information
print #main.name, "!contents?"
input #main.name, name$
print #main.company, "!contents?"
input #main.company, company$
print #main.position, "!contents?"
input #main.position, position$
print #main.address, "!contents?"
input #main.address, address$
print #main.city, "!contents?"
input #main.city, city$
print #main.state, "!contents?"
input #main.state, state$
print #main.zip, "!contents?"
input #main.zip, zip$
print #main.phone, "!contents?"
input #main.phone, phone$
print #main.fax, "!contents?"
input #main.fax, fax$
print #main.memo, "!contents?"
input #main.memo, memo$
open "tradeinf.dat" for append as #2
print #2, name$
print #2, company$
print #2, position$
print #2, address$
print #2, city$
print #2, state$
print #2, zip$
print #2, phone$
print #2, fax$
print #2, memo$
print #2, " "
close #2
'print the label
open "Label Viewer" for graphics_nsb as #label
label$ = "\ "
label$ = label$ + "\" + name$
label$ = label$ + "\" + company$
label$ = label$ + "\" + position$
label$ = label$ + "\" + address$
label$ = label$ + "\" + city$
label$ = label$ + "\" + state$
label$ = label$ + "\" + zip$
label$ = label$ + "\" + phone$
label$ = label$ + "\" + fax$
label$ = label$ + "\" + memo$
if Platform$ = "OS/2" then print #label, "font helvetica 16 37";
if Platform$ = "Windows" then print #label, "font mssanserif";
print #label, "down";
print #label, label$
print #label, "flush"
print #label, "print"
close #label
goto [inputLoop]
[quit]
prompt "Enter Password to Quit"; password$
if password$ <> "please" then [inputLoop]
close #main
end