aldweb

Close I. aldweb

Close II. PC Freeware

Close III. Palm Freeware

Close IV. Palm Shareware

Close V. iziBasic Palm

Close VI. Palm Knowledge

Close VII. Pocket Computer

Close VIII. miniPortail

Special !



Mobile version of
the aldweb Site

m.aldweb.com


Neither French, nor English?

Try one of these flags then:
[de] [es] [it] [pt]
Search




Weather / Spam / www

Lyon Weather


aldweb against spam


Newsletter
To receive news about this website, consider subscribing to our Newsletter.
Subscribe
Unsubscribe
298 Subscribers
Family's web sites

Webmaster - Infos
Friends News
Visits

   visitors

   visitors online

Poll
What do you think of the new design of the aldweb Site?
 
Great !
Beautiful
Average
So ugly...
Results
forum.gifForum - iziBasic - Topic #975

Forum - Forum
iziBasic - iziBasic


Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 257

active  Topic # 975  TEXTSELECTOR

27/10/2004 @ 21:58
by gmigueis

Anonymous



Hi! Have been away for some time...
Can someone tell me how to use the text parameter with the TEXTSELECTOR instruction? I've tried using the kind-of-"P" character with no results...

Thanks!
Write to gmigueis   Post an answer  Top

[]   


Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 497
Answer n° 1
--------
27/10/2004 @ 23:32
by aldweb

Anonymous

visitor
Hello,

I am happy to read you back

There is an example of the use of TEXTSELECTOR in the iAddress sample program.

Here is a very quick example too:

' Test.ibas
{CREATORID "Test"}

BEGIN
A$­­="Choose:"+CHR$­­(10)+"1. Hello"+CHR$­­(10)+"2. Bye"
TEXTSELECTOR #1,"Hello",50,30,30,14
REPEAT
E=WAITEVENT
IF E=1 THEN
A=MESSAGEBOX(A$­­,4)
IF A=1 THEN
UPDATETEXT #1,"Hello"
ELSE
UPDATETEXT #1,"Bye"
ENDIF
ENDIF
UNTIL E=-1
END


Cheers,


@+
aldweb
Write to aldweb   Post an answer  Top

Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 497
Answer n° 2
--------
28/10/2004 @ 01:22
by gmigueis

Anonymous

visitor
Thanks! I thought that TEXTSELECTOR was that kind of RadioSelector, but with text!
Still, it's pretty painless to simulate that (RadioText) and with the advantage of allowing multiple selections if desired! -> becomes a ToDo for iziForms: generate code for that!
Write to gmigueis   Post an answer  Top

Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 497
Answer n° 3
--------
28/10/2004 @ 20:20
by aldweb

Anonymous

visitor
And I guess that you will have to wait for version 4 of iziBasic to be able to save your source code to the memo pad or to a Doc file.

I guess that iziForms will save its data to the A$­­() array variable. Am I right?

Currently PRINT #,1,A$­­ is limited to 63 characters which is the length of a string.
But I plan to add one "mega string" of up to 4KB characters (the size of a memo) in version 4.
Then PRINT #1,A$­­$­­ (I don't know if I will name it this way) will save one record of up to 4KB characters

Cheers,

@+
aldweb
Write to aldweb   Post an answer  Top

Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 497
Answer n° 4
--------
29/10/2004 @ 16:04
by gmigueis

Anonymous

visitor
My plans are to use PP's PIAF code for two procedures only : ReadDoc and WriteDoc (well, maybe OpenDoc, WriteLineDoc, etc. not important really)! Of course I would be happier if everything could be done with iziBasic, but when version 4 is out and if iziForms already has a public version then I'll change it, of course!
I'm not planning storing strings with code in the array! In fact, I'm using databases (like ibAddress) to store info about the controls created - then, when the "generate" button is pressed it translates the database records (control type, x, y, text, etc...) into code! This way it's easier and clearer to modify controls and stuff before code generation, I think!

Now the version 4 improvements seem good!
Also, how do you create a simple "sketch" program with iziBasic? I've tried a DOEVENTS loop, but it seems to hang until the pen is not down... I'll try other ways though as I've not experimented enough anyway...

Many thanks,
Write to gmigueis   Post an answer  Top

Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 497
Answer n° 5
--------
29/10/2004 @ 21:40
by aldweb

Anonymous

visitor
Well, my friend, your idea is EXCELLENT

I did not even think about it... when I designed this CALLPP$­­() function on purpose for this kind of uses!

Your database use is also a very good one

I think that you now know how to use iziBasic better than me, this is great

Cheers

@+
aldweb
Write to aldweb   Post an answer  Top
active topic active   closed topic closed   Sticky Sticky   New New message   -   Correct Correct message   Close Close topic   Make sticky Make sticky
[]
Forum Topic  Forum 



 
^ Top ^