LBound function

Results 1 to 3 of 3

Thread: LBound function

  1. #1
    Join Date
    Dec 1969

    Default LBound function

    Just a quick question to something puzzling..<BR><BR>If: The lower bound for any dimension is always 0 with regard to MS VBScripts LBound function, why bother with a function for this if it is always 0 ?<BR><BR>JohnC

  2. #2
    Join Date
    Dec 1969

    Default It is for VB developers...

    ...regular VB allows for 1 based lower bound arrays.<BR><BR>You are right though, this really isn&#039;t necessary in VBScript.

  3. #3
    Join Date
    Dec 1969

    Default true, but

    we don&#039;t know until we see the function body... i.e. if it looks like this<BR><BR>Function LBound (arrTheArray)<BR> LBound = 0<BR>End Function<BR><BR>Then you&#039;re absolutely right, but they (MS) probably don&#039;t like to hard code anything, so i&#039;m guessing they devised some kind of formula<BR><BR>Jason<BR>

Posting Permissions

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