Alpha Video Training
Results 1 to 4 of 4

Thread: dont understand how to display an array

  1. #1
    Member Graham Wickens's Avatar
    Real Name
    Graham Wickens
    Join Date
    Apr 2000
    Location
    Gloucestershire, UK
    Posts
    732

    Default dont understand how to display an array

    trying to learn about arrays in xdialog. Copied this example from documentation (only changing the directory name).

    Code:
    list   = filefind.get("c:\my databases\bitmaps\patch\*_patch.bmp",0,"PN|D|T")
    format = "name|directory|time"
    dim pp[6000] as P
    pp.initialize_properties(format,list)
    dim indx as N
    indx   = 1
    ui_dlg_box("Display File Information",<<%a%
    Name|Directory|Time;
    
    [.30,20indx^#pp\.name]|[.10,20indx^#pp\.directory]|[.40,20indx^#pp\.time];
    
    %a%)
    variable LIST has the filenames and the array has all file details, but nothing is listed by the xdialog. cant find what the different syntax does in the documentation...
    --
    Support your local Search and Rescue Unit, Get Lost!

    www.westrowops.co.uk

  2. #2
    "Certified" Alphaholic
    Real Name
    John Koh
    Join Date
    Jan 2004
    Location
    Maryland, USA
    Posts
    1,062

    Default Re: dont understand how to display an array

    may be this
    Code:
    list   = filefind.get("c:\my databases\bitmaps\patch\*_patch.bmp",0,"PN|D|T")

    list = filefind.get("f:\a5v5\*.*",0,"PN|D|T")
    Help directed: 'File_Pattern -- A pattern to select file names using wildcard characters like ?*' and ?? '.

  3. #3
    Member Graham Wickens's Avatar
    Real Name
    Graham Wickens
    Join Date
    Apr 2000
    Location
    Gloucestershire, UK
    Posts
    732

    Default Re: dont understand how to display an array

    yes, but when I display the variable "List" in the interactive window, all the file names are there. When I display the elements of the array "PP" they are all there as well. Just wont display in the xdialog. BTW that mask for file name works, I use it a lot for the various bitmaps around my database.
    --
    Support your local Search and Rescue Unit, Get Lost!

    www.westrowops.co.uk

  4. #4
    Member Graham Wickens's Avatar
    Real Name
    Graham Wickens
    Join Date
    Apr 2000
    Location
    Gloucestershire, UK
    Posts
    732

    Default Re: dont understand how to display an array

    well I got it to work, the example I used was incorrect.

    Code:
    [.30,20indx^#pp[\].name]|[.10,20indx^#pp\.directory]|[.40,20indx^#pp\.time];
    found it in another example!
    --
    Support your local Search and Rescue Unit, Get Lost!

    www.westrowops.co.uk

Similar Threads

  1. sql_get_value --> split results into Display / Value array
    By pettechservices in forum Application Server Version 11 - Web/Browser Applications
    Replies: 3
    Last Post: 05-18-2012, 11:32 PM
  2. Tablesum() - Multi tables - I dont understand criteria (Alpha Five v11)
    By AlanMalawi in forum Alpha Five Version 11 - Desktop Applications
    Replies: 11
    Last Post: 02-15-2012, 03:25 AM
  3. How do I display the number of non-empty elements in an Array
    By Graham Wickens in forum Alpha Five Version 7
    Replies: 2
    Last Post: 01-11-2007, 02:39 PM
  4. ODBC problem. I fixed but dont understand.
    By Jamin Dunivan in forum Alpha Five Version 4
    Replies: 0
    Last Post: 01-05-2001, 04:38 AM
  5. ODBC problem. I fixed but dont understand.
    By Jamin Dunivan in forum Alpha Five Version 4
    Replies: 0
    Last Post: 01-05-2001, 04:37 AM

Bookmarks

Posting Permissions

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