Re: AW: test
"Stefan Lubitz" <[email protected]> Wed, 31 Oct 2007 15:43:31 +0100
| Newsgroups | gmane.comp.windows.autoit.user |
|---|---|
| Message-ID | <7CE639B61484415BBFFAD78E7EAF4389.MAI@s15224509.onlinehome-server.info> |
by the way, you are adding the new values of $adname outside of the loop Maybe thats the problem ----- Original Message ----- From: AJ Romyn [mailto:[email protected]] To: [email protected] Sent: Mon, 29 Oct 2007 13:43:13 -0700 (PDT) Subject: Re: AW: [AutoIt] test Basically I am creating a script which will add and populate a database of test customers. basically I will use a user name first time through, then the next time through add a number to the customer name. ex: customer ex: customer1 ex: customer2 and so on . for some reason the number part will not add or inc. Stefan Lubitz <[email protected]> wrote: could you explain this a little bit more clearly.... some details would be helpfull Some Examples: For me, this is working: $var = 0 for $i = 1 to 20 $var = $var +1 MsgBox(0,"",$var) Next or dou you mean: $var = 0 $name = "name" for $i = 1 to 20 $var = $var +1 $name_new = $name & $var MsgBox(0,"",$name_new) Next regards, stefan _____ Von: [email protected] [mailto:[email protected]] Im Auftrag von AJ Romyn Gesendet: Montag, 29. Oktober 2007 19:58 An: [email protected] Betreff: Re: [AutoIt] test another issue ! not sure how to get the number to increment , it does not seem to be working. I should get Name 0 (first time through) Name 1 (second time and so on so on ) just not incre. ;add var..... $adname = 0 $adlast = 0 ;concate names $f_newname = ($first_name & " " & $adname ) $l_newlast = ($last_name &" " & $adlast) ;================================================ ;start here do if $Loop_cnt < 2 Then $first_name = $f_newname $last_name = $l_newlast $address1 = $address2 $city = $city2 $zip = $zip2 EndIf $Loop_cnt = $Loop_cnt + 1 $adname = $adname + 1 $adlast = $adlast + 1 ;========================== Jeremy Landes <jlandes@landeserve. <mailto:jlandes%40landeserve.com> com> wrote: You'd want to do this: $sFirstName = "John" $sLastName = "Smith" $sFullName = $sFirstName & " " & $sLastName Hope this helps. Sincerely yours, Jeremy Landes jlandes@landeserve. <mailto:jlandes%40landeserve.com> com On Mon, October 29, 2007 12:42 pm, Nahuel José wrote: > $last_name = $last_name & $alastname ?? > > > > > ----- Original Message ----- > From: "AJ Romyn" <theezcoder@yahoo. <mailto:theezcoder%40yahoo.com> com> > To: <AutoItList@yahoogro <mailto:AutoItList%40yahoogroups.com> ups.com> > Sent: Monday, October 29, 2007 1:39 PM > Subject: RE: [AutoIt] test > > >> ? >> is there a way to concatinate to variables together. >> >> ex: >> $first_name = $first_name >> $last_name = $last_name + $alastname >> $address1 = $address2 >> $city = $city2 >> $zip = $zip2 >> >> "HOGAN, RICHARD E." <rhogan@oswego. <mailto:rhogan%40oswego.org> org> wrote: > It's not dead yet... >> >> -----Original Message----- >> From: AutoItList@yahoogro <mailto:AutoItList%40yahoogroups.com> ups.com >> [mailto:AutoItList@yahoogro <mailto:AutoItList%40yahoogroups.com> ups.com] On Behalf Of larrydalooza >> Sent: Wednesday, October 17, 2007 2:43 PM >> To: AutoItList@yahoogro <mailto:AutoItList%40yahoogroups.com> ups.com >> Subject: [AutoIt] test >> >> >> >> test >> >> >> >> >> >> [Non-text portions of this message have been removed] >> >> >> >> >> >> __________________________________________________ >> Do You Yahoo!? >> Tired of spam? Yahoo! Mail has the best spam protection around >> http://mail. <http://mail.yahoo.com> yahoo.com >> >> [Non-text portions of this message have been removed] >> >> >> >> >> Yahoo! Groups Links >> >> >> > > __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail. <http://mail.yahoo.com> yahoo.com [Non-text portions of this message have been removed] [Non-text portions of this message have been removed] __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com [Non-text portions of this message have been removed] [Non-text portions of this message have been removed] Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/AutoItList/ <*> Your email settings: Individual Email | Traditional <*> To change settings online go to: http://groups.yahoo.com/group/AutoItList/join (Yahoo! ID required) <*> To change settings via email: mailto:[email protected] mailto:[email protected] <*> To unsubscribe from this group, send an email to: [email protected] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/