Just starting out? Need help? Post your questions and find answers here.
Stephen
User
Posts: 21 Joined: Sat Oct 18, 2003 10:36 pm
Post
by Stephen » Thu Oct 23, 2003 8:27 am
i need alittle information on how to sring a port, then give it a +1 with results,
start port =1 so +1 =2 i need to get the port number 2 in a text string
blueznl
PureBasic Expert
Posts: 6166 Joined: Sat May 17, 2003 11:31 am
Contact:
Post
by blueznl » Thu Oct 23, 2003 9:11 am
your question is not entirely understandable :-/
( PB6.00 LTS Win11 x64 Asrock AB350 Pro4 Ryzen 5 3600 32GB GTX1060 6GB)
( The path to enlightenment and the PureBasic Survival Guide
right here ... )
muab256
User
Posts: 43 Joined: Mon Apr 28, 2003 4:57 pm
Post
by muab256 » Thu Oct 23, 2003 12:43 pm
not quite sure what u mean.. perhaps u mean this?:
port1$="1"
port2$=str(val(port1$)+1)
umm.. yes
muab
Stephen
User
Posts: 21 Joined: Sat Oct 18, 2003 10:36 pm
Post
by Stephen » Thu Oct 23, 2003 3:43 pm
i did'nt know what i was talking about my self..
but you got it right
i needed to make a port string then add 1 to it and see the result as 2