|
- Forum - iziBasic
Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 257
Sujet n° 975 |
TEXTSELECTOR |
le 27/10/2004 @ 21:58 par gmigueis
|
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! |
|
|
Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 497
Réponse n° 1 -------- le 27/10/2004 @ 23:32 par aldweb
visiteur |
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 |
|
|
Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 497
Réponse n° 2 -------- le 28/10/2004 @ 01:22 par gmigueis
visiteur |
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! |
|
|
Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 497
Réponse n° 3 -------- le 28/10/2004 @ 20:20 par aldweb
visiteur |
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 |
|
|
Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 497
Réponse n° 4 -------- le 29/10/2004 @ 16:04 par gmigueis
visiteur |
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, |
|
|
Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 497
Réponse n° 5 -------- le 29/10/2004 @ 21:40 par aldweb
visiteur |
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 |
|
|
sujet actif
sujet clos
Important!
Nouveau message -
Rectifier message
Clôturer sujet
Remonter
|
|