Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - SnowLeopard

Pages: [1]
1
Axe / Re: Help With Pointers and Strings
« on: November 15, 2010, 07:25:50 pm »
Ok thanks guys, i got it working. For some reason I thought that the ending quotation mark counted as an extra byte.
Code: [Select]
.CONV
For(B,0,26)
B*7→A
[]→Str1
".01    "
"1      "
"5      "
"10     "
"25     "
"50     "
"75     "
"100    "
"200    "
"300    "
"400    "
"500    "
"750    "
"1000   "
"5000   "
"10000  "
"25000  "
"50000  "
"75000  "
"100000 "
"200000 "
"300000 "
"400000 "
"500000 "
"750000 "
"1000000"
[000000000000000000]→Str2
ClrHome
Copy(A+Str1,Str2,7)
Output(0,0,Str2)
Pause 500
End

2
Axe / Help With Pointers and Strings
« on: November 15, 2010, 06:49:47 pm »
Hi I was wondering if someone could help me out with this. I am having problems working with strings and Copy to display a certain string depending on what the value is. What am i doing wrong? Sorry if this is kind of n00bish but i just can't figure it out.
Code: [Select]
.CONV
8→A
".01    "→Str1
"1      "
"5      "
"10     "
"25     "
"50     "
"75     "
"100    "
"200    "
"300    "
"400    "
"500    "
"750    "
"1000   "
"5000   "
"10000  "
"25000  "
"50000  "
"75000  "
"100000 "
"200000 "
"300000 "
"400000 "
"500000 "
"750000 "
"1000000"
[0000000000000000]→Str2
Copy(Str1+A,Str2,8)
Output(0,0,Str2)
Pause 5000

Pages: [1]