![]() |
![]() |
We are currently migrating this forum over to our HelpSystems domain. Please post all new threads in our new HelpSystems Community Portal. |
![]() |
|
![]() |
AutoMate Discussion | ![]() |
help :
faq :
home
|
||
Latest News:
|
latest topics : statistics |
Topic Title: Reading parts of a Text File Topic Summary: Decimal throws off result Created On: 10/31/2016 12:10 AM Status: Read Only |
Linear : Threading : Single : Branch |
![]() |
![]()
|
![]() Answer: That's it! Thank you Gijsberth! And thank you Leonard! | ||||||||||
![]() |
||||||||||
I have a string that captures parts of a text file:
%mid(split(InsForm,vbCrLf)(row-1),column,width)% It captures data exactly form the row, column and width specified EXCEPT if it is a dollar value with a decimal point. Example: 500.00 is captured as 500 What have I done wrong? I know the region of capture is correct because if I replace the decimal point with an x it works. 500x00 is captured as 500x00 Thanks for your help. James
|
||||||||||
|
||||||||||
![]() |
||||||||||
I can grab the dollars and cents separately. The problem is I can not join the 2 variables. They are part of a loop, where "i" is the loop count.
Fee%i% = Dollar%i%.Cents%i% I have tried multiple combinations with parentheses. %Dollar(%i%).%Cents(%i%)% (%Dollar%i%%).(%Cents%i%%) Any idea on how to join 2 variables that are both part of a loop count? Thanks for your help! James
Task Steps: (Right click, Select All, Copy to copy to the clipboard. Steps can then be pasted into the AutoMate Task Builder) |
||||||||||
|
||||||||||
![]() |
||||||||||
James,
I'm not sure how you are incorporateing the %i% into the dollar and cent values. Please review my code below and let me know if this helps.
Task Steps: (Right click, Select All, Copy to copy to the clipboard. Steps can then be pasted into the AutoMate Task Builder) ------------------------- ![]() Leonard Amabile | Director, Cross Platform Support AutoMate | InterMapper | Skybot | Divisions of HelpSystems T: +1.213.738.1700 | F: +1.213.738.7665 |
||||||||||
|
||||||||||
![]() |
||||||||||
Thank you Leonard. Your code helped. I don't think it is possible to combine 2 variables with an "i" increment number in a loop. After the variables are defined, I realized the variables are combining, but my message box did not display the decimal values if they were zero. So...
500.00 is being displayed as 500 550.01 is being displayed as 500.01 So, it appears they are combining, but the zero values are not showing. The problem I am having is when I try to add two variables. I can add 2 + 2, and the variable is set to 4. Set %TFee% 2 + 2 and TFee shows 4. If I set %TFee% to %Doller1%.%Cent1% + %Doller2%.%Cent2% the TFee showes 500.01 + 500 It does not actually add them up. What am I doing wrong? Thanks for your help, James
|
||||||||||
|
||||||||||
![]() |
||||||||||
James,
I think that your problem is that the variable is set to a 'number' and thus are .00 not shown. You could try to set the variable to 'text' instead of 'number'.
Task Steps: (Right click, Select All, Copy to copy to the clipboard. Steps can then be pasted into the AutoMate Task Builder) ------------------------- ![]() |
||||||||||
|
||||||||||
![]() |
||||||||||
That's it! Thank you Gijsberth! And thank you Leonard!
|
||||||||||
|
AutoMate Discussion
» AUTOMATE » AutoMate 9
»
Reading parts of a Text File
|
![]() |
FuseTalk Enterprise Edition v4.0 - © 1999-2021 FuseTalk Inc. All rights reserved.