February 21, 200124 yr 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
February 22, 200124 yr 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) = "
February 22, 200124 yr Author 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.
February 22, 200124 yr Author I solved the problem by suppressing the CR LF in WinBatch. Thanks for your help
February 22, 200124 yr We have heard many rumours of this mysterious Winbatch. Please let us know how it works out.
February 23, 200124 yr Author 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.
Create an account or sign in to comment