Click here to Skip to main content
15,893,904 members

Comments by memberxxxxxxxxxxxxxxxxx (Top 20 by date)

memberxxxxxxxxxxxxxxxxx 28-Feb-14 13:53pm View    
what i've done so far, and i think this is similar to what you are suggesting, but i'm very much a novice, is to run the code to a specific section using the run to cursor. from there i checked the inputs i have.

so for the datatable preangle, i checked the pabcbll table that i imported and in vs you can look at the datatable. for that particular table, there was only one row with a value of 4.2 for step and a value of 1.09533.....for the zval.

that table is very real and it exists...sorta, but for some reason, the values don't seem to be passed along into the zval and xstep for the calculations.
memberxxxxxxxxxxxxxxxxx 28-Feb-14 12:09pm View    
that's kinda the strange part. the table i am importing has only one cell. the step value is 4.2 and the zval is something like 1.09533 something. i know for sure there are values, they just aren't being transferred/read
memberxxxxxxxxxxxxxxxxx 13-Feb-14 13:55pm View    
the number of rows changes depending on the inputs from the user. that's why i tried to limit the function.

for this loop...
b2d = 8.6
b5d = 1
b16d = 0

i also added a new line in the code so the exception changed to:
"number too large or small for decimal.

so the first calculation should be...

0^2
_______ + 0
(8.6 + sqrt(8.6^2 - 1*0^2)

shouldn't that add up to 0?

also...thanks for the help :)
memberxxxxxxxxxxxxxxxxx 27-Jan-14 14:56pm View    
i think it's 99% of the way there. i'm expecting a value of 1.4475 but getting a value of "1" instead. any ideas why that might be?

edit: figured the last bit i had wrong. thank you very much for the help.

thank you very much for the help btw. i've edited the original post to reflect the final code.
memberxxxxxxxxxxxxxxxxx 22-Jan-14 14:25pm View    
i think that's what i'll end up having to do. thanks for the help, i really appreciate it.