Re: Question about using VBScript properties in a webpage

Tech-Archive recommends: Speed Up your PC by fixing your registry



On Jul 30, 3:02 pm, "Anthony Jones" <A...@xxxxxxxxxxxxxxxx> wrote:

Thanks for the reply...

Where is getTime called?

getTime is called from another Sub

Does GetTime define a p variable of its own? (Its
usually best that you give Global variables a prefix to make it obvious its
global and to ensure it isn't shadowed by local variables).

Nope... the only 'p' used is the one shown in the first posting. BTW,
isn't 'p' global as I've written? I ask because in Window_OnLoad,
"p.SelectedFile = foo" works (but in getTime, "p.StartTime = s"
fails)... if p wasn't global wouldn't p fail inside of OnLoad too?

Thanks!

.



Relevant Pages

  • Re: Glolbal Variables Reset when using OleObjects
    ... Create OleObjects on a Worksheet (global variables are now dead) ... Make absolutely sure that you are running your init procedure immediately ... Public Sub init() ...
    (microsoft.public.excel.programming)
  • RE: returning hashes, and arrays
    ... > sub ParseLineForHomeAndVisitors() ... Two, I suspect 'Trail ... 3)Well, I've been taught not to use global variables, ... field goals attempted, field goals made, blocks ...
    (perl.beginners)
  • Re: Global variables disappear
    ... using the prefix to assist in management when the regional updates are moved ... > time you open the database again), you can write the value to a table. ... >> disturbed that sometimes while working on forms etc my Global variables ... >> On opening the database the system startup opens the Switchboard form. ...
    (microsoft.public.access.modulesdaovba)
  • Re: Passing of variables
    ... doing so here suggests you may not appreciate the difference between a SUB ... Dim ObjSubFolderCollection ... you should use global variables as sparingly as possible. ... var2 = something ...
    (microsoft.public.scripting.vbscript)
  • Re: Trapping Reset Project
    ... Private Sub SomeProc ... Exit Sub ... When your VBA project gets reset (by a user ... This includes global variables that hold ...
    (microsoft.public.access.formscoding)