Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Code condensing
#3
Not Solved
I've looked at Dictionary objects before, but I'm not really clear on where to put the code (some have placed the code in a function library), I'm also not too clear on the benefits of using it (over what is listed here), or how I would compare objects using it.

For simple item creation, i could write "x = [whatever]" or for a dictionary I'd have to write:
Dim x
Set x = [whatever]
and then some items here which I don't know their use.

So the dictionary term becomes quite longer than the simple "x = y"


As for trim and ucase, would this be the correct method?

Code:
xprod = Trim(UCase(Browser("...").Page("...").WebEdit("txtName").GetROProperty("value")))
zprod = Trim(UCase(Browser("...").Page("...").WebEdit("txtBr").GetROProperty("value")))
xprodTbl = Trim(Ucase(DataTable.Value ("A",dtLocalSheet)))
zprodTbl = Trim(Ucase(DataTable.Value ("B",dtLocalSheet)))

That doesn't seem quite right.
Reply


Messages In This Thread
Code condensing - by joncfrazier - 05-15-2012, 10:07 PM
RE: Code condensing - by Shridevi.Salagare - 05-16-2012, 12:26 PM
RE: Code condensing - by joncfrazier - 05-16-2012, 07:58 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)