home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
DOS/V Power Report 2001 November
/
VPR0111A.ISO
/
HSTRAIAL
/
MSHagaki
/
MM3.Cab
/
F96810_mshsnavi.vs.4722E93C_9B97_42FF_8575_C46D868BB8C1
< prev
next >
Wrap
Text File
|
2001-07-06
|
4KB
|
105 lines
// mshsnavi.vs
// はがきスタジオナビのVBScriptファイル
// 2000,03,13
// update 2001.07.03
//
// *****************************************************************************************************
// 指定された識別名で Cookie に値を保存する
Sub SetHsCookieVariable( strVariableName, varVariableValue )
Document.Cookie = strVariableName & "=" & varVariableValue
End Sub
// 保存されている Cookie の抽出
Function ReadHsCookieVariable( strVariableName )
Dim intLocation
Dim intNameLength
Dim intValueLength
Dim intNextSemicolon
Dim strTemp
Dim tempValue
intNameLength = Len( strVariableName )
intLocation = Instr( Document.Cookie, strVariableName )
If intLocation = 0 Then
ReadHsCookieVariable = NOT_FOUND
tempValue = NOT_FOUND
Else
strTemp = Right( Document.Cookie, Len( Document.Cookie ) - intLocation + 1 )
If Mid(strTemp, intNameLength + 1, 1) <> "=" Then
ReadHsCookieVariable = NOT_FOUND
tempValue = NOT_FOUND
Else
intNextSemicolon = Instr( strTemp, ";" )
If intNextSemicolon = 0 Then
intNextSemicolon = Len( strTemp ) + 1
End If
If intNextSemicolon = (intNameLength + 2) Then
ReadHsCookieVariable = ""
tempValue = ""
Else
intValueLength = intNextSemicolon - intNameLength - 2
ReadHsCookieVariable = Mid( strTemp, intNameLength + 2, intValueLength )
tempValue = Mid( strTemp, intNameLength + 2, intValueLength )
End If
End If
End if
End Function
Function direct_set_curcategory( categoryindex )
Call parent.window.external.set_curcategory( categoryindex )
End Function
Function direct_set_address_book_mode( id )
Call parent.window.external.set_curmodelid( id )
End Function
Function address_book_finish( id )
Call direct_set_curcategory( "AddressBook" )
Call direct_set_address_book_mode( id )
Call navi_finish()
End Function
Sub SetExternalGlobalData()
Dim tmpValue
tmpValue = ReadHsCookieVariable( "GlobalData_szCategory_value" )
Call parent.window.external.set_curcategory( CStr(tmpValue) )
tmpValue = ReadHsCookieVariable( "GlobalData_szTypeName_value" )
Call parent.window.external.set_curtypename( CStr(tmpValue) )
tmpValue = ReadHsCookieVariable( "GlobalData_nAttribute_value" )
Call parent.window.external.set_curattribute( CInt(tmpValue) )
tmpValue = ReadHsCookieVariable( "GlobalData_szFileName_value" )
Call parent.window.external.push_filename( CStr(tmpValue) )
tmpValue = ReadHsCookieVariable( "GlobalData_szDesignFileName_value" )
Call parent.window.external.set_curfilename( CStr(tmpValue) )
tmpValue = ReadHsCookieVariable( "GlobalData_bVertical_value" )
Call parent.window.external.set_curvertical( CInt(tmpValue) )
tmpValue = ReadHsCookieVariable( "GlobalData_check_barcode_checked" )
Call parent.window.external.set_curbarcode( CBool(tmpValue<>"false") )
tmpValue = ReadHsCookieVariable( "GlobalData_szModelName_value" )
Call parent.window.external.set_curmodelname( CStr(tmpValue) )
tmpValue = ReadHsCookieVariable( "GlobalData_szDesignTextName_value" )
Call parent.window.external.set_curdesignname( CStr(tmpValue) )
End Sub
Function setExternalLabelData()
Call SetExternalGlobalData()
End Function
Function setExternalData()
Dim tmpValue
tmpValue = ReadHsCookieVariable( "GlobalData_nModelID_value" )
parent.window.external.set_curmodelid( CInt(tmpValue) )
Call SetExternalGlobalData()
End Function
Function navi_finish()
Call parent.window.external.navi_finish()
End Function