The Mother Board

Motherboards.org forums. Free tech support, motherboard ID, and more.
It is currently Sun Nov 18, 2018 12:35 am

All times are UTC - 8 hours




Post new topic Reply to topic  [ 6 posts ] 
Author Message
PostPosted: Tue Nov 22, 2005 8:17 am 
1. With help of the below code excerpt explain what self re-writing code is?
2. Why can this be considered as a bad programming method?


Dim COLUMN_NAME as string
Dim inputValue as variant
R16;COLUMN_NAME is assigned different values (inputValue) and the below segment is iterated.
R30;

Dim libFileNo as integer

libFileNo = FreeFile

Open SQAGetDir(SQA_Dir_Scripts) & "library.rec" For Output As #libFileNo
call PCUtil_writeToTestLogger( "LOW", "library.rec file opened", C_DP_TAG )

Print #libFileNo, str( "global " & COLUMN_NAME & " as variant" ) Print #libFileNo, Print #libFileNo, str( "sub main" )
'$CStrings
Print #libFileNo, str( COLUMN_NAME & "=\"" & inputValue & "\"" )
Print #libFileNo, str( "SQALogMessage SQANone, \"" & COLUMN_NAME & "=" & inputValue & "\", \"COLUMN_NAME\" " )
'$NoCStrings
Print #libFileNo, str( "end sub" )
Close #libFileNo

callscript "library"

===============================================

I have no clue so I thought Id ask :)


Top
  
Reply with quote  
 Post subject:
PostPosted: Wed Nov 23, 2005 9:54 pm 
Offline
Lead Mobo-fu Master
Lead Mobo-fu Master

Joined: Sun Dec 16, 2001 1:01 am
Posts: 14303
Location: Maine
8O 8O

What coding language is that??? Nothing like I have ever seen before... 8O 8O

_________________
Compaq-Fu Master
Ctechinfo funding drive information


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Thu Nov 24, 2005 1:11 am 
Toby B. wrote:
8O 8O

What coding language is that??? Nothing like I have ever seen before... 8O 8O


:mb_dontknow:: Shes in college and just asked if I knew any resources for help and I could only think of this website :mb_dontknow::

Other than that I know nothing :oops: But I could try asking :)


Top
  
Reply with quote  
 Post subject:
PostPosted: Thu Nov 24, 2005 4:04 am 
Offline
Black Belt 5th Degree
Black Belt 5th Degree

Joined: Fri Apr 11, 2003 5:59 pm
Posts: 5791
Location: Leeds, UK
http://www.processbuilder.com/swConstru ... bjects.htm

http://siebel.ittoolbox.com/groups/tech ... c-l/123660

Tried googling the first line in inverted commas.

_________________
Image

Let there be respect for the earth,
Peace for its people,
Love in our lives,
Delight in the good,
Forgiveness for past wrongs,
And from now on a new start.


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Sun Nov 27, 2005 1:48 pm 
Offline
Mobo-fu Master
Mobo-fu Master

Joined: Sun May 06, 2001 12:01 am
Posts: 37464
Location: Netherlands
Uggggh. Ugly written VB.

_________________
We hate rut, but we fear change.
********************************
System error, strike any user to continue...


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Mon Nov 28, 2005 11:18 am 
Offline
Green Belt
Green Belt

Joined: Thu Jun 27, 2002 8:11 pm
Posts: 222
This is a good VB site

http://www.visualbasicforum.com/


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC - 8 hours


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group