| | |
Can we Programaticall Write code in VB6.0, forms/standard module/class code window
Please support our Visual Basic 4 / 5 / 6 advertiser: Programming Forums - DaniWeb Sister Site
![]() |
•
•
Join Date: Dec 2004
Posts: 7
Reputation:
Solved Threads: 0
Can we Programaticall Write code in VB6.0, forms/standard module/class code window
0
#1 Jan 7th, 2005
Hi friends,
i have 2 issues
1. how can we write code from text file to vb6.0 form/module/class code window programatically.
2. how can i replace Existing IIF in MS acces query with equalent SQLSERVER QUERY.
First 1 :
present senario:
i am preparing with one TOOL so, that we can convert
" project in access is to convert it sqlserver project"
at present
1. i am able to read entair code of form, or standard module and class code windows.
2. and i am able to find the sql queries to be converted.
3. and i have already prepared one function which can convert some ms access queries to sql server queries ( still i have to convert IIF, to its equalent query in sqlserver, yet i dont knonw).
4. now i am able to use that queries converter function.
i am able to write the converted code in TEXT file.
now MY PROBLEM IS HOW CAN I WRITE CODE FROM TEST FILE TO
VB'S form Code window / standard module code window/ class module code window.
Second 2:
i know how to use it in select clause, but i want to use it in where clause.
select case is not working bcos i want decission base on field values.
exm: Iif(colname = 'value1', colname2 = 'val1' and colname3 = 'val2',colname5='val6' and colname6 = 'val7')
like this based on colname, i need to take the condition.
can u pls give me solution or suggestion.
Regards
srikanth
i have 2 issues
1. how can we write code from text file to vb6.0 form/module/class code window programatically.
2. how can i replace Existing IIF in MS acces query with equalent SQLSERVER QUERY.
First 1 :
present senario:
i am preparing with one TOOL so, that we can convert
" project in access is to convert it sqlserver project"
at present
1. i am able to read entair code of form, or standard module and class code windows.
2. and i am able to find the sql queries to be converted.
3. and i have already prepared one function which can convert some ms access queries to sql server queries ( still i have to convert IIF, to its equalent query in sqlserver, yet i dont knonw).
4. now i am able to use that queries converter function.
i am able to write the converted code in TEXT file.
now MY PROBLEM IS HOW CAN I WRITE CODE FROM TEST FILE TO
VB'S form Code window / standard module code window/ class module code window.
Second 2:
i know how to use it in select clause, but i want to use it in where clause.
select case is not working bcos i want decission base on field values.
exm: Iif(colname = 'value1', colname2 = 'val1' and colname3 = 'val2',colname5='val6' and colname6 = 'val7')
like this based on colname, i need to take the condition.
can u pls give me solution or suggestion.
Regards
srikanth
Last edited by srikanthvja; Jan 7th, 2005 at 10:30 am. Reason: to correct issues one before sending
•
•
Join Date: Nov 2005
Posts: 1
Reputation:
Solved Threads: 0
Re: Can we Programaticall Write code in VB6.0, forms/standard module/class code window
0
#2 Nov 19th, 2005
do you have a resolution allready. Please send it on jtymo@allstate.com. Thanks
![]() |
Similar Threads
- VB Code About Closing 2 or more forms pls. (Visual Basic 4 / 5 / 6)
- Create a Module Class that takes care of database connection (MYSQL) (Visual Basic 4 / 5 / 6)
- connect datagrid to access db using ado code in vb6 (Visual Basic 4 / 5 / 6)
- Is It significant to define a member function as static in singleton class (C++)
- a homework on methods, constructors etc (Java)
- Migrating VB6 to .Net (VB.NET)
- News Story: Reuse your .net code - Part 1 (VB.NET)
- I need to write a C++ Code from the following info. HOW DO I... (C++)
Other Threads in the Visual Basic 4 / 5 / 6 Forum
- Previous Thread: Script to Control "Network Connections"
- Next Thread: Installation Problems with VB 6.0 and XP!!!
| Thread Tools | Search this Thread |
Tag cloud for Visual Basic 4 / 5 / 6
* 6 429 2007 access activex add age append application basic beginner birth bmp calculator cd cells.find click client code college column component connection connectionproblemusingvb6usingoledb copy creat ctrl+f data database datareport date delete dissertations dissertationthesis dissertationtopic edit error excel excelmacro file filename form hardware header iamthwee image inboxinvb internetfiledownload keypress label listbox listview liveperson login looping machine microsoft movingranges number objectinsert open oracle password prime program prompt range-objects readfile reading record refresh remotesqlserverdatabase report retrieve save search sendbyte sites sort sql sql2008 sqlserver subroutine table tags textbox time timer urldownloadtofile vb vb6 vb6.0 vba visual visualbasic visualbasic6 web window windows





