Re: [DOS] How to set different text_colors?

new topic     » goto parent     » topic index » view thread      » older message » newer message

If you want to have user response integrated then you have to use get.e lib.

For example, if you want your code to prompt for a number that will be used
to show color then you can write a function or the easiest way to do it
i.e, if u r beginner is the following methed. I call it looping-around :        
               ;)

include get.e
integer num1
puts(1, "The simplest code ever\n")

num1 = prompt_number("Enter a number for my code\n", {})
if num1 = 1 then
text_color(1)
elsif num1 = 2 then
text_color(2)
.....
.....
this goes on till your code is full of lines and lines of loops.

But as i said before ;integration' is the key. Write a function, thats the
best way dear.

-Hope this helps

Asif Baloch
MBA (Information Technology)
BBA (CBIS)

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu