Syntax Error???

Tim Fischer tim.fischer at trinitytransport.com
Fri Aug 27 06:50:43 PDT 2004


I've got 2 lines of code to generate passwords.  Currently, I use it in 3
files in my system.  I'm now trying to use it in my 4th file, but when I
copy the code in, it gives me a syntax error.

Here's the code:

mkrand ~ If: pc lt "6"
~
       Then: 282 = 282 { mid(pa,mod(rand(" "),"35"),"1") ; pc = pc + "1" ;
goto mkrand

Basically, this grabs a random character out of my dummy variable pa between
0 and 35.  Obviously, it loops through 6 times to get a 6 character
password.  The variable pa is defined as (36,*) and is filled with possible
characters for my password.

Now, as I said, I copied the code into the new table and now get a syntax
error in this new table:

*** A filePro Error Has Occurred ***

Line Number: 1031

282 = 282 { mid(pa,mod(rand(" "),"35"),"1") ; pc = pc + "1" ; goto mkrand
                       ^
Process contains a syntax error at position indicated.?

I've checked the table for any long variables called "rand", but there are
no long variables in the table.

Any ideas what I should look for?

Thanks in advance!

Tim Fischer

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.736 / Virus Database: 490 - Release Date: 8/9/2004
 



More information about the Filepro-list mailing list