My Assistant
![]() ![]() |
|
|
Apr 7 2012, 03:52 PM
Post
#1
|
|
|
Utterly Eccentric and Moderator Posts: 3,667 From: Bristol / Ipswich / Spain |
Is it er....soft coded...doesn't quite ring true!
Thanks Z |
|
|
|
Apr 7 2012, 03:55 PM
Post
#2
|
|
|
UtterAccess Ruler Posts: 1,294 From: Kampala,Uganda The Pearl of Africa |
|
|
|
|
Apr 7 2012, 04:12 PM
Post
#3
|
|
|
Utterly Eccentric and Moderator Posts: 3,667 From: Bristol / Ipswich / Spain |
could be.....any more calls from the floor?
Thanks K! |
|
|
|
Apr 7 2012, 08:02 PM
Post
#4
|
|
|
UtterAccess Ruler Posts: 1,831 From: SoCal, USA |
well, i guess it may depend on the context it's used in. in my experience with the term hardcoded, it means "real" or "hard" values written into code, as opposed to values acquired at runtime. for instance:
MyVariable = "dog" is hardcoded, while MyVariable = Me!txtAnimal is acquired at runtime, wholly dependent on the value in the referenced txtAnimal control. as you can see, hard-coding values makes your code less flexible, requiring more maintenance - every time the business process changes, the code must be rewritten to support the change. there are times when hard-coded values are appropriate - when you don't want the values to be open to easy change. usually those values are written to constants, at the top of a module where they're easier to find when you're looking at the code, as well as being available in the scope of the module. hth tina |
|
|
|
Apr 7 2012, 08:55 PM
Post
#5
|
|
|
Utterly Eccentric and Moderator Posts: 3,667 From: Bristol / Ipswich / Spain |
Thanks for your reply Tina! I have the concepts as you suggest, but I need a term to denote 'not - Hard Coded' but as I said, 'Soft coded' doesnt quite make it somehow.
The context is these lines of comments from a PHP page. echo "<br />" ; // or php can add dynamically coded line breaks or other HTML tags by 'echoing' text. HERE I WANT TO SAY SOFT CODED OR SOMETHING echo "<br />PHP line break" ; // echo "<br />" ; When I put this code in UA code tags the page 'broke'- that post is in th UA bin now. Thanks Tina! |
|
|
|
Apr 7 2012, 09:36 PM
Post
#6
|
|
|
Access Wiki and Forums Moderator Posts: 48,110 From: SoCal, USA |
Hi,
echo "<br />" ; // or php can add dynamically coded line breaks or other HTML tags by 'echoing' text. HERE I WANT TO SAY SOFT CODED OR SOMETHING I think a combination of both ideas might sound better, such as: "or php can dynamically add line breaks at runtime... Just my 2 cents... (IMG:style_emoticons/default/2cents.gif) |
|
|
|
Apr 7 2012, 10:35 PM
Post
#7
|
|
|
UtterAccess Ruler Posts: 1,831 From: SoCal, USA |
oops, i missed the thrust of your inquiry, and gave an answer more geared to a VBA newbie - sorry, hon! i think both Kamulegeya and DbGuy have made good suggestions for you. tina :)
|
|
|
|
Apr 8 2012, 05:38 AM
Post
#8
|
|
|
Utterly Eccentric and Moderator Posts: 3,667 From: Bristol / Ipswich / Spain |
@db thanks, thats getting closer!
@tina..after 14 years of this stuff, everyday still makes me feel like a noob! Thanks muchly both! Z |
|
|
|
Apr 10 2012, 05:10 PM
Post
#9
|
|
|
UtterAccess VIP Posts: 1,914 From: UK |
hardcoded
parameter-driven (or dynamic, as suggested above) |
|
|
|
![]() ![]() |
|
Go to Top · Lo-Fi Version | Time is now: 24th May 2013 - 11:01 PM |