parasol consultancy limited
0800 083 7663
parasol logo
 

SOLCASE TIPS - MAY 2007

USING EXTERNAL FILES AS A DATA SOURCE

There are times when you may want to store information outside of Solcase and read it back in. One example might be for conveyancing quotation fees. You may have more than one matter type that uses the same figures so rather than store them in a script in Solcase you can use the [&Import] command to read a text file stored on the server. The advantage is that there is just one file to update and creating a little text file in Notepad takes a fraction of the time required to program a script in Solcase with endless &If commands.. Whilst there is a Fees table reading the contents into your scripts or letters is complex. Whilst this code could also be used in Visualfiles you would be better to create a fees table and link it appropriately.

The sample code reads a simple text file called LandRegFees.txt a copy of which is set out below the code. The data has been separated using the pipe (|) sign. To update the fees simply change the figures in the text file.

Obviously you can assign the price in your database to TF02 and assign TF01 back to the database field that holds the Land Registry Fee.

  article by Richard Arney


SEG USER FORUM

Unfortunately we have had to suspend this useful service as some users objected to publication

ABOUT PARASOL

Parasol was originally conceived in 2005 to provide expert help for solicitors struggling to get a return on their investment and make the best of their Solcase or Visualfiles installation.

The Parasol Consultancy Group was initially set up by:-

Richard Arney
Affik Choudhury
Andrew Hall
Tim Long
Bryan Tulloch

SAMPLE CODE

*******************************
Land Registry Fees Calculation
by Richard Arney
*******************************

** Import rates from external file
[&Assign TF01=0]
[&Assign TF02='enter price'(number)]
[&Import filename="C:\LandRegFees.txt", delimiter="|"]
        *** keep assigning a value until TF02 does not exceed the figure in column one
   [&If TF02>IF01(number)]
      [&Assign TF01=IF02(number)]
   [&EndIf]
[&EndImport]

[&Message "LR Fee is " + TF01]

 

The contents of the LandRegFees.txt file looks like this:

0|40
50000|60
80000|100
100000|150
200000|220
500000|420
1000000|700