FlexPro Forum – Discuss Your Topic!

Detect the activate folder on a Fpscript

Home > Community > FPScript > Detect the activate folder on a Fpscript

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #12472

    Bonjour,
    J’ai un petit souci sur un Fpscript.
    Mon but est de détecter le dossier actif (dossier rouge dans la fenêtre « Folders » sur l’image ci dessous) et de récupérer la valeur de l’année sur le nom complet du dossier.
    C’est-à-dire « 2009 » du dossier « INES001_2009-01-06_08-15-16 »
    Or comme vous pouvez voir c’est le dossier sélectionné par la souris « Project Database : … » qui a été pris en compte et non le dossier actif !!!?
    Comment peut-on faire pour obtenir ce que je veux ?

    Merci d’avance pour votre réponse

    Traduction Google :

    Hello,
    I have a small problem on a Fpscript.
    My goal is to detect the activate folder (red folder in the “Folders” on the image below) and recover the value of the year on the full name of the file.
    That is to say “2009” file “INES001_2009-01-06_08-15-16 ‘

    But as you can see that the folder selected by the mouse “Project Database …” has been taken into account and not the activate folder!?
    How can we do to get what I want?

    Thank you in advance for your reply

    #8145

    Bonjour,
    J’ai un petit souci sur un Fpscript.
    Mon but est de détecter le dossier actif (dossier rouge dans la fenêtre « Folders » sur l’image ci dessous) et de récupérer la valeur de l’année sur le nom complet du dossier.
    C’est-à-dire « 2009 » du dossier « INES001_2009-01-06_08-15-16 »
    Or comme vous pouvez voir c’est le dossier sélectionné par la souris « Project Database : … » qui a été pris en compte et non le dossier actif !!!?
    Comment peut-on faire pour obtenir ce que je veux ?

    Merci d’avance pour votre réponse

    Traduction Google :

    Hello,
    I have a small problem on a Fpscript.
    My goal is to detect the activate folder (red folder in the “Folders” on the image below) and recover the value of the year on the full name of the file.
    That is to say “2009” file “INES001_2009-01-06_08-15-16 ‘

    But as you can see that the folder selected by the mouse “Project Database …” has been taken into account and not the activate folder!?
    How can we do to get what I want?

    Thank you in advance for your reply

    #8769
    Bernhard KantzBernhard Kantz
    Participant

    Please use the FPScript function ActivatedFolder instead of ActiveFolder.
    ActiveFolder returns the active (selected) folder. ActivatedFolder returns the activated (red) folder.

    Example:

    
    StringMid(ActivatedFolder.name, 8, 4)
    

    support@weisang.com

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.