You are not logged in.

Search results

Search results 1-15 of 15.

Saturday, August 22nd 2009, 11:58pm

Author: Blue Blazes

Passing parameters via Call statement in VB6

Many thanks to you, OlimilO, for the deeper explanation of a number of concepts. For example, ByRef/ByVal, StringBuilder/StringBuffer. Many businesses and persons have libraries full of vintage as well as recently written VB6 programs. The hopes and wishes of these folks is to convert these programs "seamlessly" or with as few code "touches" as possible. Certainly, the learning curve associated with mastering a new language or technology (for a staff trained in VB6) is to be minimized or avoided...

Saturday, August 22nd 2009, 9:04pm

Author: Blue Blazes

Passing parameters via Call statement in VB6

Hello, please comment on this situation. Here is an example of a routine: Public Sub cmdTest_Click() Dim X As String, Y As String X="X": Y="Y" Msgbox X & Y '-----> XY Call MyRoutine(X, Y) MsgBox X & Y '-----> XY why?????????? End Sub Public Sub MyRoutine (X As String, Y As String) Y=X MsgBox X & Y '-----> XX End Sub This example works in many VB6 programs. What to do? Thank you.

Thursday, August 20th 2009, 4:56pm

Author: Blue Blazes

Simulate vbModal

I am not Java trained, but it seems there is not yet a simple implementation for: frmChild1.Show vbModal. I was thinking of a simple way to simulate vbModal, at least externally to the user person. The idea is to disable the controls on the parent form whenever a frmChildx.Show is executed. Save the controls, so when the child form shuts down it will again activate the parent controls. In the meantime, the user must attend only (in true vbmodal fashion) to the child form before doing anything fu...

Thursday, August 20th 2009, 1:48pm

Author: Blue Blazes

All forms load, but only one form.Show executes

Sorry, example is: Public Sub cmdWindow_Click() MyWindow = New frmWindow MyWindow.Show End Sub

Thursday, August 20th 2009, 1:46pm

Author: Blue Blazes

All forms load, but only one form.Show executes

Yes, A1880, I placed MyWindow = New frmWindow on the test form's Click() event as follows: Public Sub cmdAbout_Click() MyWindow = New frmWindow MyWindow.Show End Sub And this idea does load the forms "only" when clicked. Thank you! 1. In VB6, all this is possible without creating new class objects, etc. It is possible to work with original forms only. Perhaps, this isn't possible with Jabaco? I was thinking of these extra conversion steps to migrate from VB6 to Jabaco. 2. In this example, the fo...

Thursday, August 20th 2009, 1:50am

Author: Blue Blazes

All forms load, but only one form.Show executes

Thank you again for the prompt response to my problem. I have converted the class statements to use different names, as follows: Public MyTest As New frmTest Public MyAbout As New frmAbout Public MyWindow As New frmWindow Public Sub main(ByJava args() As String) Dim myArgs() As String myArgs = args MyTest.SetDefaultClose() MyTest.Show() End Sub and frmTest says: Public Sub cmdAbout_Click() MyAbout.Show End Sub Public Sub cmdWindow_Click() MyWindow.Show End Sub -----------------------------------...

Wednesday, August 19th 2009, 9:38pm

Author: Blue Blazes

All forms load, but only one form.Show executes

Greetings, My project view looks like this: .Project ....Forms ........frmAbout ........frmTest ........frmWindow ....Modules ........Test And the Test module is: Public frmTest As New frmTest Public frmAbout As New frmAbout Public frmWindow As New frmWindow Public Sub main(ByJava args() As String) Dim myArgs() As String myArgs = args frmTest.SetDefaultClose() frmTest.Show() End Sub I have written many VB6 programs, but not familiar with Public ... New syntax, or Class Modules. I saw Public ... ...

Tuesday, August 18th 2009, 6:52pm

Author: Blue Blazes

Sequential file example

Greetings, I have learned that disk file operations on Jabaco are different than VB6. So I have studied some examples on the Community. I have tried a number of different code examples. The one below is intended to be a sequential write, then read, but doesn't work as intended. What is wrong with this code? Public Sub cmdTest_Click() Dim myFile As VBFileHandler ' write myFile = Open("C:\About\Test\Test.txt",Output) Call Write(myFile, "1") Call Write(myFile, "2") Call Write(myFile, "3") Call Clos...

Tuesday, August 18th 2009, 3:13pm

Author: Blue Blazes

Followup quick question about Form

Thank you for the ideas, "A1". Yes, that worked well! It would be very useful if these great ideas, hints and differences from VB were written somewhere. Thank you again.

Tuesday, August 18th 2009, 1:43pm

Author: Blue Blazes

Followup quick question about Form

Thank you, Manuel, and I have a related followup question ... with VB6 I was able to set the form Me.Left and Me.Top in the Form Load() process (with StartupPosition = Manual). I wasn't successful doing this with Jabaco. Is something else required?

Monday, August 17th 2009, 8:00pm

Author: Blue Blazes

Quick question: Form Load()

Thank you, Manuel, and I have a related followup question ... with VB6 I was able to set the form Me.Left and Me.Top in the Form Load() process (with StartupPosition = Manual). I wasn't successful doing this with Jabaco. Is something else required?

Monday, August 17th 2009, 2:06am

Author: Blue Blazes

Quick question: Form Load()

Hello! At Form Load() time, I am able to change the properties of many controls on the form. However, I am not able to change the Form1.Caption. In fact, the form does not display, but I don't receive an error message. Also should Form Activate() automatically follow Form Load()? I tried to set Form1.Caption in there, as well, but it doesn't happen. Does anyone know what I am doing wrong? Thank you.

Saturday, August 15th 2009, 2:23am

Author: Blue

VB6 editing features missing in Jabaco: automatic case changes in variable names; automatic space insertion

Yes, automatic case standardization of variables names (as initially declared within each scope) is an excellent suggestion. Same thing for the suggestion to standardized spacing around "=" symbols regardless of how hastily the programmer coded it. This enhances program readability and organization. There may be other circumstances where automatic cleanup would be useful. If these ideas could be implemented as selectable features within the IDE, then everyone could tailor their code as they wish...

Saturday, August 15th 2009, 1:57am

Author: Blue

Question: form grid units

Was just curious why the smallest form control is 9x9 units, but then expands by 8 units thereafter in both directions? After 9x9, it expands to 17x17, then 25x25, and so on, but no longer an even multiple of 8. I would have thought multiples of 8x8 throughout would be more symetrical and easier to calculate control size and locate placement. Can this be modified or is 9x9 units fixed? Overall, I believe this product is what many of us have been waiting for. Keep up the excellent work, and stay ...

WoltLab Burning Board