Results 1 to 4 of 4

Thread: [RESOLVED] [2005] some probs and questions

Threaded View

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    May 2006
    Posts
    137

    Resolved [RESOLVED] [2005] some probs and questions

    1.

    VB Code:
    1. Public Function GetExplorerOptions()
    2.         'Get the options for the explorer
    3.         FileOpen(1, ApplicationDataExplorerOptionsURL, OpenMode.Input)
    4.         StartHomePageOnLoad = LineInput(1).Trim
    5.         RestoreLastWebPagesOnLoad = LineInput(1).Trim
    6.         DeleteCookiesOnClose = LineInput(1).Trim
    7.         DefaultSearchEngine = LineInput(1).Trim
    8.         EnabledPopupBlocker = LineInput(1).Trim
    9.         NotifyPopupBlocked = LineInput(1).Trim
    10.         FileClose(1)
    11.     End Function

    I use Call GetExplorerOptions to get it!

    Something wrong with the public function GetExplorerOptions() line, this is how I have always done it, so what have I done wrong?

    Error: Function without an 'As' clause; return type of Object assumed.

    2. What is meant by an 'unused local variable'?

    3.
    Code:
    VB Code:
    1. xk = Weekday(fdate, FirstDayOfWeek.Sunday)
    2.         Select Case xk
    3.             Case 1
    4.  
    5.                 mtdate = "Monday"
    6.             Case 2
    7.  
    8.                 mtdate = "Sunday"
    9.             Case 3
    10.  
    11.                 mtdate = "Tuesday"
    12.             Case 4
    13.  
    14.                 mtdate = "Wenesday"
    15.             Case 5
    16.  
    17.                 mtdate = "Thursday"
    18.             Case 6
    19.  
    20.                 mtdate = "Friday"
    21.             Case 7
    22.  
    23.                 mtdate = "Saturday"
    24.         End Select

    Error: Operands of type Object used in expressions for 'Select', 'Case' statements; runtime errors could occur

    Appears to be programmed correctly!!!

    Thanks Guys
    Last edited by arcon5; May 22nd, 2006 at 06:41 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width