Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by vintl

  1. vintl

    selection using switch?

    Hi I do not understand how this stmt works -> m[0].selected ^= 1; ^= is assignment operator? how does it work? This is my version: //if selected is all, denote by 'S' if(p_SELORD->selflg[0][0] == 'S') { //loop the rest and set to empty for(i=0; i<oputl_get_arycnt(tx212o->arycnt1)+1; i++) {...
  2. vintl

    selection using switch?

    Hi, I want to do a selection of options, but have limitation on the selected options. FOr examples, --------------- List of options --------------- * All Select1 Select2 If All is selected (* denote selected), then Select1 and the rest is bar from being selected, unless All is...
  3. vintl

    how to retrieve only last specify length of byte

    thanks. it work now, i thought it was the array problem.
  4. vintl

    how to retrieve only last specify length of byte

    I have this string info[35]. i want to extract the last 7 byte, so i shall extract from &info[29]. I use memmove to do this extracting, but return funny characters. memset(nfo, 0x00, sizeof(nfo)); memcpy(nfo, info, sizeof(info)); //copy whole string 35 byte memmove(nfo, &nfo[29], 7); //move the...
  5. vintl

    i have this info[35] can conntain 3

    i have this info[35] can conntain 35 bytes, but now i only wan to extract the last 5 bytes and push it into DB, is this stmt correct? start from byte ->30, and read only 5 byte. memcpy(dorgnins_db.info, info[30], 5 );
  6. vintl

    nested case?

    I want to run 2 case one after another, how can this be possible? I've try to omit the break stmt after case 1: ; like this-> case '1' : do_selection(); case '2' : process_selected_item(); break; default: break; but it didnt work out. hav other way in doing this? thanks
  7. vintl

    strtok tokenise a string problem

    thanx i got it to work.
  8. vintl

    strtok tokenise a string problem

    i want to strtok a string from flat file which consist of 3 part..(eg. N XXX98 34-XXX) howto assign each part into a variable so i can memcpy the last part into a variable? i do not want to use printf which print out the output to screen.
  9. vintl

    cannot update properly.

    I do not want to update all the records. I only want to update the record that the user specify by inputing the RID number. So each time, the user can only update 1 record according to the user preference on the PID number which exist only if the user had inserted a new record, whereby the RID...
  10. vintl

    cannot update properly.

    What i'm trying to do here is to update the book for each user input PID. the problem is why i'm unable to update the rest of record, but only able to update the first record? there is no effect when i try to update other PID, but only able to update the first PID record on db. below is the...
  11. vintl

    i wan to loop through every checkbo

    The code shown only limit to delete 3 listed checkbox. I would like it to be able to delete not only 3 checkbox, but all listed checkbox. it means it will loop thru all the data from the DB and each have a checkbox can be checked to delete.
  12. vintl

    i wan to loop through every checkbo

    The code shown only limit to delete 3 listed checkbox. I would like it to be able to delete not only 3 checkbox, but all listed checkbox.
  13. vintl

    i wan to loop through every checkbo

    i wan to loop through every checkbox and able to delete as many check box that are checked. but the code shown only limit to 3 checkbox. how can i delete all the checked box? if cancel = &quot;Delete&quot; then If request(&quot;Cancel1&quot;) = &quot;&quot; then Cancel1 = 0 else Cancel1 =...
  14. vintl

    Connection to DB

    thx. it works after i reinstall the office package.
  15. vintl

    Connection to DB

    to ccat999 It does work. even i follow exactly your variable, it just didnt work. If i include the Option Explicit it return this error Microsoft VBScript compilation error '800a0400' Expected statement /test.asp, line 8 Option Explicit ^ else if i don't include the Option Explicit, it...

Part and Inventory Search

Back
Top