Gamestudio Links
Zorro Links
Newest Posts
Help with plotting multiple ZigZag
by degenerate_762. 04/30/24 23:23
M1 Oversampling
by 11honza11. 04/30/24 08:16
Trading Journey
by howardR. 04/28/24 09:55
Zorro Trader GPT
by TipmyPip. 04/27/24 13:50
Data from CSV not parsed correctly
by jcl. 04/26/24 11:18
Why Zorro supports up to 72 cores?
by jcl. 04/26/24 11:09
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
4 registered members (AndrewAMD, 7th_zorro, VoroneTZ, Quad), 901 guests, and 0 spiders.
Key: Admin, Global Mod, Mod
Newest Members
firatv, wandaluciaia, Mega_Rod, EternallyCurious, howardR
19050 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
TEXT.pstring vs. inkey #189781
03/21/08 13:20
03/21/08 13:20
Joined: Apr 2005
Posts: 4,506
Germany
F
fogman Offline OP
Expert
fogman  Offline OP
Expert
F

Joined: Apr 2005
Posts: 4,506
Germany
I´ve this snippet of code:

Code:

action bla()
{
TEXT* txtMyText;
txtMyText = txt_create(3,13);

wait(1);
set(txtMyText, VISIBLE);
inkey((txtMyText.pstring)[0]);
}



And all I get is an "acknex.exe has encountered a problem and needs to close".
Any ideas what´s wrong here?


no science involved
Re: TEXT.pstring vs. inkey [Re: fogman] #189782
03/21/08 13:40
03/21/08 13:40
Joined: Oct 2003
Posts: 702
Z
zazang Offline
User
zazang  Offline
User
Z

Joined: Oct 2003
Posts: 702
Logically it looks ok,but I think I had encountered a similar problem wherein I couldn't use a text pstring like a normal string.


I like good 'views' because they have no 'strings' attached..
Re: TEXT.pstring vs. inkey [Re: zazang] #189783
03/21/08 14:04
03/21/08 14:04
Joined: Oct 2002
Posts: 361
Germany Cologne
hack-panther Offline
Senior Member
hack-panther  Offline
Senior Member

Joined: Oct 2002
Posts: 361
Germany Cologne
Der String muss erstmal gefüllt werden...

Code:
str_cpy((txtMyText.pstring)[0], "#100");



Dann sollte es gehen....

Re: TEXT.pstring vs. inkey [Re: hack-panther] #189784
03/21/08 14:33
03/21/08 14:33
Joined: Apr 2005
Posts: 4,506
Germany
F
fogman Offline OP
Expert
fogman  Offline OP
Expert
F

Joined: Apr 2005
Posts: 4,506
Germany
Vielen Dank. Für´s nächste mal weiss ich bescheid.


no science involved

Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1