silvano Posted August 3, 2007 Posted August 3, 2007 can i write smarty string like this: 001 002 so, can i write space character dynamically $test = "001" $test2 = "002" $test = $test1 & dynamically five space & $test2 tks
ksmith247 Posted August 3, 2007 Posted August 3, 2007 Like this maybe $test1 = "001" $test2 = "002" $test = $test1 & " " & $test2 MsgBox(0, "", $test) Support bacteria; it's the only culture most people have.LxP's Learning to Script with AutoIt 3 - Excellent starting placeVolly's Links Page - Links to cool and useful scriptsAutoIt Wrappers - Valuater's AutoIt Wrappers post. Lots of good stuff.Support AutoIt - Make a donation here; I did.[size="2"]#include <Guinness.pint>[/size]
silvano Posted August 3, 2007 Author Posted August 3, 2007 Like this maybe $test1 = "001" $test2 = "002" $test = $test1 & " " & $test2 MsgBox(0, "", $test) this is not dynamically string $space is variable $space = 5 or $space = 10 $test = $test1 & $space & $test2
Toady Posted August 3, 2007 Posted August 3, 2007 Func _DynamicSpace($length) Local $string = "" If $length = 0 Then Return "" For $i = 1 To $length $string &= " " Next Return $string EndFunc www.itoady.com A* (A-star) Searching Algorithm - A.I. Artificial Intelligence bot path finding
silvano Posted August 3, 2007 Author Posted August 3, 2007 Func _DynamicSpace($length) Local $string = "" If $length = 0 Then Return "" For $i = 1 To $length $string &= " " Next Return $string EndFunc thank you, i have just finished the func with Chr(32), the same way like you tks, bye
Zedna Posted August 3, 2007 Posted August 3, 2007 Why reinvent wheel? #include <Misc.au3> $dynamic_space = _StringRepeat(" ", 5) Resources UDF ResourcesEx UDF AutoIt Forum Search
Toady Posted August 3, 2007 Posted August 3, 2007 Ya well, its so simple its worth not looking for a UDF.... www.itoady.com A* (A-star) Searching Algorithm - A.I. Artificial Intelligence bot path finding
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now