input

Previous topic - Next topic

Kepu

Hi!
Something wrong with Input command ?

following sample crashes and computer  wants send  error report to Microsoft

PRINT "Name:", 100, 100
INPUT name$, 100, 150
BLACKSCREEN
PRINT "Name: " + name$, 100, 100
SHOWSCREEN
MOUSEWAIT

if I ignore input, everything else works

PRINT "Name:", 100, 100
// INPUT name$, 100, 150
BLACKSCREEN
PRINT "Name: " + name$, 100, 100
SHOWSCREEN
MOUSEWAIT

and it  doesn't matter if I  use  number or name$

Is it bug or only Demo version or just  me?
yours KK

Kitty Hello

Is a bug. Have you tried:
Code (glbasic) Select
x$ = "some"
INPUT x$,100, 150
I'll check for it...

Kepu

Hi  GernotFrisch!

Hope You can easily fix that input.

I checked  that code
  ( I don't know what was the meaning of that ,  extra definition for string?.
Anyway, I got:

***********
koe_input.exe has encountered a problem and needs to close.
 We are sorry for the inconvenience.
***********

Yours
Kepu

rocko

Wierd....It works fine for me, I just copied and pasted the first bit of code you posted. It does what it's supposed to do... Dunno

I do get this warning when compiling though:

"Input Test.gbas"(7) warning : propably unassigned variable : name$

But that's not an error, if I assign the string a name it doesn't show up.

Gernot: You got a typo up there :D (Propably = probably) in the compiler warning

Kitty Hello

This code:
Code (glbasic) Select
PRINT "Name:", 100, 100
INPUT name$, 100, 150
BLACKSCREEN
PRINT "Name: " + name$, 100, 100
SHOWSCREEN
MOUSEWAIT
works perfectly on my machine. So, can you run any other GLBasic programs? What OS do you have? What gfx-adapter? What driver + version for the gfx-adapter?

Quote from: rockoGernot: You got a typo up there :D (Propably = probably) in the compiler warning
Thank you. I'll fix it with the next update.

Kepu

I copied and paste to Glbasic  your latest  code  and got exactly same same result,  ..program closes.
Everything else is working  fine in my machine,
 I have tried almost all demos and sample pcs  which comes with Glbasic and
I have made all kind small progs of my own ... math and 3d stuff with Glbasic
I had just some problems with shadows  (I think it was only because of me).
Your sphere code needs quite large image for texture, with those texture coordinates it has  now
but  it works fine ( I made an old classic sun/planets/moons /comet visitors from outside system)
One think bothers  a little in Run menu,
 If  Glbasic doesn't  find  for example image file or if there is clear error what debugger shows , meaning that compiler fails,  it  still runs previous .exe ( if it has same name)
I know  that I  could compile first and see if it is Ok  ....and then run
but  it feels  simpler and faster just to run (compile/run)   but  it should stops with error)

I don't  think that  input command alone  needs  any special  driver.!
I think that I will download Glbasic to my Pc at my work place  tomorrow  and try  same there,  
 Are you sure that  it is not  because of my demo version, I don't want to buy full version if  I can't get input to work in it.

I have WindowsXP Pro SP2, DirectX9
Hardware:
 Pro2800A+ Athon
 mem:512Mb, Hd: 80Gig
 graphics: S3 Graphics Pro SavageDDR 32Mb
Audio AC97 2.2

Sorry,  english is not my first language.
Yours
Kepu

Kitty Hello

Hummm... if anything works, but INPUT, that's strange! I'll check for it, though.

Kepu

I tried  downloaded demo to  two different machine in my work place and tried that code.
Both machines acted similar , both  opens multicoloured (looked like videomemory has got wild ) window for input , anyway input command works and blackscreen returned window again normal.
Then I tried  several ways  input in other codes, I seems to that input works only in it's own  window,
It wipes out  all other from window and then opens it's own
I feel  sad to bother you
Yours
KK

Kitty Hello

I don't understand quite. Can you post a sample and explain in detail what you did/wanted to do?