Alpha Video Training
Results 1 to 3 of 3

Thread: Rookie xdialog question

  1. #1
    Real Name
    Larry Kingsella
    Join Date
    May 2008

    Default Rookie xdialog question

    I am sorry if this is obvious, but I have looked all over. I need to change the name portion of a file, leaving the extension unchanged. I want to use an xdialog that allows the name change but shows the file extension. Here is the sample code I have so far:

    FUNCTION rename_file AS C ( )
    file_name = "testfile"
    file_ext = ".ext"

    'file rename dialog
    Filename: [128.32file_name].file_ext;
    %dlg% )
    rename_file = file_name-file_ext

    The intended result is: [testfile ].ext
    What I get is: [testfile ].file_ext

    How do I get the contents of the variable and not the variable name?

    Thank you

  2. #2
    Real Name
    Alan Buchholz
    Join Date
    Oct 2000
    Delavan, Wisconsin

    Default Re: Rookie xdialog question

    Filename: [128.32file_name].[%r%file_ext];

    from the help file
    Al Buchholz
    Bookwood Systems, LTD
    Weekly QReportBuilder Webinars Thursday 1 pm CST

    Occam's Razor - KISS
    Normalize till it hurts - De-normalize till it works.
    Advice offered and questions asked in the spirit of learning how to fish is better than someone giving you a fish.
    When we triage a problem it is much easier to read sample systems than to read a mind.

  3. #3
    "Certified" Alphaholic Tim Kiebert's Avatar
    Real Name
    Tim Kiebert
    Join Date
    Jul 2004
    Geelong, Victoria, Australia

    Default Re: Rookie xdialog question


    Filename: [128.32file_name]{text=file_ext};

    Help Page
    Tim Kiebert
    Eagle Creek Citrus
    A complex system that does not work is invariably found to have evolved from a simpler system that worked just fine.

Similar Threads

  1. Embarrasing rookie question-starting
    By EricN in forum Application Server Version 8
    Replies: 3
    Last Post: 07-09-2007, 03:33 PM
  2. Rookie Networking Issue
    By Daryl Mcclimans in forum Alpha Five Version 5
    Replies: 2
    Last Post: 08-30-2004, 08:13 AM
  3. Rookie Frustrations
    By karlbeau in forum Alpha Five Version 5
    Replies: 2
    Last Post: 05-11-2004, 07:52 AM
  4. Rookie help please
    By in forum Alpha Five Version 5
    Replies: 2
    Last Post: 02-06-2004, 09:24 AM
  5. Rookie Help
    By in forum Alpha Five Version 4
    Replies: 1
    Last Post: 05-24-2002, 11:23 AM


Posting Permissions

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