FlexPro
HistoryBase
Engineering
Training
Downloads
FlexPro Support
Knowledge
Community
About us
References
Jobs
General Contact
List Of Retailers
FlexPro Support
EN
DE
FR
Placeholder
Products and Solutions
Support and Downloads
Company
Magazine
Contact Us
Language
MyWeisang

Account settings

Topic

Detect the activate folder on a Fpscript

Home page Community FPScript Detect the activate folder on a Fpscript

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #33198
    sylvain bressieux
    Participant

    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
    [img]uid6438_bug formula.bmp[/img]

    #33200
    sylvain bressieux
    Participant

    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
    [img]uid6438_bug formula.bmp[/img]

    #33199
    Bernhard Kantz
    Participant

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

    Example:
    [code]
    StringMid(ActivatedFolder.name, 8, 4)
    [/code]

    support@weisang.com

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