SteveB Posted February 21, 2001 Posted February 21, 2001 How can I determine if the last 2 non-printing characters are a CR and Line Feed in a field? I'm using FM5 under Win98. Thanks
john.daly Posted February 22, 2001 Posted February 22, 2001 I'm not sure that you can since Filemaker doesn't seem to use Line Feed only Carriage Return. The question is why do need to know? The following calculation will tell you whether the last character is a Carriage Return: If( Right( YourField, 1) = "
SteveB Posted February 22, 2001 Author Posted February 22, 2001 Good question John. I'm using WinBatch, a Windows scripting utility supposedly similar to Applescript and the Troi Files Plugin. One or the other of them is appending a CR and LF to the line in a control file that I using for communications between WinBatch and FM5. Right now, I just backing off the last 2 characters in FM without doing any testing...this works but makes me nervous.
SteveB Posted February 22, 2001 Author Posted February 22, 2001 I solved the problem by suppressing the CR LF in WinBatch. Thanks for your help
BobWeaver Posted February 22, 2001 Posted February 22, 2001 We have heard many rumours of this mysterious Winbatch. Please let us know how it works out.
SteveB Posted February 23, 2001 Author Posted February 23, 2001 WinBatch looks a lot like Basic...it has over 500 functions and is very easy to use. It has a built-in debugger so you can step thru each line of code. With the compiler, you can create standalone EXEs with no royalties. I've got an EXE with eight functions: return the disk serial # (for a copy protection scheme), play WAV files, backup and restore to zip drives where the utility determines what drive letter (if any) the zip is attached to, create hidden files, etc. put up messages. It's very flexible and quick to develop in. You can do any sort of file manipulation, number crunching, string manipulation, windows,etc.
Recommended Posts
This topic is 8928 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now