If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > Informix > take input from user

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 05-15-10, 05:51
pbankar pbankar is offline
Registered User
 
Join Date: May 2010
Posts: 1
take input from user

Hi...

I have started to learn Informix 4GL programming... I am at beginning stage.

Currtently I trying some sample programs to learn more about Informix 4GL programming.

I am trying sample program to perform addition, subtraction,multiplication, division opertions.
I want to take 2 numbers from user for my program.But i am able to take number but unable to perform operation and also display result.

So please any body can help me in my problem... i will be very thankful.....

I hope i will get quick response from anybody.

Thanks
Pravin
Reply With Quote
  #2 (permalink)  
Old 05-16-10, 19:52
Luis Santos Luis Santos is offline
Registered User
 
Join Date: Jun 2009
Location: Lisboa, Portugal
Posts: 51
Hi pbankar,

There are many ways of having the numbers from the user... the most simplest way is using the instruction "prompt" validating the numbers recieved from users, then you do the operation the show the result by a "message" instruction.
This is the simplest way, but not the best one...
If you want to do it how it should be done, you should do a form for an normal input then have the numbers from the user, then recieve what kind of operation he wants to preform, then you can open one window and show the result...

Do you know how to do it?

Have fun...

LS
__________________
LS
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On