home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World Komputer 1997 November
/
Pcwk1197.iso
/
LOTUS
/
Eng-ins
/
SAMPLES
/
APPROACH
/
SCPTDEMO.LSS
< prev
Wrap
Text File
|
1995-08-23
|
1KB
|
39 lines
Sub Recordchange(Source As Docwindow)
If currentview.body.objradio.isclicked=True Then
currentview.body.company.background.color.setrgb(COLOR_YELLOW)
Print "Done!"
Elseif currentview.body.objradio3.isclicked=True Then
currentview.body.company.background.color.setrgb(COLOR_RED)
currentview.body.company.font.bold=True
currentview.body.company.font.italic=True
currentview.body.company.font.size=12
Set currentview.body.lastname.font = currentview.body.company.font
Else
currentview.body.company.background.color.setrgb(COLOR_WHITE)
Set currentview.body.company.font = currentview.body.firstname.font
End If
' Brief Comments about the LotusScript Example
'
'The example above changes the fill color of the COMPANY
'field based on 'the value in the STATUS field. When it
'encounters a PREMIUM customer, it changes the font information
'in the LASTNAME field to those of the COMPANY field.
'
'Please note that the object-oriented capabilities of Approach
'allow us to set the LASTNAME field to ALL of the font
'characteristics of another field -- with a single statement.
'Visual BASIC would have required that the developer reissue
'all of the individual statements for:
' currentview.body.company.font.bold=True
' currentview.body.company.font.italic=True
' currentview.body.company.font.size=12
End Sub