--------------- FIDO MESSAGE AREA==> TOPIC: 178 VISUAL BASIC Ref: EEX00005 Date: 10/25/97 From: BUCKY CARR Time: 11:16am \/To: KENNETH DANNER (Read 4 times) Subj: visual basic KD> Boy do I feel HAD! I thought that was a good price for PRO. Although KD> I did get mine as a government employee, maybe the academic is KD> different. KD> [ Please make me feel better, and tell me that it is so! =;) ] You got a good price for it. The price she is quoting is subsidized further by the school system. Regular retail is over $450. --- PPoint 2.00 * Origin: Vanishing Point 7198460140 Trinidad CO (1:15/7.1) --------------- FIDO MESSAGE AREA==> TOPIC: 178 VISUAL BASIC Ref: EEX00006 Date: 10/26/97 From: BUCKY CARR Time: 09:33pm \/To: KEN BURGESS (Read 4 times) Subj: printing KB> I have a small problem I can't quite find the answer to anywhere so KB> I'm going to try this area. I have a program that prints out the KB> contents of a couple of text boxes. I have set the printer.fontsize to KB> 24 and this works great the first time the program runs. However, if I KB> try to print out the same KB> information again.... There is a Knowledge Base article that discusses this and the work around for it (bug in VB). I can't seem to find it presently, but it is something like this: Printer.Print Printer.Font ..... Printer.Print Printer.Font ..... ie, defining it twice. Can't remember exactly the syntax. Anyone else? --- PPoint 2.00 * Origin: Vanishing Point 7198460140 Trinidad CO (1:15/7.1) --------------- FIDO MESSAGE AREA==> TOPIC: 178 VISUAL BASIC Ref: EEX00007 Date: 10/26/97 From: BUCKY CARR Time: 09:37pm \/To: MARK BAPPE (Read 4 times) Subj: Print questions -> Dim iA, iB, iC, iD, iE, iG, iH As Integer MB> Fogive me for intruding here, but doesn't the line above make MB> everything but the iH a variant? I'm glad you butted in. I've been presuming that they would all be Integer types. Are you *sure* that everything before the iH would be ambiguously defined and therefore default to Variant? I don't *know* that answer for sure. --- PPoint 2.00 * Origin: Vanishing Point 7198460140 Trinidad CO (1:15/7.1) --------------- FIDO MESSAGE AREA==> TOPIC: 178 VISUAL BASIC Ref: EEX00008 Date: 10/26/97 From: BUCKY CARR Time: 09:39pm \/To: EILEEN LOUISE (Read 4 times) Subj: Access Data Structures On (24 Oct 97) Eileen Louise wrote to Jeff Hunter... JH> The only problem is that there are hundreds of attributes. To get them JH> all is no minor task, which is why I was asking if anyone knew of a JH> program that does this. EL> don't retrieve them the way itsounds like you are thinking. enumerate EL> them -- it should be a simple code loop. So the database is viewed as an Object which has attributes and the Database Object will merely cough up that info when queried properly even if nothing is really "known" about the Database Object, such as Table names, field names, sizes, types, etc? --- PPoint 2.00 * Origin: Vanishing Point 7198460140 Trinidad CO (1:15/7.1) --------------- FIDO MESSAGE AREA==> TOPIC: 178 VISUAL BASIC Ref: EEX00009 Date: 10/26/97 From: BUCKY CARR Time: 09:45pm \/To: EILEEN LOUISE (Read 4 times) Subj: Print questions ->> Dim iA, iB, iC, iD, iE, iG, iH As Integer MB> Fogive me for intruding here, but doesn't the line above make MB> everything but the iH a variant? EL> bucky is going to to tell you he issued DefInt I in the declarations. EL> why he added as integer at the end i don't know. EL> without the defint i, yes, only iH would be int the rest would be EL> variant. Gulp. Well teacher, I must confess I didn't use DefInt (or DefAnything) up front. Guess I need to go and do a bunch of DefInt, DefStr, .... --- PPoint 2.00 * Origin: Vanishing Point 7198460140 Trinidad CO (1:15/7.1) --------------- FIDO MESSAGE AREA==> TOPIC: 178 VISUAL BASIC Ref: EEX00010 Date: 10/26/97 From: BUCKY CARR Time: 09:47pm \/To: SAM MCCOMB (Read 4 times) Subj: VB 2.0 SM> I need code to help me make command button click SM> bring up another form. Private Sub CmdButton_Click() frmThatYouWant.Show End Sub Over on that frmThatYouWant when you exit it, use .Hide if you don't want to see it anymore and it will go back to the previous form. --- PPoint 2.00 * Origin: Vanishing Point 7198460140 Trinidad CO (1:15/7.1) --------------- FIDO MESSAGE AREA==> TOPIC: 178 VISUAL BASIC Ref: EEX00011 Date: 10/27/97 From: KURT TISCHER Time: 06:20am \/To: SAM MCCOMB (Read 4 times) Subj: VB 2.0 SM>I am very new to vb programming! SM>I need code to help me make command button click SM>bring up another form. Sub Command1_Click() Load Form2 End Sub kt * SLMR 2.1a * Our thoughts make up the universe. They are all important --- ViaMAIL!/SL v1.30 * Origin: ViaMAIL! - If you run Searchlight, you gotta have it! (1:157/438) --------------- FIDO MESSAGE AREA==> TOPIC: 178 VISUAL BASIC Ref: EEX00012 Date: 10/27/97 From: RICK PEDLEY Time: 11:17am \/To: EILEEN LOUISE (Read 4 times) Subj: Print questions -=> Quoting Eileen Louise to Rick Pedley <=- ->> Dim iA, iB, iC, iD, iE, iG, iH As Integer RP> Nope, that's a pretty standard way of declaring a bunch of RP> variables RP> to be one type. Sure saves a lot of typing (no pun intended) :) EL> no! without a defint i in the declaration section, all except iH are EL> variant. Mark is absolutely right. Indeed. I don't use that method very often myself, preferring to add the symbol after the variable, e.g. H%. But this is a great way to get more mail, making an obvious error in a public forum :) --- Blue Wave/DOS v2.20 * Origin: ...the vented spleen - kingston on (613) 544-9332 (1:249/139) --------------- FIDO MESSAGE AREA==> TOPIC: 178 VISUAL BASIC Ref: EEX00013 Date: 10/27/97 From: KEN BURGESS Time: 07:14am \/To: EILEEN LOUISE (Read 4 times) Subj: printing *** Quoting Eileen Louise to Ken Burgess dated 10-25-97 *** > Hi Ken, > > Quoting Ken Burgess to All on Wednesday October 22 1997 > KB> I have a small problem I can't quite find the answer to anywhere so > KB> I'm going to try this area. I have a program that prints out the > It should be easy enough to answer, but can we see the code? or at > least say what VB you are using? printing changed a lot between 4 and > --- eileen@technologist.com > * Origin: We Gladly Feast On Those Who Would Subdue Us (1:326/431) Thanks Eileen The version of VB I'm using is version 4.0 professional edition. The code is extremly simple...something like the following printer.fontsize = 24 printer.print "My string" Now the first time the program runs, it is fine but for it to work again, I have to shut down VB and restart it. This is really strange and very bothersome to me but if I put a check box on the form and set it's value to true and invisible at run time with the following code everything works great. If MyCheckBox.value = true then printer.fontsize = 24 printer.print "My string end if Thank you so much for the help, it is much appreciated Ken ... We'll all be glad when I figure this stuff out, eh? --- T.A.G. 2.7c Standard * Origin: The Abacus * v.32/v.42 * (517)645-7343 * Node 1 (1:159/100) --------------- FIDO MESSAGE AREA==> TOPIC: 178 VISUAL BASIC Ref: EEX00014 Date: 10/27/97 From: KEN BURGESS Time: 07:16am \/To: MIKE SCIROCCO (Read 4 times) Subj: printing *** Quoting Mike Scirocco to Ken Burgess dated 10-25-97 *** > I've been doing a lot of experimenting with printer control lately. I had > a similar problem as the one you described. I set the font and font > size, then set the printer to landscape (when it had been portrait) and > was surprised to see that the printing was done with the system default > fonts (probably loaded from a .ini file). I found that the font and > font size had to be set AFTER the orientation was set so they wouldn't > go back to the default. You might consider some debug.print > printer.font statements placed immediately before and after each > printer control statement to see where it is being reset. > > --- Squish/386 v1.11 > * Origin: That's The Spirit BBS - (408) 336-5532 (1:216/511) Thank you Mike, for the input. I will give your syuggestion a try a see what happens. --- T.A.G. 2.7c Standard * Origin: The Abacus * v.32/v.42 * (517)645-7343 * Node 1 (1:159/100)