scrambled string

Discuss PocketC for Palm OS (including Desktop Edition)

Postby exit_head on Sun Jul 17, 2005 8:58 pm

in my program i have some string addition. some times the string comes out all giberish. the wierd thing is that it onlt happens sometimes. heres the code, hope you guys can help.

<code>
/$files
int b,dbo;
string namo,ss7,ss8,ss9,ss10,ss11,type;
enum(string type){
namo=dbenum(0,type,"");
b=b+1;
}
files(){
b=1;
namo=dbenum(1,"appl","");
do(enum("appl"));
while(namo!=0);
ss7=b+" applications";
b=1;
namo=dbenum(1,"PCvm","");
do(enum("PCvm"));
while(namo!=0);
ss8=b+" PocketC Applets";
b=1;
namo=dbenum(1,"","");
do(enum(""));
while(namo!=0);
ss9=b+" total files";
dbo=resopen("SoundLib");
if(dbo!=0)ss10="Soundlib is present";
if(dbo=0)ss10="Soundlib is not present";
resclose(dbo);
dbo=resopen("PToolboxLib");
if(dbo!=0)ss11="PToolbox is present";
if(dbo=0)ss11="PToolbox is not present";
resclose(dbo);
alertc("Files","You have\n"+ss7+ "\n" + ss8 + "\n" + ss9+ "\n" +ss10 + "\n" + ss11+ "\n", "Back",0);
}
</code>

HELP!!!! :)

Nate
exit_head
 
Posts: 64
Joined: Tue May 04, 2004 3:50 am
Location: USA

Postby Vigon on Sun Jul 17, 2005 9:11 pm

See Topic:"Problems using alertc()"...
Dewey gave workaround until a fix is released...

Vicente
Vigon
 
Posts: 43
Joined: Wed Apr 17, 2002 2:26 pm
Location: Venezuela

Postby exit_head on Sun Jul 17, 2005 10:20 pm

thank you Vicente, i didnt even look :D
exit_head
 
Posts: 64
Joined: Tue May 04, 2004 3:50 am
Location: USA


Return to PocketC for Palm OS

Who is online

Users browsing this forum: No registered users and 3 guests

cron