Announcement

Collapse
No announcement yet.

Please help me...

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • David Bethune
    replied
    Thank you.. I appreaciate the help.. and your both right I was being VERY lazy..

    David Bethune

    ------------------

    Leave a comment:


  • Donald Darden
    replied
    Mel's code will suffice, but you need to recognize what is going
    on.
    SaveDate$ is a string variable that you assign
    DATE$ is a PB Reserve word that can either be a statement or
    a function that will set or get the current date
    DATE$="date format" means one of the follow formats:
    mm-dd-yy
    mm/dd/yy
    mm-dd-yyyy
    mm/dd/yyyy

    SHELL "command or program" starts another thread and carries
    out the command or program you specified

    So SaveDAte$ = DATE$ 'saves the current date in SaveDate$
    DATE$ = "04/23/1983" 'resets the date as specified
    SHELL "command or filename" 'lets you run a command or program.
    DATE$=SaveDate$ 'restores the date

    I think Mel was too modest when he said he wrote 75% if what you
    need. More like 90%, since you only had to look up the date
    format and read up a bit on the help file.

    I don't want to be critical here, but Mel's short answer would
    suggest that he feels you should have tried harder before posting
    your second message. The first one was fine, we all like to
    help, and people need to post their questions. The second was
    needless if you had done anything at all with his first answer.

    ------------------
    Old Navy Chief, Systems Engineer, Systems Analyst, now semi-retired

    Leave a comment:


  • David Bethune
    replied
    Thank you again,
    I got it...lazy me...

    David

    ------------------

    Leave a comment:


  • Mel Bishop
    replied
    David, if I can, I don't mind showing someone on the right road
    but they will have to get behind the steering wheel and drive
    the road themselves.

    Now the outline in my previous post is already about 75% the
    finished product. Look at and study it, perform the "flow" in
    your mind then put it in your computer.


    ------------------

    Leave a comment:


  • David Bethune
    replied
    Thank you Mel.
    Ok this is dumb but could you lay this
    out in a compilable format for me.

    I would really appreciate it.

    Thanks sooo much for your help.

    David Bethune

    ------------------

    Leave a comment:


  • Mel Bishop
    replied
    savedate$ = date$ 'save current date
    date$ = {whatever according to the help file}
    shell "whatever"
    date$ = savedate$

    Piece of cake.

    Added: You can also do the same thing with the time but you will
    need to add the minutes/seconds during the shell process.
    ------------------


    [This message has been edited by Mel Bishop (edited December 01, 2004).]

    Leave a comment:


  • David Bethune
    started a topic Please help me...

    Please help me...

    Could someone help me with a little code please. I want to write a small program to
    1) Capture and store the system date
    2) Then change the system date to whatever
    3) Then shell to execute a file
    4) Then restore the system date.

    I know this is a no brainer but it's been a long time
    since I coded anything and I'd appreciate the help.
    Thanks

    ------------------
Working...
X