

InterviewSolution
This section includes InterviewSolutions, each offering curated multiple-choice questions to sharpen your knowledge and support exam preparation. Choose a topic below to get started.
751. |
Solve : Which language? |
Answer» My friend and I have started a little software company. I am in charge of programming, and I was wondering: I wanted to start with something simple, like a word processor. What programming LANGUAGE would be the best for this? And what language would be the easiest? Thanks. |
|
752. |
Solve : I'm trying to learn how to program can someone advise me?? |
Answer» I've already programmed my calculator I know it's not much its a ti(Texas instruments)84 |
|
753. |
Solve : AI???? |
Answer» I haven't seen that program in a long time. If his / her program is open-source, you can look at TI, but if it's proprietary, you have to be extremely careful, as I wrote before... Theres a difference now between modify an USING some of his code. reverse engineering.No. Not when it is closed source. But good luck with that...I can't cite you a specific example, Squall, but I know individuals have gotten in trouble, or at least wound up in court, because they reverse engineered software drivers for particular pieces of equipment so they could be used in the Linux world, and even though their intentions were good, they got in trouble, because the ORIGINAL writers of the proprietary code were able to show too MANY similarities between their code and what was written for Linux.Thanks to those that helped, even if you dont think it was much. I was thinking about putting him on a 2k machine w/o an internet connection. Also, I found one better then him with no malware! |
|
754. |
Solve : serial problem? |
Answer» I got a application that control my pc to test unit through serial com port 1. |
|
755. |
Solve : i new at Html a little help? |
Answer» i was working on a WEB page using HTML using notepad. Well i WENT to start a new one now it won't let me save it a HTML document?? What ERROR message are you getting? [/url] HTTP://entrepreneurs.about.com/od/famousentrepreneurs/p/benandjerrys.htm ">Click Here To Read More About Them[/url] |
|
756. |
Solve : Opening a form in an Access Database? |
Answer» I'm trying to have a different form open up BASED on a selection made in a field in a currently open form. |
|
757. |
Solve : c# datagridview? |
Answer» OK. So i have a DataGridView with the "example1" "example2" "example3" column headers. I have searched for an answer through google but havent found anything to help me add information to the DataGridView. If someone can help me insert information into the first row of the DataGridView based on the headers, I can figure out how to insert based on array of directory files. Any Ideas? thanks.I found this on another forum but it may apply in your case. Quote I have searched for an answer through google but havent found anything The Help feature that came with your product is an excellent PRIMARY source of information. im afraid that didnt help too MUCH. Any other ideas.ok. I found out on my own how to do this. May not be the BEST way but, all i had to do was put my SEARCH directory code right up under InitializeComponent(); and in the foreach statement put Info.DataGirdView.Rows.Add(dir) |
|
758. |
Solve : Can anyone help me with a VB6 prolem please?? |
Answer» H I have been trying to write code that will let me Save and Retrieve a list of contacts in a Visual Basic 6 Program I am WRITING for soon time now but without success - could anyone out there please help me? - my program uses Listboxs to hold the Contacts details i.e. Fore Names, Sir Names etc, the thing is I can not find a way to Save this data to a FILE on my hard drive then at the CLICK of a button in my vb6 program, retrieve it and display it in it's listboxs, please help. |
|
759. |
Solve : Date Calculations in Access? |
Answer» How do I adapt the FOLLOWING so that the "new date" ignores Saturday and/ or Sunday? For example: the user SELECTS April 7 from a calendar control. He/she wants the new date to be 5 business days from the date selected. The new date should be April 14 because 5 business days from April 7 should not consider Saturday and Sunday as business days. |
|
760. |
Solve : lost passwords? |
Answer» Can anyone help me? I have bought a new desktop at a auction and it is password protected. |
|
761. |
Solve : C++ Tutorials? |
Answer» does anyone have any GOOD C++ tutorial LINKS? i am trying to LEARN it, so thank youHere |
|
762. |
Solve : c# if radio button select then? |
Answer» I have a radio button that is selected with |
|
763. |
Solve : vb.net treeview help? |
Answer» hi all, Also, I have to select the treeview before it displays any of my infomation. what can i replace the tv1_GotFocus with so it displays as soon as the app is run. Any chance you can put your logic in the Form_Load event? Both the TreeView and the Form have scores of events to choose from. |
|
764. |
Solve : Perl? |
Answer» I know that Java is BASED on this principle: I think that Perl is highly cross-platform though, because you can use GUI interfaces that are made in Windows, exactly the same on a Unix machine...what one needs is the "interpreter". You can write perl scripts in windows, and bring it to run in *nix and run it with little/minimal changes. Others like Python,Java,Ruby,Php etc are all cross platform, all thanks to the interpreter. |
|
765. |
Solve : COM objects? |
Answer» Hii |
|
766. |
Solve : Maximise Window.? |
Answer» I am writing a C program and I want that when I run the code, the window maximises itself automatically. Is there any function or command which I can use? As, I said C and C++ programming language. While writing a program The question is ambiguous. What window? The program window or the command window. Either way the question has been asked and answered. If it's the program window, see reply #1 above. If it's the command window, see reply #4 above |
|
767. |
Solve : UI? |
Answer» I'm trying to give my "Macilizer" a CONFIGURATION UI......just a regular windows message box with 3 check boxes, descriptions for each, and a SAVE button instead of an OK button..... that could be run to configure what is to be run.. |
|
768. |
Solve : regarding programing? |
Answer» i have one problem. (how to make button in swing which come in a single column,and gap in EVERY button like |
|
769. |
Solve : pls help me.........C++ programming? |
Answer» something is wrong in my program....why that it only outputs (INVALID gender) |
|
770. |
Solve : boot loader and Kernel info? |
Answer» I was wondering how a boot loader and kernel works. I would like a general view of it, not specifically how linux kernel works like google brings up. how does the boot loader find the kernel? What are the most important areas of a computer that the kernel accesses and REGISTERS to make it work (do the minimum, but still work)?Have you heard of "books"?Quote from: zaryk on July 14, 2008, 02:28:59 PM how does the boot loader find the kernel? The boot loader is a machine code program. It is written to look in a standard location for named files. Quote from: zaryk What are the most important areas of a computer that the kernel accesses and registers to make it work (do the minimum, but still work)? Sounds like HOMEWORK, hence my previous remark. Yeeaaaa, you are right it is homework? Mental Homework. To research and study it, and one day make it. You, the World, is my teacher, and you will judge it. But, school related, I don't have any computer classes.first the computer is all like, "hey, there a boot sector with valid data in the shizzouse?" and the boot sector is all like, "WASSAP!" and then the computer reads the boot sector, which complains about being tickled. The boot loader looks in predesignated locations (usually on the root of the drive, because most boot loaders are too small to include directory traversal abilities), so, then it loads the OS, and the OS is all like, "hey d00ds!" to all the hardware: Video Card:mmm, colours. network card: must talk. Must network. Socialize. OPEN THE CONNECTION! LOAD MY DRIVER! Sound Card: Hey, you guys ever met my aunt santa cruz? Man, she's a big one, but she makes a darn good pie, if you ask me. Why I remember this o.... Chipset: Shut up already, god, you're always making sound. Sound Card: It's what I do. Hey, anybody got an IRQ? Chipset, oh yeah, here I'll give you guys some. OK, Video Card Video Card: What up? Chipset: You're gonna be IRQ 9 Video Card: Aww man. OK. Chipset: Network card? You'll be IRQ12. Network card: OK. can I start communicating yet? Chipset: Timer, you'll be IRQ 0, but you know that, you're always IRQ 0. Timer: Took you long enough. You know I'm timing you. Chipset: Ok, now whats left here- parallel port at IRQ 7, Com ports at addresses 0x... Sound Card: Hey, I want an IRQ! Chipset: Oh yeah, I forgot about you- hmm, I guess you'll share a IRQ with the network card, IRQ 12 Network card:hey buddy. Sound Card: I ain't sharin with a stinking network card! what if I get Networkually transmitted diseases? Network card: Don't worry, I've got protection, a Firewall. Might hurt a bit though. Computer: stop you're squabbling! The boot loader wants to issue some commands! Boot loader: Hard Drive. load NTLDR. Hard Drive: you are NTLDR. Burp. Boot Loader: ACK! you've burped on the drive! Hard Drive: BAH, it's wasn't important, just user data. Boot Loader: Oh ok, try not to damage my files though. Hard Drive: I really should not have talked to that USB enclosure. I think I caught something. HDD interface: What! you've been cheating on me? Hard Drive: uhh, Not this again. Hey, the DVD drive is a lot more promiscuous then I am, and I don't hear you complain to him! HDD Interface: Don't make excuses, the DVD drive also uses removable media. DVD Drive: yeah, there is one in here to. looks like a XP CD. Boot loader: woah woah- hold on a sec- a XP CD? DVD Drive: yeah- it's shiny. I'll spin it faster for no reason.... psychedelic! Boot loader: Ok ok, well let's get on with this- Hard Drive! load the OS, just like last time. HDD: OK. ... ... ... Boot Loader: what are you doing? HDD: oh, sorry, I detected a SMART error. what were you saying? Boot Loader: of course their is a SMART error, because your STUPID! now load the OS. and FINALLY after the POST, the boot begins. Of course that whole discussion (or more precisely, a more verbose version of it) occurs everytime the computer boots! what fun!haha love the personification. Cool, thanks.Wow- I read my own post and laughed my *censored* off. That is so sad, and yet endearing at the same time.Quote from: BC_Programmer on August 17, 2008, 01:54:12 PM Wow- I read my own post and laughed my *censored* off. That is so sad, and yet endearing at the same time. I agree about the sad part, not so sure about the endearing. "Profoundly irritating" was the phrase that sprang into my mind. I can't believe you wrote this Quote and the OS is all like, "hey d00ds!" Not wishing to be offensive, but your post was so, er, North American... I was writing that way for comedic EFFECT, because people that talk that way piss me off. "And I was all like" "and he was like" LIKE WHAT? a weasel? a paint can? like is for comparisions people! NOT as a random word to lengthen sentences unnecessarily. Boy they piss me off too. People who say that everything is "awesome" get on my *censored* too. |
|
771. |
Solve : Learning Java? |
Answer» I am just starting to LEARN Java for use in automating some CAD programs and am wondering where to get STARTED. Is there a particular SDK that would be useful with learning Java or some starter hints or tips that you can share? I have programming experience in VBA and C# but am not a programmer. Most of the code that I have written is fairly STRAIGHTFORWARD and has been used to automate either a control system or a program execution. Any help is greatly appreciated as I am trying to FIGURE out where to start. |
|
772. |
Solve : Java Heap Overflow question? |
Answer» I'm writing a PROGRAM that creates a two dimensional ARRAY of x by y sizes. |
|
773. |
Solve : exe files? |
Answer» is it possible to change an exe file to appear as a jpg or ppt file but it still be opened and executed when sent as an attachment? Almost all mail servers and mail programs block emails with .exe files. What I do is change the extension and TELL the recipient to RENAME the file. For example, if I wanted to email the file "mail.exe," I would change it to "mail.ghy," send it, and, in the email, instruct the recipient to rename the file to "mail.exe."It seems that you want to make a virus or some malware Quote from: qinghao on September 03, 2008, 11:29:17 AM It seems that you want to make a virus or some malwareactually i purchased a spyware program to install on my LAPTOP pc that travels with other people. i need to send it remotely in an email and disguise it as a different file type if possible. i own the target computer and the persons using it need to be monitored uknowingly and i do not have physical access to it.It is illegal to monitor a person in such a manner, and we can not help you "spy" on anyone. Sorry. Besides, the methods you are describing wouldent work anyways. If you made a EXE into a JPEG file, you would just get an error opening describing that the file was the wrong format and could not be opened or MAY be CORRUPT. Thanks, Zylstra. For the record, my above post is a means to transmit, via email, legal .exe files to knowing persons. Further, to qinghao - you were right on. |
|
774. |
Solve : Input Output C++? |
Answer» any ideas on how to INPUT and OUTPUT a microsoft ACCESS file??Not familiar with C++ notation, but in general you need a CONNECTION object, a recordset object, a string element that holds a provider TEMPLATE and a string element to hold the SQL statements. |
|
775. |
Solve : C++ struct program? |
Answer» Hi guys If I give you the answer, and you submit it as your own work, your teacher may wrongly think that you are doing fine on the course, and you won't get the remedial attention and extra encouragement you so clearly need. This board does not do lazy kids homework for them.Courtesy: Dias de verano Of course you and I both know that is a load of crap. This is not about you, it's about us. The real reason ( ) is that we can't risk giving you a WRONG answer. What if our answer gets you an F? Now, one F in the course of a lifetime is hardly fatal, but imagine our humiliation. How could we ever face the CH membership again? Can you possibly imagine the shame of being stripped of our rankings and starting over as a low-life? Well, can you? Now BUCK up, do your own homework and get the grade you deserve. |
|
776. |
Solve : kCopying Batch files, and Renaming without the Extension...? |
Answer» Hi, I recently began making some batches to HELP me in my work, and I'm having a problem since I want to remove the file extension from my copied file's new name: |
|
777. |
Solve : qbasic? |
Answer» How can i invoke the qbasic screen from DOS if qbasic.exe is in : |
|
778. |
Solve : Outline Control (MSoutl32)? |
Answer» Hello, I want to show in a tooltiptext the info signed on the TEXT contained in the Ouline control. The point is that I want to show it without select it. The point is that I want to show it without select it. Why would you do this? Well, basically is a client requirement. I know that the mouseover method shows this, but I have to select the item to show the information in the ToolTip (The tooltip shows the selected text). But the point is that I want to show the text in the tooltip without select the text. Is it possible? CheersQuote I know that the mouseover method shows this, but I have to select the item to show the information in the ToolTip I'm misunderstanding this. By select you do mean click, right? Quote But the point is that I want to show the text in the tooltip without select the text. Is it possible? I suppose you could use any of the mouse move events or EVEN the timer event with the tooltips APPEARING carousel style. From a design view, this could get messy. From experience, users don't like surprises. It always seemed reasonable when designing a Windows program not to DEVIATE much from the Windows standards. While this could make for some BORING interfaces, the user would more intuitively learn the program. PS. How did you make out with Crystal Reports?ToolTipText without select the item contained in the Outline control. But don't worry, I think it couldn't work by this way. Best Wishes and thanksok i dont have idea about ur topic!!!Quote from: garydeen on September 09, 2008, 06:26:54 AM ok i dont have idea about ur topic!!! Garydeen, this is a week old topic and stop posting if you don't about the topic. |
|
779. |
Solve : Visual Basic 6 and Crystal Reports 2008? |
Answer» HELLO, I'm trying to use the crpe32.dll which is included on the Crystal Reports 2008 VERSION on my VB6 project. How could I do to make this possible? Is it some special condition to do to LINK this Dll? Regards Quote I'm trying to use the crpe32.dll which is included on the Crystal Reports 2008 version on my VB6 project Use it for what? Did you install Crystal Reports? This tutorial may be helpful. Crystal Reports is a third-party add-on (from Seagate) that will hook into your VB installation. Edit: Check out this page for how to make the declarations within your VB program, however most of the functions are encapsulated within the CrystalReport1 object. Thanks a Lot. I was seeking by the WEB and I found that the Crystal Reports 2008 is only compatible with the Visual Studio.Net Versions Best RegardsVB 6.0, has DATAREPORT.,. you can try that.,., and in much easier way.,., VB 6.0, has DATAREPORT.,. you can try that.,., and in much easier way.,.,Yes u should try dis one!!!! Thanks a Lot. I was seeking by the web and I found that the Crystal Reports 2008 is only compatible with the Visual Studio.Net Versions Best wishes |
|
780. |
Solve : Passing variables between forms in vb.net? |
Answer» I have a programming background, but I am new to vb.net. I am working on my first real vb.net project and I have a listview on the main form (Form1). I have a button the user can click on to open a new form that I want to have the listview from Form1. The new form has some fields to add values to the listview, and when the user clicks on OK in the new form, I want the new information to show back up in the listview on the original form. |
|
781. |
Solve : c++ programming:? |
Answer» Hi, |
|
782. |
Solve : C++ minor problem? |
Answer» hey guyz I dont have idea about ur problem pls ask any computer experts about ur problem!!!!!!!!!! the problem was solved. Your post is the equivalent of putting your hand up in class and answering "I don't know". If you don't have something meaningful to add, don't add anything.Quote from: BC_Programmer on September 09, 2008, 02:04:31 PM Quote from: garydeen on September 09, 2008, 06:21:13 AMI dont have idea about ur problem pls ask any computer experts about ur problem!!!!!!!!!! It's like putting your hand up in class and answering "I don't know" after the answer has been given and eleven days later! lolQuote from: fireballs on September 09, 2008, 03:53:03 PM Quote from: BC_Programmer on September 09, 2008, 02:04:31 PMQuote from: garydeen on September 09, 2008, 06:21:13 AMI dont have idea about ur problem pls ask any computer experts about ur problem!!!!!!!!!! not something people would consider behaviour of a BRIGHT student... Is this the same fellow that made a similar post in the batch programs thread?Quote from: BC_Programmer on September 09, 2008, 09:44:21 PM Quote from: fireballs on September 09, 2008, 03:53:03 PMQuote from: BC_Programmer on September 09, 2008, 02:04:31 PMQuote from: garydeen on September 09, 2008, 06:21:13 AMI dont have idea about ur problem pls ask any computer experts about ur problem!!!!!!!!!! Who knows and who cares.... |
|
783. |
Solve : Command line with Flash?? |
Answer» I am VENTURING into the unknown - hoping to broaden my horizons (and through necessity!) |
|
784. |
Solve : allowing two distant users to use one program? |
Answer» Hello |
|
785. |
Solve : Visual Studio Command Prompt error? |
Answer» I entered a program in Visual Studio C++, then I saved it in the default DIRECTORY as Sample.cpp. I dont have idea about your problem pleas ask any computer experts about your problem!!!!!!!!!!! garydeen, please do not make posts like that in future.I personally have Visual Studio 2008, but assuming they are the same, under the Build menu should be Build SOLUTION and Build 'Project Name.' Under the Debug menu, there should be 'Start Debugging.' Personally I just click Start Debugging, because it builds the project and at the same time lets me test out any new features I added/changes I made. I would think using the IDE to compile a program would be easier than using the command prompt... In addition, I believe there's an option when you first make a project, called "Create Directory For Solution." If this box is checked, it should make a directory only for that project, and Visual Studio should always refer to that directory to compile it. Like I said, I'm basing this from Visual Studio 2008, and despite how similar 2008 and 2005 are, there may be differences. ~ BaRR |
|
786. |
Solve : 'find and replace' code? |
Answer» HELLO! I'm using Fortran for the first time and I need to write a program which find all ',' in a TEXT file and replace them with ' '. I can't do it just using 'replace' in 'edit' because I need to produce an .exe file in order to automate its execution. Thanks a lot in advance! Fortran has a replace function you can use. Once again Google has all the messy details. Code: [Select]REPLACE(string,target,substring,every,back) Quote the COPY of string is searched for occurrences of target. The search is done in the backward direction if the argument back is present with the value true, and in the forward direction OTHERWISE. If target is found, it is replaced by substring. If every is present with the value true, the search and replace is continued from the character following target in the search direction specified until all occurrences of target in the copy string are replaced; otherwise only the first occurrence of target is replaced.Source This should work: var = replace(string, ',', ' ', True) Couldn't tell if the replacement is a space or a null. Fix if necessary. |
|
787. |
Solve : Big problem with DEEEP FREEZ? |
Answer» THANKS ,... I need to uninstall the DEEP FREEZ ,.... its DRIVING me CRAZY, but I dont known how to do it ....this pc has win xp as s/o ....could you help me ?....GOD BLESS you Number nine here.. Edit: Also have a look at the SITE linked by Patio here. |
|
788. |
Solve : accessing data randomly from a file? |
Answer» IF anyone nows a function that I can use to ALLOW the user to access SENTENCES randomly from a file could he or she please tell meWhat language? Quote from: kpac on September 12, 2008, 02:40:41 AM What language?g++ (c++ but on a linux machine)k so I can have my paragraphs numbered and then use the randomize function but now the difficult part is making sure that what ever value or question was randomized the same value is checked if the inputted ANSWER is correct and the score is decremeanted or incrweamented depeanding on the GIVEN answer. thanx for looking at my post and for helping |
|
789. |
Solve : C++ - Problem with File I/O? |
Answer» Hi all. |
|
790. |
Solve : Customer? |
Answer» Customer problem is that how to make plz help Just a SIMPLE problem... You clearly do not understand how to do your homework. Tell your tutor. [Edit] 1. Get great muscles 2. Get HOT chick 3. Make $1,000,000 4. Win Nobel Prize Problem is how to do, plz help... |
|
791. |
Solve : Admin CMD? |
Answer» how would i reverse or make a .REG to delete these ENTRIES: |
|
792. |
Solve : appending a multiline textbox in VB??? |
Answer» basically i need the code for this situation okay well never mind on the last part because i got it but now I need to have it scroll to the last line in the textbox when a line is added. now that i think about it I'll add details: Using VB Express 2005 and my current code for adding text is: Code: [Select]advconsole.Text = advconsole.Text & vbCrLf & "Advanced CONSOLE disabled" This is with VB.NET in Visual Studio 2005 Code: [Select]RichTextBox.AppendText(vbCrLf & "This is a test") RichTextBox.ScrollToCaret() If you USE AppendText() you don't need to grab the current text in the box. ScrollToCaret() moves to the current position of the caret which, immediately after appending text, is at the bottom.dude thank you. LOLZ. of course i had like 30 lines of code that I had to go back and edit but thank you lolz. |
|
793. |
Solve : VBScript to download Exchange attachments? |
Answer» I am working on some code to download one users email and drop them into a folder. I would like to run on the exchange server so I have been using EXOLEDB. Here is what I have thus far: |
|
794. |
Solve : \WINDOWS\Internet Logs\tvDebug.log? |
Answer» Can anyone tell me what the H**l this is and how can I turn it off ?? THANKS JERRY XP Pro OPcan you tell us what the heck MAKES you WANT to get RID of it and how you turn off a file?This is Zone ALARM log. |
|
795. |
Solve : VBScript - Read text file & Decide Process from Results? |
Answer» Hi All, none now you absolute genius!!Good! One way to make SURE you don't accidentally Dimension a variable twice is to declare them all first, IE, with your constants. I get burnt a lot myself when I try to Dimension them right when I need them, but I'm spoiled because I'm using VB6 rather then VBScript, which means I actually get an IDE. |
|
796. |
Solve : please suggest any project on embedded system? |
Answer» hi friends, |
|
797. |
Solve : VBScript - Subtract one text file value from another? |
Answer» Only me! I have 2 text files with one numerical value each (i.e. 54338). I would like to get another script to take one value and subtract it from the other, Probably need to parse the data. Code: [Select]Const ForReading = 1 strComputer = "." Set objFSO = CreateObject("Scripting.FileSystemObject") Set objFile1 = objFSO.OpenTextFile("..\freespacebefore.txt", ForReading) arrData1 = Split(objFile1.ReadLine, " ") objFile1.Close Set objFSO = CreateObject("Scripting.FileSystemObject") Set objFile2 = objFSO.OpenTextFile("..\freespaceafter.txt", ForReading) arrData2 = Split(objFile2.ReadLine, " ") objFile2.Close Set objFile3 = objFSO.CreateTextFile("..\savedspace.txt") objFile3.WriteLine "savedspace=" & (arrData2(0) - arrData1(0)) objFile3.Close Based on each numerical value followed by a space. Curious: What is strComputer?Sidewinder, would Val() not perform the same function as your usage of Split()?It might have, but val() is not listed as a valid function in the VBSCRIPT documentation! Using the val function throws a type mismatch error. VBScript Documentation I'm still getting a Type mismatch: 'arrData2(..) The strComputer"." - applies it to the local machine. Just something I have been doing as I''ve also worked on networked computers with vbscript.Quote from: Sidewinder on SEPTEMBER 24, 2008, 07:10:19 AM It might have, but val() is not listed as a valid function in the VBScript documentation! hmm, I guess VB6 wins this round I guess instead of having explicit conversion function, they decided to have VBScript always USE Evil Type coercion, since EVERYTHING is a Variant. Quote from: pcwizard on September 24, 2008, 07:16:02 AM I'm still getting a Type mismatch: 'arrData2(..) hmm, weird, it works for me. but whats with the use of .. for parent directory?PCWizard: Please post the data from the freespacebfore and freespaceafter files. I cannot duplicate your error. Quote
VBScript was designed for non-programmers. With everything a variant (except date/time), there was no need for the user to get bogged down with data types and worrying about conversions. Let the interpreter do the work based on real live data! Let me clarify, VBScript does something that in Visual Basic is referred to as Evil Type coercion. In the context of a script language it makes sense and has a greatly reduced evilness, but it adds to the confusion when my Scripts constantly fail because of my insistence to automatically put a type. Or even worse, TRY to use objects from VB- like the PropertyBag and such. Or try to do both at once! Code: [Select]Dim PropBag as New PropertyBag Quote but whats with the use of .. for parent directory? I'm using Flash as a front end, so containing all of the code samples and scripts in the fscommand folder. But the text files remain outside of this because the content is being accessed by flash again afterwards.Quote from: Sidewinder on September 24, 2008, 07:35:33 AM PCWizard: Please post the data from the freespacebfore and freespaceafter files. I cannot duplicate your error.Not sure if you found the solution, but this might help: Code: [Select]Const ForReading = 1 strComputer = "." Set objFSO = CreateObject("Scripting.FileSystemObject") Set objFile1 = objFSO.OpenTextFile("..\freespacebefore.txt", ForReading) arrData1 = Split(objFile1.ReadLine, "=") objFile1.Close Set objFSO = CreateObject("Scripting.FileSystemObject") Set objFile2 = objFSO.OpenTextFile("..\freespaceafter.txt", ForReading) arrData2 = Split(objFile2.ReadLine, "=") objFile2.Close Set objFile3 = objFSO.CreateTextFile("..\savedspace.txt") objFile3.WriteLine "savedspace=" & (arrData2(1) - arrData1(1)) objFile3.Close Happy coding. |
|
798. |
Solve : Saving information in Qbasic? |
Answer» Hello Ah, good old QBasic!I am using the Random statement so that I can both save, and open the file. I understand that I can save information using the OUTPUT statement, but I cannot retrieve it. (Well, not without closing the file, opening it again) The code I posted was just an example, thus, the CLS and whatever else is pointless Quote <snip> So I will need to be able to PUT the information, and GET it as well. If you don't like having "magic numbers" in your code, and I don't blame you, (it is bad practice) you can use numeric variables and increment them each time. Code: [Select]open "pdata.dat" for random as #1 n=1 print "Type the data you would like to save" input data$ put #1, n, data$ : n=n+1 cls print "Type the next data you would like to save" input data2$ put #1, n, data2$ : n=n+1 close #1 end You should try with loops. they not complicated. Things just got round and round until it's time to stop. I will GIVE that a try The Qbasic library system is terrible, I just hope more than ever that this will work out How well will it function with Subs if they were to go out of order? And would this be correct to retrieve the data again: Code: [Select]open "pdata.dat" for random as #1 n=w print "Type your info" input data2$ put #1, n, data2$ : n=n+1 cls get #1, n, data2$ : n=n+1 close #1 Quote from: Zylstra on June 28, 2007, 03:53:29 PM And would this be correct to retrieve the data again: Quote open "pdata.dat" for random as #1 No, because what you are doing is 1. Ask the user to type a string 2. PUT that string to record number N 3. Increase the value of N by 1 4. GET record number N So you will GET the next record after the ONE that you wrote, which may not even exist YET, and is certainly not the one that you want. Hint: Run your code to see if it works! If you had put a "PRINT data2$" at the end of that code, you could have tested it. Why are you doing all this QBasic stuff? I'll try it out I like to program in Qbasic for no reason at all, but sometimes I make something for myself, I was trying to write a registry-type system that could be intergraded into my programs but I ran into a problem that can be fixed with your suggestion. Also, I use it for resuming sessions in my random programs (thus why I have to use GET and PUT at the same time) |
|
799. |
Solve : More batch lies? |
Answer» This is my problem: This is my problem: @noka: ?put the path in quotes. del "c:\program files\microsoft office\*.pif" pauseBrainiacOutcast, we UNDERSTAND that everybody needs to get their post count up, but reviving 3-year-old threads is a bit obvious! Or don't you bother reading the DATES? |
|
800. |
Solve : a batch file to replace words in text files? |
Answer» HI, everyone. is there a command that I can use in Command Prompt to replace once WORD or STRING for another in a text file? or is there a way to do it without actually opening the file manualy with notepad.exe or something and replacing it there? thank you!BrainiacOutcast, you're getting a bit silly reviving ANOTHER THREE year old thread, and GIVING a wrong answer into the bargain! check out "sed for Windows". |
|