Solved

How to design the form and database to get input of Math formular and print it in Exam papers

Posted on 1998-03-20
2
161 Views
Last Modified: 2010-04-06
I am taking charge of designing the "exam-paper bank" application which receives the imput from users via form.  The problem is that the application has to be capable of appropriately receiving all various formula or math equations via form-interface and storing them in database in order to print them out to the exam paper.  On other words, users will, for Mathematic exam, key in some math equation in a proper format and request the output in the exact format as they key in.
Please devote your time advising me what method or function to use, how to use it.
0
Comment
Question by:teeradech
2 Comments
 
LVL 5

Expert Comment

by:julio011597
ID: 1360661
I do not understand very well the problem:

if a user submits a formula, you get that exact formula on the server side, with any non-alphanumeric chars encoded like %xx, where xx is the ascii value for an encoded char, in hexadecimal.

Your problem is you don't know how to decode it?

If so, i've already written a decoding function which i could post here.
If not so, please, tell a bit more.


0
 
LVL 1

Accepted Solution

by:
dvaline earned 100 total points
ID: 1360662
Let me get this straight you have say a form where the user enters the equation for say the area of a rectange,
l * w = a
or
10 * 20 = 200
To Store that value into a database make sure, you first don't use the dbEdit box use a normal edit box, then on exit write the following to store, you can use the reverse to retrieve...

to store...
MyTable.FieldByName('MathFormula').AsString := edit1.text
(I would probable place this line on the OnLeave event for the edit box)

to retrieve
edit1.Text := MyTable.FieldByName('MathFormula').AsString;


0

Featured Post

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Virtuailstring tree compare node issue 14 116
Delphi : could not find program, '...exe' 2 168
Printing problem 2 91
enhance the following code 3 30
The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

776 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question