--------------- FIDO MESSAGE AREA==> TOPIC: 178 VISUAL BASIC Ref: EEK00000 Date: 10/15/97 From: ROBERT O. SACHS Time: 07:31pm \/To: WILLIAM HURN (Read 4 times) Subj: Visual Basic Printing > AR> Nearly all printers interpret a control-L character as a FormFeed. > AR> Control-L is 0c (hex) or decimal 12. > WH> Thank you! That is exactly the information I needed. It worked > WH> on my tired old Star NX-10, which is making-do with the Star > WH> NX-1000 Windows 95 driver. I then "printed to file", did a simple > WH> text search for the Ctrl-L ( or ASCII 012) character and saw > WH> what pagination Bill's boys were using. BTW, they use 75 lines! > WH> I can only print 60 so no wonder I had text spill! > If you can set your printer to about 80 lines per page or more > (use legal maybe) you can use the standard VB4 setup. If not, a > little editing will solve the problem. I just save the file with > a text editor (EdWord) and type "COPY [file] LPT1" at the DOS > prompt. Anybody know if VB5 allows pagination? Why not find the control sequence that sets the printer from 6 lines per inch (66 lines per page) to 8 lines per inch (88 lines per page)? That way you don't need to repage, just send the 8LPI sequence, the file to print, and then the 6LPI sequence. Might even be a shareware/freeware program to do just that (found one a while back for Citizen, and ALPS used to ship one with their printers). Robert O. Sachs FIDOnet 1:123/315.1 Internet rosachs@vantek.net > --- > * Origin: D.M.U.G. BBS Dayton Ohio (1:110/69) --- FMail/386 1.02 * Origin: The Lucky Troll/2 BBS (901)-757-2076 (1:123/315.1) --------------- FIDO MESSAGE AREA==> TOPIC: 178 VISUAL BASIC Ref: EEK00001 Date: 10/15/97 From: LILA GODEL Time: 08:28pm \/To: MIKE MCDONALD (Read 4 times) Subj: Code snippet MM>MSGID: 1:116/133 343833c6 MM>TZUTC: -0600 MM>Hello All. MM>let me preface this message by stating that i am completely new to VB and am MM>teaching myself from my wife's college textbook. :) i am, however, proficient MM>in C/C++ and have been using those two languages for a number of years w. MM>i would appreciate it if some one would post a snippet of code that will read a MM>.INI file. i haven't made it to the chapter on file manipulation and don't want MM>to hassle with trying to link VB and C++ code. I never read one, but here is something that might help. When me and dad setup switched our BBS CD-ROM access from an external door to the built in access added with an upgrade we lost the ability to have off-line file requests automatically purged in 14 days. Each day I had to subtract 14 from the system date to decide what files to delete. So I wrote a Visual Basic 5.0 program to do this computation. This program converts the system date from its gegorian form to its julian form, subtracts 14 from that, and coverts the result from its julian form to its gegorian form for display via the msgbox function using rewritten COBOL code I did at school. (I wanted to use COBOl, but compilers that create true executables range from U.S. $495 to $1,000.) It includes a leap year test. (A leap year is year which is equally divisible by 4 and if equally divisible by 100 is also divisible by 400.) To make the program usable by other sysops of our DOS BBS package who are running Windows 95 to (I plan to write a DOS version in C once I get a compiler.) I needed the days to subtract not be hard coded. Fixing this was easy. First I keyed 14 into a file called request.cfg in the applications directory. Then I added Private Type configuration daysr As Integer End Type Dim cfg_info As configuration to by declarations section and replaced all occurrences of 14 with cfg_info.daysr. Finally I created the following sub routine and added code to my form load procedure to launch it. Sub load_cfg() config_file_name = App.Path & "\" & "request.cfg" Open config_file_name For Input Access Read As 1 cfg_info.daysr = Input(3, #1) Close #1 End Sub --- OLXWin 1.00b Features should be discovered, not documented! * Origin: Riverdale, Ga (1:133/9024) --------------- FIDO MESSAGE AREA==> TOPIC: 178 VISUAL BASIC Ref: EEK00002 Date: 10/15/97 From: LILA GODEL Time: 08:28pm \/To: ALL (Read 4 times) Subj: Total or Used Space on Dr For I program I am writing I need to be able to find the total, used, and free space for the selected drive in a drive list box. I have made use of the setup1 routine for finding the free space even added commas to it. Unfortunately I cannot get the other values. If you can give me some APIs for either one I would be great full. I only need one as used space + free space = total space and total space - free space = used space. I am using Visual Basic 5.0 Professional. --- OLXWin 1.00b I know so little, but I know it fluently... * Origin: Riverdale, Ga (1:133/9024) --------------- FIDO MESSAGE AREA==> TOPIC: 178 VISUAL BASIC Ref: EEK00003 Date: 10/14/97 From: EILEEN LOUISE Time: 08:25am \/To: BUCKY CARR (Read 4 times) Subj: Access Data Structures Hi Bucky, Quoting Bucky Carr to Jeff Hunter on Sunday October 12 1997 BC> "proprietary". Without a declaration of how an Access database is BC> constructed I can't imagine how we'd write such a utility. If you BC> know the structure that Access uses to create the DB, writing the util BC> you envision would be a relative snap, since I have all the code BC> composed to do so. no, you don't have to write the file by hand :) enumerate the tables and columns and their properties and use ddl to recreate it, just like you would if you were creating one in code to start with. --- eileen@technologist.com * Origin: We Gladly Feast On Those Who Would Subdue Us (1:326/431) --------------- FIDO MESSAGE AREA==> TOPIC: 178 VISUAL BASIC Ref: EEL00000 Date: 10/16/97 From: MARTIN ROGGON Time: 05:56pm \/To: ALL (Read 4 times) Subj: Hardware data ? Hi! May be thats it has been asked very often before but ... Is it possible to get a read/write access data into a simple VB program ? Background ? I want to create a simple HD LED program for my own. It has to do just two different things : Flash a green light when reading from my HD flash a red light when writing to HD. Thats all .... Any hints ? --==𲱰 Martin Roggon ==-- --- * Origin: McDonalds ? Nein, McMail ! (2:2444/1133) --------------- FIDO MESSAGE AREA==> TOPIC: 178 VISUAL BASIC Ref: EEM00000 Date: 10/16/97 From: BUCKY CARR Time: 07:23pm \/To: EILEEN LOUISE (Read 4 times) Subj: ACCESS DATA STRUCTURES > no, you don't have to write the file by hand :) > > enumerate the tables and columns and their properties and use ddl to > recreate it, just like you would if you were creating one in code to > start with. Did I misunderstand? I took the desire to be: Have Access DataBase. Want to "take hamburger back into cow" by reverse engineering. For that, you need all the characteristics of the DB such as table and column names, .Size aspects of text fields, names of indexes, etc. Short of using MS Access and looking at that stuff taking notes, or using the MDB2BAS program. I'm vague about ddl - would need to read up on that. --- FLAME v1.1 * Origin: Purgatoire BBS, 719-846-0140, Trinidad, CO, V.34 (1:15/7) --------------- FIDO MESSAGE AREA==> TOPIC: 178 VISUAL BASIC Ref: EEM00001 Date: 10/17/97 From: CLINT HEYER Time: 05:49pm \/To: ALL (Read 4 times) Subj: Web Server I'm interested in creating a web server. Does anyone have some information? Is there a pdomain server code available? I'll be doing it in Win16 & 32 Winsock API. Thanks alot. --- Maximus/2 3.01 * Origin: Galaxy GateWay! - Brisbane Valley, Qld, Aust. (3:640/230) --------------- FIDO MESSAGE AREA==> TOPIC: 178 VISUAL BASIC Ref: EEM00002 Date: 10/15/97 From: DARREN O'BRIEN Time: 09:45pm \/To: TYLER AVISS (Read 4 times) Subj: 32-bit modem -> Anybody know any API calls to access the modem in win95 for... -> a) Getting Data recieved -> b) Sending Data -> c) Getting ERRORS -> d) Getting Port addresses, devices, etc? -> OR any other methods for doing this... I don't have a modem OCX, so -> if anybody knows where I can get one, I would be very happy..... I don't know very much about the API yet.. but VB5 has the MSComm Control.. which is for serial communications.. It has all the above methods and events needed to do what you're asking for. --- Platinum Xpress/Win/Wildcat5! v2.0GI * Origin: WELCOM BBS (3:771/370) --------------- FIDO MESSAGE AREA==> TOPIC: 178 VISUAL BASIC Ref: EEM00003 Date: 10/15/97 From: ANDREAS WIENEKE Time: 10:06am \/To: ALL (Read 4 times) Subj: RE:Data Forms Designer Hallo All, KT> I recently installed VB5 and now the Data Forms designer cannot be KT> loaded in VB4 16 or 32. I really don't care about it in VB 4 32, now I have a very similar prob. Since I installed VB 4.0/16 and 4.0/32 I only can use the menudesigner in VB 4.0/32, if I try to use it in VB 4.0/16 the prog crashes. Any clues? /\ \ / /--\ndreas\/\/ Et is wie et is, et ktt wie et ktt un et htt no immer joodjejange! --- * Origin: what Origin? (2:2443/1121.20) --------------- FIDO MESSAGE AREA==> TOPIC: 178 VISUAL BASIC Ref: EEM00004 Date: 10/17/97 From: DAVID LILLEY Time: 08:30pm \/To: KURT TISCHER (Read 4 times) Subj: "Out of Memory" <<>>> KT> Which brings me to a question. In C, one can use pointers to KT>variables in order to change data and so on. Is it possible to do KT>this in VB, especially in the case of a shelled applet? For example, KT>if one app creates a variable MyVal% is it possible to make MyVal% KT>visible to a shelled app in order to change MyVal% if necessary? If KT>so, how? What sprung to mind was using a a file to store the data of MyVal% ie just before shelling out create/update a file using i/o filing access to stick the value in it, close the file shell out to Program B and then read in the value/s saved into program B's Myval2% do any work then before closing program B create or Update the file with the new data when you come back to the first one read in the data to variables and hay presto data interchange Failing that i'd think you'd have to look at DDE linking OR OLE. hope I've helped with some ideas Cheers, Dave. ___ CMPQwk #1.42 UNREGISTERED EVALUATION COPY --- Silver Xpress Mail System 5.4H1 * Origin: RemoteAccess (64-3-3493236) V32B V42B CHCH,New Zealand (3:770/116)