Results 1 to 3 of 3

Thread: Arrays

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Aug 2000
    Location
    Ireland
    Posts
    224

    Question

    Hi guys
    I'm looking for help with arrays. I have a slight problem with running a program on a few computers and am trying to figure out whats wrong.
    Code:
    Dim Userss As dynaset
    Dim UserAudit As Table
        Userss.Edit
        Userss![Expiry Date] = Format$(Date + PasswordExpiry, "dd/mm/yyyy")
    Call logtofile(DebugLog, ":Problem is here")
       ' What I'm trying to do after this is  declare an array of type variant and put the values that are  in the Userss![Expiry Date] = Format$(Date + PasswordExpiry, "dd/mm/yyyy") into it.???
    ' Then what I want to do is is print all these values to a log file.
    'I have the log file bit already, I just don't know how to print the values of a table to it.
    I would appreciate the help. Thanks a lot
    JK


    [Edited by kanejone on 09-18-2000 at 07:00 AM]

  2. #2
    Frenzied Member HarryW's Avatar
    Join Date
    Jan 2000
    Location
    Heiho no michi
    Posts
    1,827
    I don't know about dynasets, but with recordsets you have to loop through each record and explicitly work with the data, you can't just print a whole recordset to a log file in one or two commands.

    Is that what you're trying to do?
    Harry.

    "From one thing, know ten thousand things."

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Aug 2000
    Location
    Ireland
    Posts
    224
    Thanks for the reply. Ye, that's what I was trying to do. I was trying to dim XXX as Variant an then use getRows to show the values of the RS. Is there any way this can be done??

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