Jump to content
  • 0

Scriptnaam uit scriptid


Theo2

Question

Posted

Vandaag beloofd dat het mogelijk is om vanauit een scriptid ook de bijbehorende naam te verkrijgen (tbv onafhankelijk van een scriptnaam kunnen aansturen van een plugin)

 

eea is in Filemaker 6 al mogelijk met bv bijgaande formule:

 

Middle( 
"¶" & ScriptNames(Status( CurrentFileName)) & "¶"; 

Position("¶" & ScriptNames(Status( CurrentFileName)) & "¶"; "¶" ; 1 ; 
PatternCount( Left("¶" & ScriptIDs(Status( CurrentFileName)); 
Position( "¶" & ScriptIDs(Status( CurrentFileName)) & "¶"; "¶" & NumToText(ScriptId) & "¶"; 1; 1)); "¶") ) + 1; 

Position("¶" & ScriptNames(Status( CurrentFileName)) & "¶"; "¶" ; 1 ; 
PatternCount( Left("¶" & ScriptIDs(Status( CurrentFileName)); 
Position( "¶" & ScriptIDs(Status( CurrentFileName)) & "¶"; "¶" & NumToText(ScriptId) & "¶"; 1; 1)); "¶") + 1) - 
Position("¶" & ScriptNames(Status( CurrentFileName)) & "¶"; "¶" ; 1 ; 
PatternCount( Left("¶" & ScriptIDs(Status( CurrentFileName)); 
Position( "¶" & ScriptIDs(Status( CurrentFileName)) & "¶"; "¶" & NumToText(ScriptId) & "¶"; 1; 1)); "¶") ) - 1 
) 

 

Zie ook bijgaand bestand.

 

Echter in Filemaker 7 wordt het een eitje met gebruik van de Let functie. IIIk heb evenwel nog geen Filemaker 7 dus laat ik het aan een ander over om dat uit te zoeken.

_________________

Theo Tromp

 

Hier de bijlage

test.fp5

4 answers to this question

Recommended Posts

  • 0
Posted

Ik heb Theo zijn file aangepast omdat de vraag initieel was :

De Event-plugin van oAzium maakt gebruik van de scriptnaam (hardcoded) in de Validation van een veld. As je de scriptnaam wijzigt in Scriptmaker, doet de plugin het niet meer. Kan de scriptnaam op één of andere manier "dynamisch" gemaakt worden ?

 

Dankzij Theo`s magistrale rekenkunst, heb ik dat probleem kunnen oplossen.

Clarify ten top !

 

@ Sanne : er zit nog geen fijne plugin-check ingebouwd.

 

PS : de plugin kan je downloaden op http://www.wmotion.com/events

ScriptID.fp5.zip

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...