IDEASnippets
Get most recent file from a directory
I found this snippet by doing a google search and adapting it to IDEA. It will return the name of the most recently saved file from a directory. With a bit of change it should also find the most recently modified file from a directory.
- Read more about Get most recent file from a directory
- Log in or register to post comments
Create a delay
This little snippet will allow you to delay your code by x number of seconds. Just use the call wait(x) where x is the number of seconds you want the script to pause.
- Read more about Create a delay
- Log in or register to post comments
Remove Blanks from an Array
This function will remove any blank elements within an array.
- Read more about Remove Blanks from an Array
- Log in or register to post comments
How to sort an array
Somteimes you need to be able to sort an array. This function will take a single array and sort it in alphabetical order.
- Read more about How to sort an array
- 7 comments
- Log in or register to post comments
Log10
This function will return a Log10 value
- Read more about Log10
- Log in or register to post comments
Replace function
This function allows you to replace part of a string with another part. So if you have a string "ACBDEFGH" and you want to replace "DEF" with "MNO" using this function it would return "ABCMNOGH"
- Read more about Replace function
- Log in or register to post comments
Get a folder
This function will open a dialog that will display the folders on your computer which you can then choose one from. The second form only opens at the working directory level.
- Read more about Get a folder
- 4 comments
- Log in or register to post comments
Display the filename in a text field
This function will update a text field with a file name selected from within a custom menu.
- Read more about Display the filename in a text field
- 4 comments
- Log in or register to post comments
Populate Primary field List
This function will populate an array with information that can be used in a field list for a custom menu.
- Read more about Populate Primary field List
- Log in or register to post comments
Verify if integer
This if ... then statment will verify if a string inputed from a custom function is an integer
- Read more about Verify if integer
- Log in or register to post comments