Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
can i join 5 strings
#1
Code:
Copy      Help
Acc a=acc("1*" "LISTITEM" win("Yahoo! Messenger" "YahooBuddyMain") "id=101" "" 0x1031)
str w1=a.Name
Acc b=acc("2*" "LISTITEM" win("Yahoo! Messenger" "YahooBuddyMain") "id=101" "" 0x1031)
str w2=b.Name
Acc c=acc("3*" "LISTITEM" win("Yahoo! Messenger" "YahooBuddyMain") "id=101" "" 0x1031)
str w3=c.Name
Acc d=acc("4*" "LISTITEM" win("Yahoo! Messenger" "YahooBuddyMain") "id=101" "" 0x1031)
str w4=d.Name
Acc e=acc("5*" "LISTITEM" win("Yahoo! Messenger" "YahooBuddyMain") "id=101" "" 0x1031)
str w5=e.Name
str w6=(w1+w2+w3+w4+w5)
out w6
im trying to join all 5 with a space between each if possible, or without a space is fine, or even a newline would do.
#2
Code:
Copy      Help
Acc a=acc("1*" "LISTITEM" win("Yahoo! Messenger" "YahooBuddyMain") "id=101" "" 0x1031)
str w1=a.Name
Acc b=acc("2*" "LISTITEM" win("Yahoo! Messenger" "YahooBuddyMain") "id=101" "" 0x1031)
str w2=b.Name
Acc c=acc("3*" "LISTITEM" win("Yahoo! Messenger" "YahooBuddyMain") "id=101" "" 0x1031)
str w3=c.Name
Acc d=acc("4*" "LISTITEM" win("Yahoo! Messenger" "YahooBuddyMain") "id=101" "" 0x1031)
str w4=d.Name
Acc e=acc("5*" "LISTITEM" win("Yahoo! Messenger" "YahooBuddyMain") "id=101" "" 0x1031)
str w5=e.Name
str w6=(w1)
w6+"  "
w6+w2
w6+"  "
w6+w3
w6+"  "
w6+w4
w6+"  "
w6+w5
out w6
sorry got it ty
#3
it might be easier to use the 'from' string function as well.

str a
a.from(str1 " " str2 " " str3)


etc.
An old blog on QM coding and automation.

The Macro Hook


Forum Jump:


Users browsing this thread: 2 Guest(s)