#1 2006-07-17 13:10

LawOfNonContradiction
Member
From: USA
Registered: 2006-04-28
Posts: 45

ReNamer: Pascal Script: change dec to binary

Would it be possible to have a script find decimal numbers of a length set by the user to binary format?


Say it were  StarGate_922.mpg, and the user chose to search for a 3 digit number.. the result being StarGate_1110011010.mpg.  Would search by number of characters work?  or could I specify using StartsAtPosition for 3 charaters?

:uhoh:

Offline

#2 2006-07-17 14:58

den4b
Administrator
From: den4b.com
Registered: 2006-04-06
Posts: 3,374

Re: ReNamer: Pascal Script: change dec to binary

I'm sure that everything that you can think of is possible, since it's a programming language we are talking about (PascalScript aka Delphi) big_smile But I'm not sure what you are trying to do. Do you want to extract the sequence of digits that is longer than X digits? How are the binary numbers connected to this? Give few examples of what exactly you are trying to achieve...

You will probably need to have a look at these PascalScript functions:

function WideGetChar(const S: WideString; Index: Integer): WideChar;
function IsWideCharDigit(WC: WideChar): Boolean;

P.S. you will also need the newest version: ReNamer.zip

Offline

Board footer

Powered by FluxBB